vifra Posted April 1, 2017 Share Posted April 1, 2017 Hi,I have a question about an error that is sometimes occuring and is puzzling me: the index page of my website sometimes doesn´t show up, it just shows a blank page (in chrome it indicates a http error 500), while the other pages of the site are still available. It only happens to the index page. My hosting says it is due to the memory limit which is set to 128M and should be upgraded to 160M to solve the problem. But if that is the case, shouldn´t it happen to ALL webpages??When I turn on the error reporting it gives me this error:"Fatal error: Allowed memory size of 167772160 bytes exhausted (tried to allocate 262184 bytes) in /hosting/www/vdnart.com/public/classes/cache/CacheApc.php on line 82"Additional information:site: www.vdnart.comphp.ini file has "memory_limit = 128M"config.inc.php file has a line "ini_set('memory_limit','128M')and memory limit on my hosting account is set to 128MPrestashop version: 1.6.0.9 Link to comment Share on other sites More sharing options...
BalzoT Posted April 1, 2017 Share Posted April 1, 2017 The Support from your hosting is correct. Each page calls all the classes and functions that are needed for it to output the data that are set to it. So you still can see all the other pages running smoothly and the index crashing. Apart from increasing your memory limit I would advise you to check all the hooks that are called in your index page to see if you can remove any for better performance 1 Link to comment Share on other sites More sharing options...
vifra Posted April 1, 2017 Author Share Posted April 1, 2017 Okay, thank you for your answer. Will check on the hooks and remove some if possible. I already cleaned up modules to improve performance, but I guess that was not enough... Link to comment Share on other sites More sharing options...
BalzoT Posted April 1, 2017 Share Posted April 1, 2017 It's usual for that usage. I set memory limit to about 190mb for PrestaShop so 160 is ok 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