Categories

Featured templates

Fatal error: Allowed memory size of X bytes exhausted (tried to allocate Y bytes)

Alex Ross October 22, 2012
Rating: 5.0/5. From 3 votes.
Please wait...
  • It means that the memory used by the PHP script exceeded the value of the memory_limit configuration option. Note, this may or may not agree with what the operating system thinks the memory usage of the script is at the time of the error.
  • X gives you the value of the memory_limit configuration option. You can also assume that the server has at least enough virtual memory to handle the limit, but that’s about it.
  • Y is the size of the excessive memory that finally caused the error.

We strongly recommend you to contact your hosting provider and ask them to fix the issue for you.

There are two methods to solve this problem:

  • If you have access to your PHP.ini file, change the line in PHP.ini If your line shows 16M try 32M: memory_limit = 32M ; Maximum amount of memory a script may consume (32MB)

  • If you don’t have access to PHP.ini try adding this to an .htaccess file: php_value memory_limit 32M

This entry was posted in Hosting FAQ, Website & server errors and tagged bytes, error, exhausted, fatal, memory. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket