WordPress can create problems if the memory assigned to it is not enough for the execution of different processes running into it. One of the common issues is ERROR 500.
First, you have to check how much memory is already assigned to your website. You can do this by installing a plugin called Server Info. To install it navigate to WordPress Dashboard Plugins > Add New and search for “server info” and you will see it in the results.
So, click on the Install Now button and then once installed click Activate. After the plugin is successfully activated you can then see the memory assigned to your website by navigating to WordPress Dashboard > Server Info.
You can see that by default only 40 MB memory is assigned and you have to increase it in order to resolve the issue you are experiencing.
How to increase the WP Memory?
There are two ways to increase it and you can choose the way which you like.
- Increase WP Memory using WP Peon Plugin.
- Manually increase WP Memory Limit by editing the wp-config.php file directly.
Increase WP Memory Limit using WP Peon Plugin
Navigate to WordPress Dashboard > Plugins > Add New and search for wp peon and install and activate the plugin.
After installing the plugin navigate to WordPress Dashboard > Tools > WP Peon and click on Advance tab. On this page, you will see the code for .htaccess and wp-config.php file. We need to increase the memory so we have to add our code in wp-config.php file input area. The code you have to add right after the debug code is as follows.
Click on Save Settings to save these changes. It will probably display “fail to update the file” but don’t worry the file is still updated and you can again verify if the memory is increased or not by navigating to WordPress Dashboard > Server Info page and this time you should see the memory as 128M.
If you still need further assistance or have a question then please feel free to open a ticket on our support site (login required):