Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Fatal error: Allowed memory size of x bytes exhausted (tried to allocate xbytes)  (Read 2012 times)

0 Members and 1 Guest are viewing this topic.

lathu_official

  • Guest
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:

Code: [Select]
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.

-----------
Thanks.