Jump to content

Allowed memory size of 52428800 bytes exhausted (tried to allocate 30720 bytes)


Recommended Posts

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 please

Thanks!
 

Link to comment
Share on other sites

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 by prestamax (see edit history)
Link to comment
Share on other sites

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

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

@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

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)

If I delete that module folder another module pop up as a error...
Link to comment
Share on other sites

I found a fix for this problem
Its 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 :P

 

I hope it help

 

thanks everyone

  • Like 2
Link to comment
Share on other sites

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 by deepee (see edit history)
  • Like 2
Link to comment
Share on other sites

 

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 by prestamax (see edit history)
Link to comment
Share on other sites

Hi,

 

i realized 2 things:

  1. 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
  2. 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!

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...