WordPress Errors and their fixes tutorial

WordPress is simple to use but at the same time very powerful.This is perhaps the reason behind its popularity.But sometimes even this simple content management system can give you nightmares.The fixes for those WordPress errors might not be easy.It might require decent amount of technical knowledge and debugging.

I have listed some of the common WordPress Errors and its fixes in this post.This post is written in step by step tutorial format.So you can easily follow steps mentioned in this post.I will be updating this post from time to time with new errors and their fixes.

WordPress Memory Error

WordPress memory error is the most common problem a WordPress user faces.It occurs while activating heavy plugins,generating sitemaps of large blogs or automatic upgrading of your WordPress installation.I have written detailed post on manual upgrading of your WordPress installation.You can read the post here.

If a user is activating a plugin then if WordPress throws Memory error then the user becomes helpless.The error message screen persists after refreshing the browser.Thus this is one of the most fatal error.Below is the error message number of bytes and location may differ from case to case.

“Fatal error:Allowed memory size of 33554432 bytes exhausted (tried to allocate 456912 bytes) in functions.php on line 3129”

Follow below steps to fix WordPress Memory Error

  1. Go the WordPress installation directory.
  2. Go to directory wp-includes directory and open the file default-constants.php in code editor.
  3. Go to below lines of code (original code) and replace with the code written below i.e. replace original code with modified code.You can get original and modified code at end of post.
  4. If the WordPress installation is multisite then the memory limit is set to 64M and in case of single site then the memory limit is set to 32M.This error occurs when WordPress requests memory more than 32M in case of single site installation and 64M in case of multisite installation.
READ  Google Adsense CloudFlare issue and solution

Original code

if ( !defined('WP_MEMORY_LIMIT') ) {
		if( is_multisite() ) {
			define('WP_MEMORY_LIMIT', '64M');
		} else {
			define('WP_MEMORY_LIMIT', '32M');
Modified code
if ( !defined('WP_MEMORY_LIMIT') ) {
		if( is_multisite() ) {
			define('WP_MEMORY_LIMIT', '64M');
		} else {
			define('WP_MEMORY_LIMIT', '48M');
  1. To solve the error message increase the memory limits by 16M depending upon the installation type(if you are not aware of multisite installation then you have single site installation i.e you need to increase 32M memory limit in multiples of 4M).
  2. After increasing the memory limit refresh the browser window.If the memory error is fixed then WordPress dashboard is displayed else the error message is displayed.If the error message is displayed then increase the memory limit again by 4M and refresh the browser window again.Perform these operations till the problem is fixed.

WordPress error the page is not redirecting properly

Few days back I encountered The page is not redirecting properly WordPress error while writing a post and viewing other one in other tab.This was weird problem.As I was in first thought unable to find any reason for this.There was no change in the website nor I have added or deleted any plugin.

I tried to open website in other browser but with no success.The same message was getting displayed.So it was not a browser issue as I first thought it to be a cookies problem.

Above test confirmed my belief that this is issue related to my website itself.Since there was no change in website configuration so this issue must be related to caching plugin.With this thought in mind I cleared all the caches.Guess what the problem was resolved.

I faced this issue many a times.Sometimes there was problem to login into the website admin area.If I was able to login it was giving error like you do not have privilege to access this page.

READ  How to measure site performance in different Google property?

This problem is also caused by the caching plugin.This time also it was needed to clear the cache for proper functioning of the site.But the question was how to clear the cache and which files to clear.

I was using W3 Total Cache plugin.Now to clear files cached using this plugin you need to clear all the files under the caching plugin folder wp-content/w3tc.This folder contains few subfolders.I deleted every files under the sub folders except the .htaccess file and the index.php file.

I do not know if people using other plugins face this issue but I really had faced this problem many times using W3 Total Cache.If you have faced similar issue then share your experience and the solution you tried.

I have not tried to dig deep into the problem reason as the solution I tried solved my problem every time.May be if it does not get solved then I may dive in for reason.


I have encountered above errors only during my blogging time with WordPress.You can add your issues ad I will try to come up with solutions for them as well.

Consider sharing the post in case you found this useful.

4 comments WordPress Errors and their fixes tutorial

  1. W3 Total Cache is the reason of the problem.Please read my post on W3 Total Cache and check if the settings are fine.This is not a theme issue.

  2. Yes right now i m using w3 total cache plugin, I had also changed wordPress salt and api key, When I login in wordpress and doing some work it give me error that page not found then if I want to reloging i wil get error “This webpage has a redirect loop” after deleting all history of my browser I m able to loging but I have to clear my history again and again when i have to login
    These type of issue I m facing on my wordpress blog, First i think this is because of my theme but issue was same after changing my theme from Iconic one to Genesis news pro.

  3. Are you using cache plugin? DO share some more details about the issue.You can also try changing WordPress salt and api key

  4. Hi Esha, I m also facing this issue “WordPress error the page is not redirecting properly” when trying to open admin panel some times my blog not load properly error resolve if I delete all history and cookies and didnot find proper sol. I delete w3total cache pluging upgarded wordpress and theme but didn’t get any result, Please provide any solution if U have.

Leave a Reply

Your email address will not be published. Required fields are marked *