Jump to content

[SOLVED] v1.6.1 HTTP 500 error after host upgraded to PHP 5.6

Recommended Posts


All I'm getting is white pages 500 error since the host upgrade to Easy Apache 4 from 3 on Cpanel, and to php 5.6 (Without notice I might add). , My SQL Server 5.6.41, WebServer mysqllib 5.1.73

I have tried changing the version of PHP in cpanel and cleared the smarty cache folders,

I ran in debug mode and got this:

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/XXXX/public_html/classes/db/MySQL.php:51 Stack trace: #0 /home/XXXX/public_html/classes/db/Db.php(319): MySQLCore->connect() #1 /home/XXXXX/public_html/classes/db/Db.php(239): DbCore->__construct('localhost', 'XXXX_presXX...', '@XXXXXX, 'XXXXXX_presXX...') #2 /home/XXXXX/public_html/config/alias.php(66): DbCore::getInstance() #3 /home/XXXXX/public_html/classes/shop/Shop.php(329): pSQL('www.complusener...') #4 /home/XXXXX/public_html/config/config.inc.php(114): ShopCore::initialize() #5 /home/XXXXX/public_html/XXXX/index.php(36): require('/home/XXXXX/...') #6 {main} thrown in /home/XXXXX/public_html/classes/db/MySQL.php on line 51

Does anyone have any idea please how to get our site back?


Many Thanks


Edited by complusit
Solved (see edit history)

Share this post

Link to post
Share on other sites
10 hours ago, Rodrigo B Laurindo said:

You have to enable the mysql extension in your PHP settings

Hi Rodrigo,

Thanks for the prompt reply, it appears the problem was that the host support agent advised me to only change the php version in the 'MultiPHP Manager' on Cpanel and not ALSO the php version in the 'Select PHP Version' tool on cpanel.

Didn't want to chnage things I wasn't advised to :)

Monday morning new support agent, all fixed in 5 mins.

Thanks again.

Share this post

Link to post
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.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More