Prestashop: Out of Memory (allocated ...) in ../../../classes/Configuration.php

Prestashop suddenly gives an http 500 error. I turned on error log and got this:

"Fatal error: Out of memory (allocated 709623808) (tried to allocate 130968 bytes) in /var/www/vhosts/44/252639/webspace/httpdocs/ on line 206".

I double checked the Configuration.php on line 206 and it's just a standard prestashop file, nothing weird in it. After all it's an "Out of memory" error so maybe I should increase memory.

phpinfo() shows memory_limit 1024M, which is already pretty much, but maybe I should try 2048M. I tried to create a new custom php.ini but that did not work, because (according to phpinfo) the loaded ini file is searched in this directory: /opt/alt/php56/etc.

My hosting provider does not allow me to edit it, it's read only.

What could I do to solve the problem ?

I did not make a backup yet.


I fixed it. It had nothing to do with not having enough memory or whatever. Someone created a product and that caused errors, I don't know what exactly but for everyone in the future:

  • Create a backup
  • Turn off third party modules
  • Delete all products
  • Delete cache etc etc. until your webpage loads correctly again -> after that, restore your backup and just delete what caused the error.

Hope it will work.


 ? PrestaShop backend, Fatal error in ajax call
 ? Cron script Prestashop (php)
 ? How to find .tpl file of navbar
 ? Prestashop Geoip module - missing country
 ? Using PHP code in Smarty tpl FIle
 ? Create custom page in Prestashop 1.5.3
 ? How to create a new page in prestashop admin panel?
 ? Confused about prestashop PDF generated process. Where is the code to handle the logic?
 ? How to integrate prestashop with android?
 ? Create product from a module in prestashop