Mani rathnam Posted January 10, 2014 Share Posted January 10, 2014 (edited) Hi, I am facing a issue while loading bulk images. Below are the issue. Warning: Wrong parameter count for clearstatcache() in /home/thec/public_html/classes/ImageManager.php on line 122Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 16128 bytes) in /home/thec/public_html/classes/ImageManager.php on line 168 Its happening in the PROD instance. We are not able to load any of the images. Same file is working fine in the test instance. I am using default theme in PS1.5.4 Please help me to fix this issue. Need to fix asap. Thanks in advance. Edited January 10, 2014 by manirathnam1988 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted January 10, 2014 Share Posted January 10, 2014 it's not related to theme. problem is strictly related to restrictions on your host. there is not enoug ram memory to finish script. Allowed memory size of 134217728 bytes exhausted (tried to allocate 16128 bytes) if you've got possibility to increase memory limit - do it and check what's going on then Link to comment Share on other sites More sharing options...
Mani rathnam Posted January 10, 2014 Author Share Posted January 10, 2014 it's not related to theme. problem is strictly related to restrictions on your host. there is not enoug ram memory to finish script. Allowed memory size of 134217728 bytes exhausted (tried to allocate 16128 bytes) if you've got possibility to increase memory limit - do it and check what's going on then Hi Vekia, Thanks for the reply. Restrictions on host in the sense i have to ask the host provider to raise the memory of the PHP or can we do by ourself in the code? Link to comment Share on other sites More sharing options...
Mani rathnam Posted January 10, 2014 Author Share Posted January 10, 2014 Hi Vekia, Thanks for the reply. Restrictions on host in the sense i have to ask the host provider to raise the memory of the PHP or can we do by ourself in the code? Hi Could you please confirm this. I have to update my client.. I have seen below post http://stackoverflow.com/questions/415801/allowed-memory-size-of-33554432-bytes-exhausted-tried-to-allocate-43148176-byte like this can I update the memory ? is this recommended? Link to comment Share on other sites More sharing options...
neller Posted January 10, 2014 Share Posted January 10, 2014 I'm not sure adding ini_set('memory_limit', '-1'); to your php.ini will help depending on the type of hosting you have.Easiest way to test it to make a info.php file, upload to the root of your site and browse to www.mysite.com/info.php info.php <?php phpinfo(); ?> That will display all config you have, search for 'memory_limit' and note the value. Then upload the php.ini as described and then refresh your info.php and see if the value has increased. If it has, try to load the images again. Link to comment Share on other sites More sharing options...
Mani rathnam Posted January 10, 2014 Author Share Posted January 10, 2014 I'm not sure adding ini_set('memory_limit', '-1');to your php.ini will help depending on the type of hosting you have.Easiest way to test it to make a info.php file, upload to the root of your site and browse to www.mysite.com/info.php info.php <?php phpinfo(); ?> That will display all config you have, search for 'memory_limit' and note the value. Then upload the php.ini as described and then refresh your info.php and see if the value has increased. If it has, try to load the images again. Thanks Neller.. I will try and let u know.. Link to comment Share on other sites More sharing options...
Mani rathnam Posted January 10, 2014 Author Share Posted January 10, 2014 I'm not sure adding ini_set('memory_limit', '-1');to your php.ini will help depending on the type of hosting you have.Easiest way to test it to make a info.php file, upload to the root of your site and browse to www.mysite.com/info.php info.php <?php phpinfo(); ?> That will display all config you have, search for 'memory_limit' and note the value. Then upload the php.ini as described and then refresh your info.php and see if the value has increased. If it has, try to load the images again. Hi Neller, I am not able to run the info.php file. I have created the file in the root folder(/public_html) and ran the page like www.colorconceptions.com/info.php I am getting "Error 500 - Internal server error". Can you please guide me how to do this? Link to comment Share on other sites More sharing options...
Mani rathnam Posted January 11, 2014 Author Share Posted January 11, 2014 Anyone please help me on this. Link to comment Share on other sites More sharing options...
Mani rathnam Posted January 13, 2014 Author Share Posted January 13, 2014 Any one please... I am not able to load the images in the production site.... Link to comment Share on other sites More sharing options...
Mani rathnam Posted January 15, 2014 Author Share Posted January 15, 2014 Finally i found the issue. the image dimension is too big. so reduced the dimension and its loading fine.. Thanks for the help. Link to comment Share on other sites More sharing options...
Recommended Posts