julioabba Posted March 19, 2014 Share Posted March 19, 2014 Hi everyone I need help to solve this problem.After upgrade to PS 1.6.0.5 I can't access the modules tab from BO.I get this error:[PrestaShop] Fatal error in module blocklayered:Allowed memory size of 52428800 bytes exhausted (tried to allocate 30720 bytes)If I delete the module's folder above it shows same error but with a different module...I need Help pleaseThanks! Link to comment Share on other sites More sharing options...
prestamax Posted March 19, 2014 Share Posted March 19, 2014 (edited) This means that your memory limit is not sufficient. You will most likely have to update your hosting package. You need at least 128MB (256MB is even better). The documentation says minimum requirement 64M memory_limit but I wouldn't even try to run a prestashop installation with less then 128MB. Edited March 19, 2014 by prestamax (see edit history) Link to comment Share on other sites More sharing options...
julioabba Posted March 20, 2014 Author Share Posted March 20, 2014 I'm using 256mb by default and changed to 512mb in my PHP.ini and still have this problem, Link to comment Share on other sites More sharing options...
deepee Posted March 20, 2014 Share Posted March 20, 2014 I am getting a smilar error after an upgrade from 1.5.6.2 and can't access the Module Admin page at all. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 122880 bytes) in public_html/tests/tools/smarty/sysplugins/smarty_internal_compile_foreach.php on line 128 I have changed the memory limit to 256M but it doesn't make any difference. Link to comment Share on other sites More sharing options...
Trip Posted March 20, 2014 Share Posted March 20, 2014 I do not know why it consumes so much memory but the error message reads like " Allowed memory size of 512 MB is exhausted" so changing memory limit to the same value or less is contra productive. In deepes's case it reads like your 680 Megabyte are exausted ... I need another 130 Megabyte to show the page. So you have to raise the memory limit or somehow find out what is causing the memory consumption. All the best, Trip Link to comment Share on other sites More sharing options...
Dh42 Posted March 20, 2014 Share Posted March 20, 2014 @deepee, can you confirm through a php info file that you are actually allocating 256mb to the shop. Some hosting companies do not let you set up child ini files in the account directory. @juiloabba You seem to have your hosting limited to 50mb, increase the amount of memory to your php to around 128mb and you should be fine. Link to comment Share on other sites More sharing options...
Trip Posted March 20, 2014 Share Posted March 20, 2014 (edited) K sorry, my conversion was wrong. DH42 is right Edited March 20, 2014 by Trip (see edit history) Link to comment Share on other sites More sharing options...
julioabba Posted March 20, 2014 Author Share Posted March 20, 2014 ok By default my php.ini is 256m like this: ; Prestashop -- lowering these settings may cause your application to stop ; working, partially or entirely, or reduce your ability to import. max_execution_time = 60 max_input_time = 90 memory_limit = 256M max_input_vars = 1890I changed that 256m to 512m and still have the problem. I also increase that amout 10 times and no luck...now I get same error with a different module:[PrestaShop] Fatal error in module blockpaymentlogo:Allowed memory size of 52428800 bytes exhausted (tried to allocate 7680 bytes)If I delete that module folder another module pop up as a error... Link to comment Share on other sites More sharing options...
julioabba Posted March 20, 2014 Author Share Posted March 20, 2014 I found a fix for this problemIts related to a module folder.I had to delete from the server.I had disabled all the modules but the problem was there, then a decided to start deleting one by one and Bingo Mine was a module related to a shipping.U guys can do the same to get it fixed.Looks Like that prestashop keep seaching inside the module folder even if its disabled....So i recomend delete all the modules u are no using I hope it help thanks everyone 2 Link to comment Share on other sites More sharing options...
deepee Posted March 21, 2014 Share Posted March 21, 2014 (edited) Nice work @julioabba. I renamed my modules folder and made an empty modules folder using cPanel file manager. Now when I click the modules tab, I'm presented with all the core modules that I'm able to install. I'll now transfer my 3rd party modules one at a time from the original folder until I find the one(s) that throw the memory error. Thanks for the workaround! Edited March 21, 2014 by deepee (see edit history) 2 Link to comment Share on other sites More sharing options...
prestamax Posted March 21, 2014 Share Posted March 21, 2014 (edited) ok By default my php.ini is 256m like this: ; Prestashop -- lowering these settings may cause your application to stop ; working, partially or entirely, or reduce your ability to import. max_execution_time = 60 max_input_time = 90 memory_limit = 256M max_input_vars = 1890 I changed that 256m to 512m and still have the problem. I also increase that amout 10 times and no luck... now I get same error with a different module: [PrestaShop] Fatal error in module blockpaymentlogo: Allowed memory size of 52428800 bytes exhausted (tried to allocate 7680 bytes) Allowed memory size of 52428800 bytes means that your server is only allowing 50MB wich is not sufficient for prestashop. you can convert the bytes here ans see it yourself http://www.whatsabyte.com/P1/byteconverter.htm How did you increase the memory? Do you have a server? If you change the php.ini on your server you need to restart apache in order to accept the new value otherwise still the old value will apply. Edited March 21, 2014 by prestamax (see edit history) Link to comment Share on other sites More sharing options...
Raad Posted March 21, 2014 Share Posted March 21, 2014 Hi, i realized 2 things: in a fresh install I did NOT have that issue: "Allowed memory size of 52428800 bytes exhausted (tried to allocate 30720 bytes)" --> till now it works fine in an upgraded install, i had that issue: What i did for the 2) ? I took a fresh & clean "module folder" directly from 1.6.0.5, I replaced the upgraded module folder by the fresh & clean one....and the issue was solved! All that, using the Cpanel! Hope that helped! 1 Link to comment Share on other sites More sharing options...
shayneb Posted March 23, 2014 Share Posted March 23, 2014 THANK YOU to the people who suggested deleting the modules folder. I renamed mine modules_old, made a new, empty modules folder, and my Modules panel started working. Link to comment Share on other sites More sharing options...
Recommended Posts