Summer Sale Alert! Save 20% on WP Theme Bundle: 240+ WP Themes & 5 Plugins. Use Code "SIZZLE20"
Summer Splash Sale: Dive into 25% Off On All Our Premium WordPress Themes! Use Coupon Code "SPLASH25" at Checkout.

Illustration On Fixing Memory Exhausted Error And Increase PHP Memory!

While managing the WordPress website you are going to face several issues. Some of them will be inevitable like this one. The memory exhausted error and increase PHP memory is one of these errors.

One time or another you are definitely going to face this issue. So if it occurs don’t panic. Just remember you can sort it out without any expert help. It’s very easy to resolve this issue if you know exactly what to do.

When you buy a smartphone, it comes with specific internal memory storage. Just like that WordPress gives specific storage space to each website. It will get exhausted at some point. So this error will appear.

But with these steps you can easily sort it out!

memory exhausted error increase PHP memory

What Is This Error?

This memory exhausted error and increase PHP memory is concerned the space issue in WordPress website. After you establish your WordPress website then the WordPress server gives your website with default memory space. There will be time when you will run out of this memory space.

In such times you will get the memory exhausted error on your website. The error will show up something like this-

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

This issue can be easily resolved. We have given a detailed step by step illustration on how to fix memory exhausted error and increase PHP memory. These are simple steps that you need to follow.

Before we get into it, it’s important that you take a backup of your website. These steps include editing your core files. So if something goes wrong, you might lose your entire website. To prevent that from happening, taking backup of your website is very important.

Now, let’s get into it!

1. Wp-config File:- 

It’s very important to resolve this issue as early as possible. Your website is the medium for you to connect with your customers around the world. If the site stops working it can cost you your business. Following these steps will solve the memory exhausted error and increase PHP memory.

So, first of all you need to access your root directory. For this go into your web hosting control panel. There click on the FTP client that your host has provided.

In the FTP client locate root directory. You will find it somewhere near wp-content, -includes and etc. Spot the wp-config file, click on it and download.

Save the wp-config file into your system.

Then open the file in your system. Edit it by adding these codes:

Define(‘WP_MEMORY_LIMIT’, ‘256M’);

After editing the wp-config file save it into your system. Then upload the file into your root directory. This will successfully increase the memory size of your website.

2. cPanel:-

One thing you need to know before ignoring the issue once again. This is an inevitable issue that you will be facing. If you are running a big website, then it’s important to keep track of such things. The WordPress always give default memory space. It will run out one day and you will have to resolve the issue.

If the memory exhausted error still remains even after editing wp-config file, then there’s another way. The reason behind this error can be your host provider. It may be preventing you from increasing your memory space.

The another way of resolving this issue goes through cPanel. You need to head to your cPanel and click on Software. Under this section you will notice a folder named, ‘PHP section’.

Click on switch to PHP options and you will see various options. In those options you will find one with increase memory space. A drop down menu will appear. There you will have to select a size to which you want to increase the memory of your website.

After doing so wait for few minutes for the information to update. After this you have successfully increased the memory size with cPanel.

3. Plugins:-

Plugins are the integral part of your website. They can make the hardest job easy. But they can cause problems as well. Having too many unused plugins can make your website slow. And having malfunctioning external plugins can eat up the memory space and do nothing.

If the memory exhausting error still remains after going through cPanel, then it can be the external plugin. These external plugins take up too much space into the memory of your website. So the first thing you need to do it to figure out which plugin is that. Then deactivate it. This can also improve your website’s performance.

To perform this task you can take help from a plugin itself! So go to the dashboard, into plugin and click on add plugin. In the search bar put performance plugin. As it shows up download, install and activate the plugin.

This plugin will show you how many plugins are running in the background. Along with the space they are exhausting from your website.

Now, go to your hosting account and access the root directory via FTP. There you will see the list of plugins you are using in your website. Find the plugin folder. Then rename it. This will deactivate all the plugins. Check if the error is gone.

If the error goes away then plugins were causing the error. Change the folder name to default. Then rename each plugin one by one. This will give an idea which plugin exactly was causing the problem.

Now deactivate the distinct plugin and try to access the admin area. That’s it!

By following these steps you will be able to resolve exhausted memory error and increase PHP memory space. Make sure that you can anyway enhance the memory size of your website. You can also tweak with PHP.ini file, info.php file to increase the PHP memory space.

Whenever you get this memory exhausted error don’t panic. With these simple steps you can resolve the issue and increase php memory space as well.

Would you like to buy WordPress themes on sale? If yes, check out our website VWthemes for top WordPress themes available at great discounts.