Jump to content

Out Of Memory despite more than enough in PHP Info


Recommended Posts

I have been struggling with a new Prestashop install and the Out Of Memory issue. I thought everything was solved when I put a PHP.ini file into the root of the site with the memory setting set to 128MB, the website at least began to be usable.

However as I have been populating the site and now testing it I have found that I can't display the cart, again I get Out Of Memory.

I have a PHP Info page telling me I do in deed have 160MB of memory allocated, than yet the site will error when only trying to allocate 18MB.

The website in question is www.recycled-stuff.co.uk if you add somethign to the cart ehn try to view the cart you should get the error. If you want to check teh PHP info file add php-info.php to the main address.

Any help much appreciated.

Thanks

Link to comment
Share on other sites

The error is

Fatal error: Out of memory (allocated 18874368) (tried to allocate 9877 bytes) in /home/recycled/public_html/tools/smarty/sysplugins/smarty_internal_templatelexer.php on line 454

If you add a product to the cart then try to view the cart you get this error.

Link to comment
Share on other sites

add a line code. memory_limit . prestashop error


I tried this when teh site had memory errors after first installing, it made no difference, teh only way I could get it up and running was to use teh php.ini file. The website tehn started working except for the cart.

Where are you suggesting to put this code?
Link to comment
Share on other sites

The error says 18MB, which means that's all it had.

I'm not sure where you saw 160MB, maybe you have a php.ini file in multiple locations, the only way to fix it is to increase the memory allocation in your php.ini file.

  • Like 1
Link to comment
Share on other sites

If you look at php info results, found here, www.recycled-stuff.co.uk/php-info.php you can see that 160MB is allocated using the only php.ini file (in the root) of the site. Hence my original confusion.

Link to comment
Share on other sites

  • 1 month later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...