How to Fix Common WordPress Issues

by Saud Razzak  December 7, 2016

Let’s take some time out and talk about WordPress errors. WordPress is easy to use, but some of the most common WordPress errors can be a bit agonizing.

In this article, I am going to show you how you can fix the following errors.

WordPress Errors

So let’s begin,

Very Important Note:  The initial step is a complete backup of the site. This is a crucial step that shouldn’t be ignored. The backup guarantees that in the case of a disaster, the website could be restored without any issues.

WordPress White Screen of Death

One beautiful morning, you wake up, take some coffee, and sit at your workstation. You turn on your laptop screen, open up your browser, and enter your website’s URL. Shockingly, you encounter a blank page! No matter how many times you refresh, you’re unable to access the site.

White screen of death

For those of you who have never encountered the WordPress white screen of death, then you’re one of the lucky ones. In this section, I am going to show you how to fix the WordPress white screen of death.

Increasing the Memory Limit

The web host and WordPress sets PHP memory limits. At the point when the memory begins to run low, the server frequently shows a White Screen of Death. This issue could be resolved by increasing the memory limit.

There are various ways of increasing PHP memory limit.

  • Through Functions.php
  • Through .htaccess File
  • Through wp-Config.php


You need to go to the root directory and then to the folder of the current theme. For example, check the image below:

Function file

Download the function.php file on your local server and add the following code at the top of the file.

.htaccess File

The second step is to edit the .htaccess file, it is located in the primary WP folders such as wp-content, wp-admin folder.

Htaccess file

Download the .htaccess file on your local server and add the following code and then re-upload it.

Here’s the code below:


The third step is to edit the wp-Config.php file that is located in the root directory. Download wp-config.php and include the following code in it.

Here’s the code below:

WP Config File

Directly from the Platform

If you are a Cloudways user, then you don’t need to work hard. Cloudways have a built-in feature to change the file size limit. Here is how you can do it directly from the platform.

Login to your account and go to Servers from the bar on the top and get into your desired server. Navigate to Settings & Packages from the left side panel and you’ll see Upload Size under the essential settings tab. Change it in accordance to your requirement. For our situation, we are going to utilize 25MB.


Deactivate All Plugins

If the memory limit troubleshooting doesn’t fix the issue, then you need to try deactivating all your plugins. There is a probability that a conflict between your currently active theme and the module you just installed arises. In such a case, you could disable that particular plugin and everything should work just fine. Get to the admin dashboard of the WordPress website and go to the Plugins >> Installed Plugins.


Deactivate the plugins one by one and refresh your site after each deactivation. If the site starts working correctly, then the error is in the plugin. Now, activate each plugin one by one and refresh your website again after each plugin activation. The plugin creating problems will soon be identified.

Deactivate all plugins

Replace Theme with a Default Theme

If troubleshooting the plugin doesn’t fix the issue, then don’t worry you should move to the next step. In this step, you should try replacing your current theme with a default twenty sixteen theme. The ideal approach to do this is by backing up your theme folder and then deleting the theme. This way WordPress will automatically fall back to the default theme and your error will be automatically fix if it is a theme related issue.

Other Fixes

If none of the above fixes are worthwhile, then you need to reinstall a fresh version of WordPress. Also, you can use the debugging function if you want to see what type of errors are being displayed as output.

Add the below code in your wp-config.php file.

WP Config File

Once it is done, you should be able to increase PHP memory limits in WordPress without any problem!

WordPress Login Page Refreshing and Redirecting Issue

The WordPress login page refreshing and the redirecting issue is mysterious, but it’s an easy fix. It will take a short troubleshooting on your part; however, we’ll try to break things down and make them as simple as possible.

Login Page Refreshing and Redirecting Issue

Clear Cookies to Resolve Login Issues

WordPress scripts utilize cookies from your program for security purposes. It confirms your login data, but these cookies can cause multiple issues at times, including redirecting you back to the login page.

In order to fix it, clear your browser cookies and cache.

