Jump to content

Oops! Something went wrong and we couldn't process your request.


Recommended Posts

Hi, 

Access to WHMCS is unstable (http://visageweb.com.br/financeiro/admin/). Sometimes it accesses normally and seconds later it shows the error below:

=================================================================================================================

Oops!

Something went wrong and we couldn't process your request.

Please go back to the previous page and try again.

Whoops\Exception\ErrorException: Module 'pdo_mysql' already loaded in Unknown:0
Stack trace:
#0 /home/visag391/public_html/financeiro/vendor/whmcs/whmcs-foundation/lib/Utility/Error/Run.php(0): WHMCS\Utility\Error\Run->handleError(32, 'Module 'pdo_mys...', 'Unknown', 0)
#1 [internal function]: WHMCS\Utility\Error\Run->handleShutdown()

 

=================================================================================================================

image.thumb.png.beef710020100d4d01a09647cd72d267.png

image.thumb.png.3eb4d15ee24724f189fa7cf1635baed8.png

 

I do not believe to have relation with the module since it has moments that the access is carried out correctly.

 

root@server01.visageweb.com.br [etc]# ll /opt/cpanel/ea-php70/root/etc/php.d/
total 212K
drwxr-xr-x 2 root root 4.0K May  4 21:20 ./
drwxr-xr-x 6 root root 4.0K May 16 11:11 ../
-rw-r--r-- 1 root root  149 Apr 23 16:52 01-ioncube.ini
-rw-r--r-- 1 root root   53 May  1 10:30 20-bcmath.ini
-rw-r--r-- 1 root root   47 May  1 10:30 20-bz2.ini
-rw-r--r-- 1 root root   57 May  1 10:30 20-calendar.ini
-rw-r--r-- 1 root root   51 May  1 10:30 20-ctype.ini
-rw-r--r-- 1 root root   49 May  1 10:30 20-curl.ini
-rw-r--r-- 1 root root   47 May  1 10:30 20-dba.ini
-rw-r--r-- 1 root root   47 May  1 10:30 20-dom.ini
-rw-r--r-- 1 root root   55 May  1 10:30 20-enchant.ini
-rw-r--r-- 1 root root   49 May  1 10:30 20-exif.ini
-rw-r--r-- 1 root root   57 May  1 10:30 20-fileinfo.ini
-rw-r--r-- 1 root root   47 May  1 10:30 20-ftp.ini
-rw-r--r-- 1 root root   45 May  1 10:30 20-gd.ini
-rw-r--r-- 1 root root   55 May  1 10:30 20-gettext.ini
-rw-r--r-- 1 root root   47 May  1 10:30 20-gmp.ini
-rw-r--r-- 1 root root   51 May  1 10:30 20-iconv.ini
-rw-r--r-- 1 root root   49 May  1 10:30 20-imap.ini
-rw-r--r-- 1 root root   49 May  1 10:30 20-intl.ini
-rw-r--r-- 1 root root   49 May  1 10:30 20-json.ini
-rw-r--r-- 1 root root   49 May  1 10:30 20-ldap.ini
-rw-r--r-- 1 root root   57 May  1 10:30 20-mbstring.ini
-rw-r--r-- 1 root root   53 May  1 10:30 20-mcrypt.ini
-rw-r--r-- 1 root root   55 May  1 10:30 20-mysqlnd.ini
-rw-r--r-- 1 root root   47 May  1 10:30 20-pdo.ini
-rw-r--r-- 1 root root   49 May  1 10:30 20-phar.ini
-rw-r--r-- 1 root root   51 May  1 10:30 20-posix.ini
-rw-r--r-- 1 root root   53 May  1 10:30 20-pspell.ini
-rw-r--r-- 1 root root   51 May  1 10:30 20-shmop.ini
-rw-r--r-- 1 root root   59 May  1 10:30 20-simplexml.ini
-rw-r--r-- 1 root root   49 May  1 10:30 20-snmp.ini
-rw-r--r-- 1 root root   49 May  1 10:30 20-soap.ini
-rw-r--r-- 1 root root   55 May  1 10:30 20-sockets.ini
-rw-r--r-- 1 root root   55 May  1 10:30 20-sqlite3.ini
-rw-r--r-- 1 root root   55 May  1 10:30 20-sysvmsg.ini
-rw-r--r-- 1 root root   55 May  1 10:30 20-sysvsem.ini
-rw-r--r-- 1 root root   55 May  1 10:30 20-sysvshm.ini
-rw-r--r-- 1 root root   49 May  1 10:30 20-tidy.ini
-rw-r--r-- 1 root root   59 May  1 10:30 20-tokenizer.ini
-rw-r--r-- 1 root root   47 May  1 10:30 20-xml.ini
-rw-r--r-- 1 root root   59 May  1 10:30 20-xmlwriter.ini
-rw-r--r-- 1 root root   47 May  1 10:30 20-xsl.ini
-rw-r--r-- 1 root root   47 May  1 10:30 20-zip.ini
-rw-r--r-- 1 root root   53 May  1 10:30 30-mysqli.ini
-rw-r--r-- 1 root root   53 May  1 10:30 30-mysqli.ini.old
-rw-r--r-- 1 root root   59 May  1 10:30 30-pdo_mysql.ini
-rw-r--r-- 1 root root   61 May  1 10:30 30-pdo_sqlite.ini
-rw-r--r-- 1 root root   49 May  1 10:30 30-wddx.ini
-rw-r--r-- 1 root root   59 May  1 10:30 30-xmlreader.ini
-rw-r--r-- 1 root root   53 May  1 10:30 30-xmlrpc.ini
-rw-r--r-- 1 root root   71 May  1 10:49 sourceguardian.ini
-rw-rw-r-- 1 root root   42 May  3 09:44 zzzzzzz-pecl.ini
root@server01.visageweb.com.br [etc]# cat /opt/cpanel/ea-php70/root/etc/php.d/30-pdo_mysql.ini
; Enable pdo_mysql extension module
extension=pdo_mysql.so
root@server01.visageweb.com.br [etc]#
root@server01.visageweb.com.br [etc]# cat /opt/cpanel/ea-php70/root/etc/php.d/zzzzzzz-pecl.ini
extension=mysql.so
#extension=pdo_mysql.so
root@server01.visageweb.com.br [etc]#

 

 

Link to comment
Share on other sites

SOLVED.

 

Upon my review I found that WHMCS was loading PHP extensions from an old legacy PHP 5.6 installation at '/opt/php56', in both '/home/visag391/public_html/php.ini' and directives added to the .htaccess file at /home/visag391/public_html/.htaccess. I also noticed that the PHP extension tidy was being loaded on the cPanel EA4 Installation of PHP 7.0, although the extension was missing. I've since reinstalled the extension and as a result I was to load http://visageweb.com.br/financeiro/admin/ without error. The steps performed are detailed in the following. 

root@server01.visageweb.com.br [admin]# mv -iv /home/visag391/public_html/php.ini{,-$(date +%s)}'
`/home/visag391/public_html/php.ini' -> `/home/visag391/public_html/php.ini-1526518480

root@server01.visageweb.com.br [admin]# grep 'opt/php' /home/visag391/public_html/.htaccess
php_value include_path "".:/opt/php56/lib/php";"

root@server01.visageweb.com.br [admin]# sed -i-$(date +%s)} '24,92 s/^/#/' /home/visag391/public_html/.htaccess

root@server01.visageweb.com.br [admin]# yum -y reinstall ea-php70-php-tidy.x86_64
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated