complusit Posted April 7, 2019 Share Posted April 7, 2019 (edited) Hi, 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). 1.6.1.3 , 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 Marcus Edited April 8, 2019 by complusit Solved (see edit history) Link to comment Share on other sites More sharing options...
Rodrigo B Laurindo Posted April 7, 2019 Share Posted April 7, 2019 You have to enable the mysql extension in your PHP settings Link to comment Share on other sites More sharing options...
complusit Posted April 8, 2019 Author Share Posted April 8, 2019 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now