Jay C Posted June 3, 2023 Share Posted June 3, 2023 (edited) I've been running an older version of PHP (7.3.33). I'm trying to update to 7.4.33 or higher but whenever I change the PHP version on the server, Prestashop shoots off all kinds of errors. I'm on Prestashop 1.7.7.5. I need to update because of my CMS. I've been using Prestashop for a few months now and it's very buggy. The reset password feature never worked, I can't turn off Debug mode or the shop won't work, suddenly the Stripe module isn't completing orders after either an upgrade to the module or the installation of another module. And all of a sudden randomly the shop front page stops displaying content and only shows the header and the footer until I go in and manually reset the cache. I'm wondering if an update in PHP and possibly an update of Prestashop itself could help with these errors but even the 1 Click Update doesn't work. I can see the pre-check and everything there is ok but it says turn on maintenance mode. Well after that's turned on, 1-Click Update just shows a blank white page. Honestly I like the layout and features of Prestashop but this is a bit ridiculous. I'm getting close to getting rid of the whole thing. Any ideas on the PHP thing? Edited June 3, 2023 by Jay C (see edit history) Link to comment Share on other sites More sharing options...
ComGrafPL Posted June 3, 2023 Share Posted June 3, 2023 Post debug mode errors. Either install clean 1.7.8.9 / 8 and migrate the data, so you can work on PHP 7.4 / 8. Link to comment Share on other sites More sharing options...
Jay C Posted June 3, 2023 Author Share Posted June 3, 2023 9 hours ago, ComGrafPL said: Post debug mode errors. Either install clean 1.7.8.9 / 8 and migrate the data, so you can work on PHP 7.4 / 8. When I change PHP to 7.4.33, these errors pop up on the front end Whoops, looks like something went wrong. (1/1) ContextErrorException Warning: Cannot modify header information - headers already sent by (output started at /public_html/store/src/Adapter/EntityMapper.php:99) in FrontController.php line 787 at FrontControllerCore->sslRedirection()in FrontController.php line 297 at FrontControllerCore->init()in Controller.php line 287 at ControllerCore->run()in Dispatcher.php line 518 at DispatcherCore->dispatch()in index.php line 28 Link to comment Share on other sites More sharing options...
Nickz Posted June 3, 2023 Share Posted June 3, 2023 13 hours ago, Jay C said: I need to update because of my CMS. or because your host obliges you? In that case change your host. Go VPS. Or VPS with the same hoster so they could do the move. Link to comment Share on other sites More sharing options...
idnovate.com Posted June 5, 2023 Share Posted June 5, 2023 On 6/3/2023 at 5:57 PM, Jay C said: When I change PHP to 7.4.33, these errors pop up on the front end Whoops, looks like something went wrong. (1/1) ContextErrorException Warning: Cannot modify header information - headers already sent by (output started at /public_html/store/src/Adapter/EntityMapper.php:99) in FrontController.php line 787 at FrontControllerCore->sslRedirection()in FrontController.php line 297 at FrontControllerCore->init()in Controller.php line 287 at ControllerCore->run()in Dispatcher.php line 518 at DispatcherCore->dispatch()in index.php line 28 Could you please upload a screenshot of the error? Link to comment Share on other sites More sharing options...
Jay C Posted June 5, 2023 Author Share Posted June 5, 2023 (edited) 13 hours ago, idnovate.com said: Could you please upload a screenshot of the error? I uploaded two screenshots. One when I change the system to PHP 7.4.33 and another when I change it to PHP 8.0.28. PHP 8.0.28 PHP 7.4.33 Edited June 5, 2023 by Jay C labled the images (see edit history) Link to comment Share on other sites More sharing options...
idnovate.com Posted June 8, 2023 Share Posted June 8, 2023 Indeed, these errors appears because you are using a PHP version not compatible with your PS version: https://devdocs.prestashop-project.org/1.7/basics/installation/system-requirements/#php-compatibility-chart But it seems that you had some errors before this change: Quote The reset password feature never worked Quote the Stripe module isn't completing orders after either an upgrade to the module or the installation of another module Quote the shop front page stops displaying content and only shows the header and the footer until I go in and manually reset the cache So, what do you prefer to do? Updating PHP and PS or keep the versions and check the errors? Link to comment Share on other sites More sharing options...
Jay C Posted June 17, 2023 Author Share Posted June 17, 2023 On 6/8/2023 at 10:50 PM, idnovate.com said: Indeed, these errors appears because you are using a PHP version not compatible with your PS version: https://devdocs.prestashop-project.org/1.7/basics/installation/system-requirements/#php-compatibility-chart But it seems that you had some errors before this change: So, what do you prefer to do? Updating PHP and PS or keep the versions and check the errors? Preferably have an error free Prestashop installation on an updated PHP. Am I naive in thinking that shouldn't be unrealistic? Link to comment Share on other sites More sharing options...
idnovate.com Posted June 19, 2023 Share Posted June 19, 2023 On 6/17/2023 at 6:23 AM, Jay C said: Preferably have an error free Prestashop installation on an updated PHP. Am I naive in thinking that shouldn't be unrealistic? That's great. But if you want to have an updated PHP then you have to update PS too. Link to comment Share on other sites More sharing options...
Nickz Posted June 19, 2023 Share Posted June 19, 2023 On 6/17/2023 at 12:23 AM, Jay C said: Preferably have an error free Prestashop installation on an updated PHP. Am I naive in thinking that shouldn't be unrealistic? A dynamic programmed site needs updates. That is the policy of all dynamic developments. The only way to freeze the dynamic language at a fixed point is to not use cpanel, plesk among others based control panels. A VPS or a dedicated server, for your shop without a control panel. Still, you need to know a little to be able to block eventual attacks. 1 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