Fatal error: Allowed memory size of x bytes exhausted (tried to allocate xbytes)

  • Post author:
  • Post category:Uncategorized
  • Post comments:1 Comment

In this tutorial I will show you how to fix the fatal error.

The error normally occurs when PHP tries to process a big database records or when importing or exporting. To solve the error, there are two fixes. One is to increase PHP memory limit of the account by using a custom php.ini file. But sometimes it won’t work.

If it didn’t work, then you can fix the error by increasing the memory of the particular PHP script (displayed in error message) by adding an additional line at the top of the script:

ini_set(”memory_limit”,”32M”);   (Change the value based on the error message).

Now browse the page again, perform the operation again. It will just work fine if you have set correct value based on the error message.

This Post Has One Comment

  1. Johng733

    Hello! This post could not be written any better!

Leave a Reply