HenriqueDS Posted September 5, 2021 Share Posted September 5, 2021 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 More sharing options...
razaro Posted September 5, 2021 Share Posted September 5, 2021 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. Link to comment Share on other sites More sharing options...
Nickz Posted September 5, 2021 Share Posted September 5, 2021 4 hours ago, HenriqueDS said: When I try to upgrade my PHP version to 8, Why did you try to update? Just for fun? Because in the lab its a tenth of a % faster? Link to comment Share on other sites More sharing options...
HenriqueDS Posted September 5, 2021 Author Share Posted September 5, 2021 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 More sharing options...
ecommerce16 Posted September 5, 2021 Share Posted September 5, 2021 It depends on wich version prestashop you use. When your shop still goes down with the recomended php version there are other problems. Use the recommended php version for the version of your prestashop Link to comment Share on other sites More sharing options...
DARKF3D3 Posted September 5, 2021 Share Posted September 5, 2021 Since last stable version of Prestashop actually available it's 1.7.7, you can use PHP7.3 and not newer version. 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