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
You will need to raise the PHP memory limit to resolve this error. In addition, you will have to modify your script if your website is hosted on the shared server.
If you have VPS or Dedicated Server, you can update your PHP configuration to allow more than 64 MB of memory.
You will need to increase the value for php_memory in your php.ini file. Also, do not forget to restart your web server after making this change.