Search This Blog

Friday 9 March 2018

What is WordPress Memory Limit Error?

WordPress is composed in PHP, which is a server-side programming dialect. Each site needs a WordPress facilitating server for it to work legitimately.

Web servers are much the same as some other PC. They require memory to effectively run different applications in the meantime. Server managers apportion particular memory size to various applications including PHP.

At the point when your WordPress code requires more memory than the default designated memory, you get the opportunity to see this mistake.

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2348617 bytes) in /home4/example/public_html/wp-includes/plugin.php on line 356



By default, WordPress automatically tries to increase PHP memory limit if it is less than 64MB. However, 64MB is often not high enough.

Having said that, let’s see how to easily increase PHP memory limit in WordPress to avoid memory exhausted error.

Increase PHP Memory Limit in WordPress
First you need to edit the wp-config.php file on your WordPress site. It is located in your WordPress site’s root folder, and you will need to use an FTP client or file manager in your web hosting control panel.

Next, you need to paste this code in wp-config.php file just before the line that says ‘That’s all, stop editing! Happy blogging.’

define( 'WP_MEMORY_LIMIT', '256M' );
This code tells WordPress to increase the PHP memory limit to 256MB.

Once you are done, you need to save your changes and upload your wp-config.php file back to your server.

No comments:

Post a Comment