Fatal error out of memory WordPress

Fatal error out of memory WordPress is caused by, as the message says, out of memory. WordPress itself is not memory hungry. According to WordPress memory requirements, 32MB is enough to run WordPress. In most cases with a decent amount of plugins, 128MB is more than enough. The default memory_limit in wp-setting.php is 128MB if you have a newer WordPress installation.

Fatal error out of memory WordPress

A WordPress out of memory is usually easy enough to fix. That is if you know your WordPress is out of memory. Fatal error out of memory WordPress is not given an error message every time. Sometimes you can experience whats called White screen of death. No error messages, no warning, no nothing. If you get a white screen of death it is often after trying to access the WordPress Admin page. Check out my WordPress admin blank page after login on how to solve that.

How to increase WordPress memory limit?

In the beginning of /wp-includes/default-constants.php 40MB is allocated to WordPress. Or 64MB if it is multisite. So if you need more than that, you should in the default-constants.php allocate more than the default value. If you feel like your site need 128MB, change the code to this: define( ‘WP_MEMORY_LIMIT’, ‘128M’ );

Please note that some WordPress hosts, or shared web hosting only allocate 8MB to php. If you are using an  unmanaged vps, dedicated server or a web host with access to the WordPress setting files, try the change above to increase php memory.

Check php memory usage

If you want to check php memory usage or how much memory your WordPress site is using, check out Server IP & Memory Usage Display. After installing the plugin, just go to your admin page and scroll down to the bottom. Really useful when debugging your memory needs for your site. You will see your php memory size and Php memory limit WordPress IP address and your php and OS version.

fatal error out of memory WordPress 2

If you liked this fatal error out of memory WordPress article, please check out my other WordPress articles.

About Author

Related Posts

wordpress page not found

WordPress page not found after changing permalinks

Permalinks are a critical aspect of a WordPress website’s structure, providing user-friendly URLs that enhance both SEO and user experience. However, occasionally, WordPress users encounter permalink issues…

Your site does not have a default theme

WordPress: Your site does not have a default theme

If you get the message Your site does not have a default theme, it is because you are missing the default theme. The default theme is used…

locked out of wordpress

Locked out of WordPress admin panel

If you are locked out of WordPress admin panel, what to do or find out what to do. I will list some of the symptoms and solutions…

Change link color Wordpress

Change link color WordPress

Change link color WordPress. Sometimes your WordPress default link colors don’t fit very well on your page. There isn’t any settings where you can change this in…

wordpress admin blank page after login

WordPress admin blank page after login

WordPress admin blank page after login, the first time is terrifying. Since you found this article, I guess that is what you are experiencing now. If not,…

Disable all plugins Wordpress

Disable all plugins WordPress

Disable all plugins WordPress if you can’t access the admin panel. If you experience a white screen of death, or for other reasons can’t log in to…

Leave a Reply