Cookies and Cache

After doing that restart your program and then try to log into your account. This should fix the problem for most of you.

Deactivate All Plugins

Already mentioned as above.

Check Your Theme

Already mentioned as above.

Delete .htaccess File Code

If clearing the browsing data to Resolve Login Issues doesn’t fix the problem then you need to try Delete .htaccess File Code. In some cases .htaccess file can get corrupted which can result in internal server errors or login page refreshing error. You just need to access your website through FTP.

Go to FileZilla and then add the following details.

  • Host
  • Username
  • Password
  • Port


Then go to your application and then delete code in .htaccess file from your website root directory. Now you might need to log back in again. If you succeed, then this means your .htaccess file was stopping you from logging into WordPress. When you are signed in, just go to Settings » Permalinks and click Save. This will generate a new .htaccess file.


Update Site URL

If the delete .htaccess File Code solution doesn’t fix the issue then you need to try Updating your Site URL. Sometimes, the issue may occur because of broken site URL. To dispose of this issue, you should update the URL of your site. Include these two lines of code in your “wp-config.php” file and keep in mind to replace the “” with your own particular URL. Hopefully, the WordPress login redirect issue would be tackled.

The code that you need to put is:

Once it is done, you should be able to resolve WordPress Login Page Refreshing and Redirecting Issue to WordPress without any problem!

WordPress Keeps Logging Out Problem

If you utilize WordPress for an extended period of time, you probably have encountered the logging out issue for at least one time. To be honest, this can be seen as one of the most frustrating issues, particularly when you are saving a vital setting. It is also known as the session timeout issue and this issue happens for various number of reasons. A few reasons are listed below,

Incorrect Setting

You need to see the below image, the WordPress URL and the Site Address are two different URLs (see one has www. whereas, the other doesn’t).

Incorrect Setting

Correct Setting

If you want to fix this login issue, you need to make sure that you have the same URL as your site address and WordPress field as in the WordPress settings option.

Correct Setting

FTP Configuration

If you can’t access the admin area, then the second option that you can do is add a snippet code to the wp-config.php file. Connect your website through FTP and locate the wp-config.php file in your site’s root directory. You need to download this file on your local server and open it in a text editor like Dreamweaver or Notepad. Copy the below code in your wp-config file.

Make sure to replace the with your own domain name.

Once done, you can save the file and re-upload it to your website’s root directory.

Fixing WordPress Image Upload Issues

If you find broken images in your WordPress Media Library and you can’t upload images, then there could be an issue with the file permissions of your Uploads directory.

Image Upload Issues

How to Manually Set Your File Permissions

Just go to your website’s directory using an FTP client, like FileZilla. You’ll need to go to the /wp-content/ directory. There you will see /uploads/ folder. Simply, right click on the uploads directory and select file permissions.


After clicking the file permission, a new dialog box for file permissions will open up.


Change the permission 744 to 755 if it didn’t work for you before. Then press the OK button.

Also, you should check the box next to “Recurse into subdirectories” and select the “Apply to directories only” radio button. Then press the OK button.


Once it is done, you should be able to upload images to WordPress without any problem!

Directly From The Platform

If you are a Cloudways user you can easily set the permission just by 1-click. See the link below to read a complete guide on how to reset permissions.
How to reset the permissions of your application

Final Words

That is all there is to it. I hope that one of the tricks above may fix the issue you are observing with your WordPress website. I hope this tutorial proved to be of considerable help. If you have any query or suggestion regarding this tutorial, you can leave a comment below!


Make Your WordPress Website 100% Faster.

Host it now on Cloudways WordPress Hosting Platform.

About Saud Razzak

Saud is the WordPress Community Manager at Cloudways – A Managed WooCommerce Hosting Platform. Saud is responsible for creating buzz, spread knowledge, and educate the people about WordPress in the Community around the globe. In his free time, he likes to play cricket and learn new things on the Internet. You can email him at

Stay Connected:

You Might Also Like...