Bamphalas Posted June 16, 2023 Share Posted June 16, 2023 (edited) About a month ago I toggled catalog mode on my website since I was going on a month long trip. Everything seemed to be working fine. A few days later, my website was no longer accessible, presenting a 500 error. My webhost told me they'd restore the backup. When I returned from my trip, the site was still down. They were apparently unable to help with a backup. I've tried accessing the backend to change the setting, but I can't since the 500 error prevents it. I have been trying to research fixes, but everything seems to point towards accessing the backend (which I can't do). My thought was maybe there is a value in a config file I can change? But I'm not a developer, so I don't know where to look. Is this something you've encountered? Edited June 16, 2023 by Bamphalas (see edit history) Link to comment Share on other sites More sharing options...
ComGrafPL Posted June 16, 2023 Share Posted June 16, 2023 Enable debug mode and post errors. Link to comment Share on other sites More sharing options...
Bamphalas Posted June 16, 2023 Author Share Posted June 16, 2023 1 hour ago, ComGrafPL said: Enable debug mode and post errors. I searched for a tutorial on enabling debug mode, but it didn't do anything. I found something on enabling an error report and got this: Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in /home/********/public_html/*************/config/defines.inc.php:129 Stack trace: #0 /home/********/public_html/*************/config/config.inc.php(27): require_once() #1 /home/********/public_html/*************/admin***/index.php(34): require('/home/********/...') #2 {main} thrown in /home/********/public_html/*************/config/defines.inc.php on line 129 (Replaced my identifying info with asterisks. Hopefully this is what you needed.) Link to comment Share on other sites More sharing options...
ComGrafPL Posted June 17, 2023 Share Posted June 17, 2023 Find: config/defines.inc.php Change: define('_PS_MODE_DEV_', false); to define('_PS_MODE_DEV_', true); Link to comment Share on other sites More sharing options...
Bamphalas Posted June 17, 2023 Author Share Posted June 17, 2023 (edited) 6 hours ago, ComGrafPL said: Find: config/defines.inc.php Change: define('_PS_MODE_DEV_', false); to define('_PS_MODE_DEV_', true); Thank you. I did that. That's how I got the error report I posted. Was that not what was needed? Edited June 17, 2023 by Bamphalas (see edit history) Link to comment Share on other sites More sharing options...
delete-account-pleas Posted June 17, 2023 Share Posted June 17, 2023 The function get_magic_quotes_gpc is deprecated since PHP 7.4. So my guess is that you have a Prestashop store with a version < than 1.8 and using PHP 8. This is not possible, look at the PHP compatibility chart to see which PHP version your webshop supports. https://devdocs.prestashop-project.org/1.7/basics/installation/system-requirements/#php-compatibility-chart 1 Link to comment Share on other sites More sharing options...
Bamphalas Posted June 17, 2023 Author Share Posted June 17, 2023 7 minutes ago, Crezzur.com said: The function get_magic_quotes_gpc is deprecated since PHP 7.4. So my guess is that you have a Prestashop store with a version < than 1.8 and using PHP 8. This is not possible, look at the PHP compatibility chart to see which PHP version your webshop supports. https://devdocs.prestashop-project.org/1.7/basics/installation/system-requirements/#php-compatibility-chart Thanks! Another member sent me a message with the same information. It appears that my host updated the PHP while I was gone. I've reverted the PHP and the site is accessible but now my product pages are all missing. (Products still exist and can be added, but the pages are 404) Working on fixing that. Link to comment Share on other sites More sharing options...
delete-account-pleas Posted June 17, 2023 Share Posted June 17, 2023 try regenerating your .htaccess in you main root file and using CTRL + F5 1 Link to comment Share on other sites More sharing options...
Bamphalas Posted June 17, 2023 Author Share Posted June 17, 2023 10 minutes ago, Crezzur.com said: try regenerating your .htaccess in you main root file and using CTRL + F5 Thank you so much!!!! ❤️ It's great to know there are people willing to help for the sake of helping. I certainly need to learn more about this software. It appears all is well and this subject is answered. 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