Error: Fatal error: Allowed memory size of xxxxxx bytes exhausted

Sometimes you may receive the following error message while accessing your PHP page:

Error : Fatal error: Allowed memory size of xxxxxx bytes exhausted (tried to allocate 24 bytes) in /home/test/public_html/xxx/test.php on line xxx

Solution:

To resolve this error, you will need to raise PHP memory limit. If your website is hosted on the shared server, you will have to modify your script. If you have VPS or Dedicated server, you can update your PHP configuration to allow more than 64 MB memory. You will need to increase the value for php_memory in your php.ini file. Do not forget to restart your web server after making this change.
  • 1 Users Found This Useful

Was this answer helpful?

Related Articles

Error 3241: The media family on device is incorrectly formed

Sometimes we may receive the below error message when restoring the database from the backup file...

How to Fix Runtime Error on Website with SDF Database?

Problem Statement Runtime error on website having Database on SDF file. Solution Start IIS...

How do I fix HTTP Error 404 on my website?

Following are some of the most common reasons and solutions of 404 error. You might be typing...

Orchard CMS Error - Failure - Downloaded file failed signature verification and may have been tampered with

You may face following errors while installing ORCHARD CMS from WebsitePanel's web application...

Operation must use an updateable query Microsoft OLE DB Provider for ODBC Drivers error '80004005' .[Microsoft] [ODBC Microsoft Access Driver]

This error usually occurs when you try to insert or update data in MS Access database i.e. you do...