Tirppis Posted March 29, 2020 Share Posted March 29, 2020 (edited) Hi! I am in a difficult situation. I migrated my old prestashop to 1.7.6 and at first everything was just fine. Then I started to get HTTP error 500 in some changes I tried to make. Now I am stucked in back office home page and can't open almost any other pages. The front is working ok, but I can't even turn the maintenance mode off. Can somebody help me to find out what could be wrong? Edited March 30, 2020 by Tirppis (see edit history) Link to comment Share on other sites More sharing options...
JBW Posted March 30, 2020 Share Posted March 30, 2020 Activate debug mode to see error details. If you cant do it in backoffice change file /config/defines.inc.php and set debug to true. Link to comment Share on other sites More sharing options...
SakiBijou Posted March 30, 2020 Share Posted March 30, 2020 Like JBW said, in order to deactivated the debug mode... change the defines.inc.php file (you will find it in on your server in public_html/config) You will find there a line like: if(!defined('_PS_MODE_DEV_')){ define('_PS_MODE_DEV_',true); } Change true to false and your backoffice will work normally. Link to comment Share on other sites More sharing options...
Tirppis Posted March 30, 2020 Author Share Posted March 30, 2020 Thank you! I did this and get this info: (1/1) OutOfMemoryException Error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 831488 bytes) in ContainerBuilder.php line 1447 Link to comment Share on other sites More sharing options...
Tirppis Posted March 30, 2020 Author Share Posted March 30, 2020 Actually I found out there was some changes in PHP options (by the webhost). I allowed intl and opcache and now some of the pages are working. But i still keep getting HTTP error. And if I try to clear cache I get: (1/1) OutOfMemoryException Error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1613824 bytes) in ContainerBuilder.php line 1603 Link to comment Share on other sites More sharing options...
JBW Posted March 30, 2020 Share Posted March 30, 2020 Try to increase your memory limit in your PHP configuration or ask your hosting provider to do so Link to comment Share on other sites More sharing options...
Tirppis Posted March 30, 2020 Author Share Posted March 30, 2020 Here are my current PHP settings Link to comment Share on other sites More sharing options...
JBW Posted March 30, 2020 Share Posted March 30, 2020 These aer only the used extension not all setting. You are looking for the memory limit. If your hosting allows it, then you can set it in a php.ini file https://www.php.net/manual/en/ini.core.php#ini.memory-limit 1 Link to comment Share on other sites More sharing options...
Tirppis Posted March 30, 2020 Author Share Posted March 30, 2020 Ok thank you. I can control most of the changes myself. In PHP ini settings in cPanel, I see memory_limit is 32M now. Is this the right setting? How much I need to increase it? Link to comment Share on other sites More sharing options...
JBW Posted March 30, 2020 Share Posted March 30, 2020 512MB is recommended: Link to comment Share on other sites More sharing options...
Tirppis Posted March 30, 2020 Author Share Posted March 30, 2020 Thank you very much! This solved the problem! But the back office is running very slow. Is there something i can do for this? 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