Five Killer Videos How To Fix WordPress Memory Error

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 90 bytes) in /home/wphelp24com/public_html/wp-includes/wp-db.php on line 1958

What does the above error message mean?

If you get this error message, it simply means your WordPress site needs more memory (processing power) to function properly.

WordPress works similar to any app on your computer.

The more apps you have running on your computer, the more memory they will consume and the slower your computer will become.

Same thing happens on a WordPress website.

The more plugins you have installed, the more memory they will consume.

Your WordPress site will become slower and eventually crash.

Actually, the easiest way to fix the WordPress memory error is by getting rid of all unnecessary plugins. 

If you do need all your plugins, don’t worry.

Here are five great videos how to fix the exhausted WordPress memory error without touching your plugins.

We’ll start with the simplest technique.

Fix WordPress memory error by editing wp-config.php file via FTP

Three things your should have in place before you can start editing the wp-config.php file via FTP:

After the download is complete, find the wp-config.php file and open it with a text editor.

We use Aptana Studio 3 for this.

Find the line where it says:

define('WP_MEMORY_LIMIT', '64M');

In your wp-config.php file instead of 64M it can actually say 32M or 92M’ or some other number.

We are going to increase this number now.

So, if your memory limit is 32M then increase it to 64M.

If it is 64M then increase it to 96M.

And so forth. You got it.

Save the wp-config.php file and upload it back to your server via FTP.

If you have a hard time working with an FTP client or just don’t want to mess with it, watch the next video.

It explains how to fix the WordPress memory error through cPanel with File Manager.

How to increase WordPress memory limit through cPanel with File Manager

Log into your cPanel. Here is a short video what is cPanel and how to use it.

Go to the File Manager.

Open the public_html folder.

Right in the public_html folder you’ll find the wp-config.php file.

Open it and find the line where it says:

define('WP_MEMORY_LIMIT', '64M');

Sometimes you don’t have the WordPress memory limit defined, so you will not find the WP_MEMORY_LIMIT line in your wp-config.php file.

No worries.

Simply copy and paste this line into your wp-config.php file:

define('WP_MEMORY_LIMIT', '64M');

Increase the memory limit to whatever number you think is reasonable: 96M, 128M or 256M.

But be careful, most shared hosting accounts do not allow more than 256M.

Save the wp-config.php file and close it.

Fix the WordPress memory exhausted error by editing the php.ini file

If editing the wp-config.php file does not work on your site then  

  • open a code editor
  • create an empty file and
  • add this line of code:
memory_limit = 64M;

This means your WordPress will be allowed to use 64MB.

Save the file as php.ini.

If your WordPress site needs more memory then add this line to your php.ini:

memory_limit = 96M; 

or

memory_limit = 128M;

Save the php.ini file and upload it via FTP to the public_html/wp-admin folder on your server.

If you need a detailed explanation how to do this then watch the next video.

It is a step by step guide how to fix WordPress memory error by changing the php.ini file using File Manager.

If nothing works, edit the default-constants.php file

The above solutions did not work for wpHelp24.com.

I wrote a message to Siteground.com.

Siteground is our hosting company.

I thought Siteground has limited our WordPress memory usage.

This wasn’t the case.

Siteground’s support staff gave me a tip to increase WordPress memory limit in default-constants.php file.

Usually this should be done in wp-config.php file, but sometimes the wp-config.php file just does not work.

So do the following:

  • head over to your root folder,
  • find the wp-includes folder,
  • open the default-constants.php file and
  • find the lines where it says

WordPress change the default constants fileand change it to

How to fix WordPress memory error

If your site needs more than 64MB memory than make it higher.

But be careful, most hosting companies will not allow memory usage higher than 256MB.

That’s it.

Guys, if you have something to add or need help fixing WordPress memory error on your site, please, contact us or leave a comment.

We’ll do our best to quickly respond and help.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

How much is Time limit is exhausted. Please reload CAPTCHA.