acater Posted July 18, 2011 Share Posted July 18, 2011 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 More sharing options...
tomerg3 Posted July 18, 2011 Share Posted July 18, 2011 Can you post the exact error and where you got it? Link to comment Share on other sites More sharing options...
picarry Posted July 19, 2011 Share Posted July 19, 2011 add a line code. memory_limit . prestashop error Link to comment Share on other sites More sharing options...
acater Posted July 19, 2011 Author Share Posted July 19, 2011 The error isFatal 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 454If you add a product to the cart then try to view the cart you get this error. Link to comment Share on other sites More sharing options...
acater Posted July 19, 2011 Author Share Posted July 19, 2011 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 More sharing options...
tomerg3 Posted July 19, 2011 Share Posted July 19, 2011 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. 1 Link to comment Share on other sites More sharing options...
acater Posted July 19, 2011 Author Share Posted July 19, 2011 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 More sharing options...
tomerg3 Posted July 19, 2011 Share Posted July 19, 2011 Maybe you have a php.ini file in multiple locations, or your server has some sort of custom configuration, check with your host.I don't think there's an error with the error Link to comment Share on other sites More sharing options...
Lotus Ong Posted August 29, 2011 Share Posted August 29, 2011 You might want to add the following line in config.inc.php ini_set('memory_limit', '64M'); 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