Knowledge Base
MilesWeb / Web Hosting FAQ, WordPress FAQ

Fatal error: Allowed memory size of xxxx bytes exhausted (tried to allocate xx bytes)

Approx. read time : 2 min

WordPress is a free open source blogging tool. When posting a article OR uploading a image in wordpress, you might receive this error.

Fatal error: Allowed memory size of xxxx bytes exhausted (tried to allocate xx bytes)

This means the script which is being executed is out of php memory & needs more memory to be allocated. You will have to increase the below parameters by performing the changes in php.ini OR .htaccess file.

max_execution_time = 300 – Maximum execution time of each script, in seconds.
max_input_time = 600 – Maximum amount of time each script may spend parsing request data.
memory_limit = 64M – Maximum amount of memory a script may consume.

Change the values as above and you won’t face any issues. You can make the changes your self with our cPanel shared hosting plans.

Need help? We’re always here for you.