Jump to content

Fatal Error in Debug Mode


Recommended Posts

Website is shopmichellefarms.com site was running fine last I checked a few weeks ago for my client. I just went on and saw the white wall of death. I threw it in debug mode and got the following message.

Fatal error: Call to undefined function mysql_connect() in /home1/shopmichelle/public_html/classes/db/MySQL.php on line 51

Any advice and correcting this? Thanks for any help!

Link to comment
Share on other sites

I switched the PHP version to 7.1since this site version was 1.6... Now I have white screens on back end too. Debug mode is returning this:

Fatal error: Uncaught Error: [] operator not supported for strings in /home1/shopmichelle/public_html/classes/db/DbQuery.php:96 Stack trace: #0 /home1/shopmichelle/public_html/Adapter/Adapter_EntityMapper.php(45): DbQueryCore->from('shop', 'a') #1 /home1/shopmichelle/public_html/classes/ObjectModel.php(233): Adapter_EntityMapper->load('1', NULL, Object(Shop), Array, NULL, true) #2 /home1/shopmichelle/public_html/classes/shop/Shop.php(131): ObjectModelCore->__construct('1', NULL, NULL) #3 /home1/shopmichelle/public_html/classes/shop/Shop.php(397): ShopCore->__construct('1') #4 /home1/shopmichelle/public_html/config/config.inc.php(114): ShopCore::initialize() #5 /home1/shopmichelle/public_html/admin123/index.php(36): require('/home1/shopmich...') #6 {main} thrown in /home1/shopmichelle/public_html/classes/db/DbQuery.php on line 96

Link to comment
Share on other sites

OK replaced dbQuery.php with that and am still returning the following:

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home1/shopmichelle/public_html/classes/db/MySQL.php:51 Stack trace: #0 /home1/shopmichelle/public_html/classes/db/Db.php(319): MySQLCore->connect() #1 /home1/shopmichelle/public_html/classes/db/Db.php(239): DbCore->__construct('localhost', 'shopmich_admin', 'myrter2018', 'shopmich_shop') #2 /home1/shopmichelle/public_html/config/alias.php(66): DbCore::getInstance() #3 /home1/shopmichelle/public_html/classes/shop/Shop.php(329): pSQL('shopmichellefar...') #4 /home1/shopmichelle/public_html/config/config.inc.php(114): ShopCore::initialize() #5 /home1/shopmichelle/public_html/index.php(27): require('/home1/shopmich...') #6 {main} thrown in /home1/shopmichelle/public_html/classes/db/MySQL.php on line 51

Link to comment
Share on other sites

For CPanel users, if you see this error and you already have PHP 5.x selected for the site, there might be a CPanel update that disabled mysql and mysqli PHP extensions.

To check and enable the extensions:

Go to Select PHP Version in CPanel

Make sure you have PHP 5.x selected

Make sure mysql and mysqli PHP extensions are checked

Link to comment
Share on other sites

PHP version is 7.0 now. Avengers....are you referring to the hosting CPanel? I can't get into the Prestashop panel since it's coming up as a white screen. 

Error currently: Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home1/shopmichelle/public_html/classes/db/MySQL.php:51 Stack trace: #0 /home1/shopmichelle/public_html/classes/db/Db.php(319): MySQLCore->connect() #1 /home1/shopmichelle/public_html/classes/db/Db.php(239): DbCore->__construct('localhost', 'shopmich_admin', 'myrter2018', 'shopmich_shop') #2 /home1/shopmichelle/public_html/config/alias.php(66): DbCore::getInstance() #3 /home1/shopmichelle/public_html/classes/shop/Shop.php(329): pSQL('shopmichellefar...') #4 /home1/shopmichelle/public_html/config/config.inc.php(114): ShopCore::initialize() #5 /home1/shopmichelle/public_html/index.php(27): require('/home1/shopmich...') #6 {main} thrown in /home1/shopmichelle/public_html/classes/db/MySQL.php on line 51

Link to comment
Share on other sites

Set to5.3 and the site wouldn't even come up with errors. It asks to download? Seriously weird. I set back to 7.1 and back to:

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home1/shopmichelle/public_html/classes/db/MySQL.php:51 Stack trace: #0 /home1/shopmichelle/public_html/classes/db/Db.php(319): MySQLCore->connect() #1 /home1/shopmichelle/public_html/classes/db/Db.php(239): DbCore->__construct('localhost', 'shopmich_admin', 'myrter2018', 'shopmich_shop') #2 /home1/shopmichelle/public_html/config/alias.php(66): DbCore::getInstance() #3 /home1/shopmichelle/public_html/classes/shop/Shop.php(329): pSQL('shopmichellefar...') #4 /home1/shopmichelle/public_html/config/config.inc.php(114): ShopCore::initialize() #5 /home1/shopmichelle/public_html/index.php(27): require('/home1/shopmich...') #6 {main} thrown in /home1/shopmichelle/public_html/classes/db/MySQL.php on line 51

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...