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

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

The error normally occurs when tries to process a big records or when importing or exporting. To solve the error, there are two fixes. One is to increase limit of the account by using a custom 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.

  1. Johng733

    Hello! This post could not be written any better!

Leave a Reply

Your email address will not be published. Required fields are marked *