JMega Posted June 10, 2013 Share Posted June 10, 2013 I am running PrestaShop 1.5.1.0 and am having a problem when I go to add 10 or more products to my cart. After a certain number, I get this error: Fatal error: Out of memory (allocated 278134784) (tried to allocate 77 bytes) in /home//public_html/classes/ObjectModel.php on line 1465 I've spoken with my host and they upgraded my memory limit to 512M (it also says 512M in phpinfo.php) I also have this in config/config.inc: /* Improve PHP configuration to prevent issues */ ini_set('memory_limit','512M'); Anyone know of anything else I can try? Link to comment Share on other sites More sharing options...
vekia Posted June 10, 2013 Share Posted June 10, 2013 after increasing the memory limit problem still occur? Link to comment Share on other sites More sharing options...
JMega Posted June 10, 2013 Author Share Posted June 10, 2013 Yeah after doing everything above, the exact error is still occuring. Because it still says "allocating 278134784" I am thinking for some reason that it did not in fact increase to 512MB. Are there other settings somewhere in Prestashop besides the config.inc file that I would need to change the memory limit? Link to comment Share on other sites More sharing options...
benjamin utterback Posted June 10, 2013 Share Posted June 10, 2013 Hi JMega, I'm not sure where the problem is coming from. Maybe you can learn a little more by reading this post See if that helps at all. Link to comment Share on other sites More sharing options...
vekia Posted June 10, 2013 Share Posted June 10, 2013 nope in prestashop configuration files aren't any option to increase php memory limit. Everything depends on your hosting configuration (follow Benjamin link, you've got a little bit more info there) Link to comment Share on other sites More sharing options...
JMega Posted June 10, 2013 Author Share Posted June 10, 2013 Gotcha... So my memory limit should be okay then at 512MB. Any idea why this error keeps coming up when someone adds a large amount of products to their cart? Link to comment Share on other sites More sharing options...
vekia Posted June 10, 2013 Share Posted June 10, 2013 so in phpinfo you've got information, that you server has got 512mb memory limit now? Link to comment Share on other sites More sharing options...
JMega Posted June 11, 2013 Author Share Posted June 11, 2013 so in phpinfo you've got information, that you server has got 512mb memory limit now? Yes, phpinfo says the memory limit is 512mb. Link to comment Share on other sites More sharing options...
Recommended Posts