Jump to content

Prestashop store stops working after changing php version


HenriqueDS

Recommended Posts

Hello, I'm hoping you can help with a problem. When I try to upgrade my PHP version to 8, my store goes down, getting the error 500. Currently I have PHP 5.6. How can I do this safely and without the site going down? 

This is the message I get from the debug mode: Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in /home/boutiqu6/public_html/config/defines.inc.php:143 Stack trace: #0 /home/boutiqu6/public_html/config/config.inc.php(33): require_once() #1 /home/boutiqu6/public_html/index.php(27): require('/home/boutiqu6/...') #2 {main} thrown in /home/boutiqu6/public_html/config/defines.inc.php on line 143

What can I do. I really need to work with a recent version of PHP.

Thanks in advance!

Link to comment
Share on other sites

4 hours ago, razaro said:

Hi and welcome to the forum.

Please check this link https://devdocs.prestashop.com/1.7/basics/installation/system-requirements/#php-compatibility-chart

where you can see that PHP 8 is not yet supported. But you should be fine with 7.3 or 7.4.

Okay, let's say I try to change to PHP 7.4. It still makes the website go down. How can I prevent this?

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...