Fatal error: Allowed memory size exhausted
By default, PHP limits your scripts to consuming no more than 8MB of memory. In certain circumstances, this can cause the "Fatal error: Allowed memory size of 8388608 bytes exhausted" error message to occur.
How do I fix the issue?
The simplest way to correct this problem is to create a file named "php.ini" in the same directory as the PHP script that is causing the error message. In most cases, this will be in your "public_html" or "www" directory. Inside the file, place the following single line of text:
memory_limit = 16M
This command will increase the amount of memory available to PHP scripts in that directory to 16MB. If the error message persists, but has changed from "8388608 bytes" to "16777216 bytes" you'll know your change has worked but that the limit is still too low.
We generally only suggest allowing your scripts as much memory as they need. To determine this, you may like to look into PHP's "memory_get_peak_usage" function.
If you have continued trouble with this issue, don't hesitate to contact us!