Troubleshooting Allowed Memory Size Problems


This is caused by a script trying to use more memory than can be allocated to it. By default on shared servers any single php script can only consume 8Mb of memory. This is a hard limit set in the php.ini file and cannot be changed for stability reasons.

This problem happens when using scripts that dynamically resize large images into smaller versions. Image resizing is an extremely memory hungry process so running into this error is very likely. A work-around is to pre-process the images and store them in another location or cache, or you can call on another script written in a language that does not have this memory limit problem, e.g. perl, to do the actual processing.

You can also add an .htaccess file with the following command to increase the php_memory_limit:

 php_value memory_limit 16M

regards -
  • 6 Users Found This Useful
Was this answer helpful?

Related Articles

I'm not receiving any email!

By far the most common cause of email problems we see is in fact unrelated to email itself....

Can receive email, but can't send any?

In an effort to help combat SPAM, increasing numbers of ISPs both locally and internationally are...

"503 valid RCPT command must precede DATA" error

What is this error? Our servers need to authenticate you as a legitimate user before allowing...

Lost cPanel password

Because your cPanel password is encrypted when it is stored, we are not able to retrieve it for...

What is the path to FFMpeg?

FFMpeg Paths:/usr/local/bin/ffmpeg/usr/local/bin/mencoder...