Qualityrefurbished Posted February 16, 2013 Share Posted February 16, 2013 Hi im new here just installed at www.qualityrefurbished.co.uk/shop When I click on a product I get this error: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 924 bytes) in /var/www/vhosts/Placeformotors.co.uk/qualityrefurbished/shop/tools/smarty/sysplugins/smarty_internal_templatelexer.php on line 452 The only thing I've done is enable friendly irks and put the weights in for shipping how can I fix this please? Thanks for your help Link to comment Share on other sites More sharing options...
doubleD Posted February 16, 2013 Share Posted February 16, 2013 (edited) Hi im new here just installed at www.qualityrefurbished.co.uk/shop When I click on a product I get this error: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 924 bytes) in /var/www/vhosts/Placeformotors.co.uk/qualityrefurbished/shop/tools/smarty/sysplugins/smarty_internal_templatelexer.php on line 452 The only thing I've done is enable friendly irks and put the weights in for shipping how can I fix this please? Thanks for your help Hi, You should increase php memory limit value. Open config/config.inc.php and add @ini_set('memory_limit','128M'); for example before @ini_set('display_errors', 'off'); Edited February 16, 2013 by doubleD (see edit history) 1 Link to comment Share on other sites More sharing options...
Qualityrefurbished Posted February 16, 2013 Author Share Posted February 16, 2013 Thank you for your reply Link to comment Share on other sites More sharing options...
Qualityrefurbished Posted February 16, 2013 Author Share Posted February 16, 2013 Hi, You should increase php memory limit value. Open config/config.inc.php and add @ini_set('memory_limit','128M'); for example before @ini_set('display_errors', 'off'); Hi I've done that and now it just shows a blank screen so I've restore the back up for now do you know what else I could do please? Thank you Link to comment Share on other sites More sharing options...
doubleD Posted February 16, 2013 Share Posted February 16, 2013 Hi I've done that and now it just shows a blank screen so I've restore the back up for now do you know what else I could do please? Thank you What is your Prestashop version? You can turn on display errors to find out why the blank page is displayed For PS 1.5.3.1 go to config/defines.inc.php and set define('_PS_MODE_DEV_', true); Link to comment Share on other sites More sharing options...
Qualityrefurbished Posted February 16, 2013 Author Share Posted February 16, 2013 Hi it's already set to true what do I need to do now? Thank you Link to comment Share on other sites More sharing options...
doubleD Posted February 16, 2013 Share Posted February 16, 2013 (edited) Hi it's already set to true what do I need to do now? Thank you And what's your prestashop version? If you use 1.4, you should also turn on @ini_set('display_errors', 'on') Now, when you visit the website... are there any errors? Edited February 16, 2013 by doubleD (see edit history) Link to comment Share on other sites More sharing options...
Qualityrefurbished Posted February 16, 2013 Author Share Posted February 16, 2013 And what's your prestashop version? If you use 1.4, you should also turn on @ini_set('display_errors', 'on') Now, when you visit the website... are there any errors? I have version 1.5.3.1 and still the same as you can see at http://qualityrefurbished.co.uk/shop/music-ipods/1-ipod-nano.html Link to comment Share on other sites More sharing options...
doubleD Posted February 16, 2013 Share Posted February 16, 2013 I have version 1.5.3.1 and still the same as you can see at http://qualityrefurb...-ipod-nano.html And the line ini_set('memory_limit','128M'); is present in the config/config.inc.php file? There is one mor possibility, If you have access to your php.ini file, or php configuration from hosting cpanel, you should set memory_limit value there. Link to comment Share on other sites More sharing options...
Qualityrefurbished Posted February 16, 2013 Author Share Posted February 16, 2013 And the line ini_set('memory_limit','128M'); is present in the config/config.inc.php file? There is one mor possibility, If you have access to your php.ini file, or php configuration from hosting cpanel, you should set memory_limit value there. I tried setting it to 128m from 32m in the cpanel and still the same error as before Link to comment Share on other sites More sharing options...
doubleD Posted February 17, 2013 Share Posted February 17, 2013 I tried setting it to 128m from 32m in the cpanel and still the same error as before I'm pretty sure the problem is in memory limit value. You can try to follow this article... and use 128 or even 256 instead of 32.. Link to comment Share on other sites More sharing options...
Qualityrefurbished Posted February 17, 2013 Author Share Posted February 17, 2013 I'm pretty sure the problem is in memory limit value. You can try to follow this article... and use 128 or even 256 instead of 32.. I've tried all the but still get Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 30720 bytes) in /var/www/vhosts/Placeformotors.co.uk/qualityrefurbished/shop/tools/smarty/sysplugins/smarty_internal_compile_assign.php on line 51 Is it nothing to do with the file it shows in the error? Link to comment Share on other sites More sharing options...
doubleD Posted February 17, 2013 Share Posted February 17, 2013 (edited) I've tried all the but still get Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 30720 bytes) in /var/www/vhosts/Placeformotors.co.uk/qualityrefurbished/shop/tools/smarty/sysplugins/smarty_internal_compile_assign.php on line 51 Is it nothing to do with the file it shows in the error? No, You can create phpinfo.php file to see if the changes about memory_limit value were applied. with this code <?php // Show all information, defaults to INFO_ALL phpinfo(); ?> upload it and access qualityrefurbished.co.uk/shop/phpinfo.php Find memory_limit value. phpinfo.php Edited February 17, 2013 by doubleD (see edit history) Link to comment Share on other sites More sharing options...
Qualityrefurbished Posted February 17, 2013 Author Share Posted February 17, 2013 No, You can create phpinfo.php file to see if the changes about memory_limit value were applied. with this code <?php // Show all information, defaults to INFO_ALL phpinfo(); ?> upload it and access qualityrefurbished.co.uk/shop/phpinfo.php Find memory_limit value. It doesn't look like its updated ill contact my hosts nd get them to sort it thank you 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