Jump to content

Issue in loading bulk images


Recommended Posts

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 122

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

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

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

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

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

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

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

×
×
  • Create New...