Jump to content

BackOffice Products Page does not display - Out of Memory Error / ImageManager.php


Recommended Posts

Hi all, when I log into the BackOffice of my shop and then click on Catalog and then on Products, I was met with a blank page. After turning debugging on I was met with the following error:

 

Fatal error: Out of memory (allocated 108527616) (tried to allocate 20608 bytes) in /home/***/public_html/classes/ImageManager.php on line 365

Here's a pretty good description of someone seeing similar issues to what I'm experiencing, but it's a Google translation of Spanish text, so it sometimes reads a bit funny. From what I gather there, the recommendation is to have the hosting provider raise the memory limit in php.ini to 128M. My provider has done so, raising that limit to 3500M, as is evident on the Configuration page in BackOffice:

 

Server information

Server information: Linux #1 SMP Fri Jul 12 15:02:22 EEST 2013 x86_64

Server software version: LiteSpeed

PHP version: 5.3.28

Memory limit: 3500M

Max execution time: 30

 

As this is all related to ImageMananger.php, on a whim I unwisely attempted to regenerate my images by clicking on Preferences -> Images and then on Regenerate Thumbnails and was met with the following error:
 

Fatal error: Out of memory (allocated 105644032) (tried to allocate 20608 bytes) in /home/***/public_html/classes/ImageManager.php on line 365

 

And now I have no images on my site, and am unable to regenerate them. Does anyone have any suggestions as to why this happening?

Edited by holysmokersjokers (see edit history)
Link to comment
Share on other sites

Fatal error: Out of memory (allocated 105644032) (tried to allocate 20608 bytes) in /home/***/public_html/classes/ImageManager.php on line 365

 

this tells us that php ran out of memory at 100mb...which does not 'match' the 3500mb.

 

load this free module

http://www.prestashop.com/forums/topic/278164-free-module-display-php-environment-phpinfo-back-office/

 

then click the modules configuration and navigate tab = info_configuration

 

this field will tell you the memory limit in php

 

01.02.2014-14.12.png
http://screencast.com/t/PWWoEx0e

Link to comment
Share on other sites

Fatal error: Out of memory (allocated 105644032) (tried to allocate 20608 bytes) in /home/***/public_html/classes/ImageManager.php on line 365

 

this tells us that php ran out of memory at 100mb...which does not 'match' the 3500mb.

 

load this free module

http://www.prestashop.com/forums/topic/278164-free-module-display-php-environment-phpinfo-back-office/

 

then click the modules configuration and navigate tab = info_configuration

 

this field will tell you the memory limit in php

 

01.02.2014-14.12.png

http://screencast.com/t/PWWoEx0e

 

Thanks for your reply! I installed the module at your request, however it displayed the same information as I viewed when clicking on Advanced Parameters -> Configuration Information before. Here's a cut/paste from the output of the module though:

edit: That didn't work. Attached a screenshot instead.

post-633795-0-72690400-1388696471_thumb.png

 

max_input_time -1 -1 max_input_vars 4000 1000 memory_limit 3500M 3500M open_basedir no value no value output_buffering 0 0 output_handler no value no value post_max_size 3000M 3000M

 

That's the same value my host said that had raised it to, which I just checked and that's the same value that's in the php.ini file on the server.

 

Edited by holysmokersjokers (see edit history)
Link to comment
Share on other sites

  • 9 months later...
×
×
  • Create New...