Troubleshooting WordPress errors: Regain access to your WP Admin

Is your website down, but you cannot access WP Admin to fix it? This guide will help you find out the cause of the issues on your website and solve them.

Note: If the problem is a wrong password or username, follow this separate guide and change your WordPress login details.

The most common WordPress errors that prevent you from logging in:

Interpretation of different error codes and solutions

Did you know? 
If you’re facing error messages that you can’t resolve on your own – even with the help of our guides and support – or don't have time to fix them, our WP Troubleshooting service can help.

Use the contact form for Premium Care to get details, pricing, and priority assistance.


White page

Having to deal with this error can seem difficult first, because you are locked out of WordPress and don't have any error messages to work with.

What you see: Just a white page with no content at all. Screenshot of the white page issue.

Possible cause: Your website may show a white screen after reaching its memory limit.

What to do: First, try emptying your browser cache. If nothing changes, follow the steps below.

  1. Enable debugging.
  2. Wait a few minutes and refresh your page.
  3. Interpret the code and find out how to fix your error.

Note: If no error code appeared yet, the issue could be related to PHP. Activate PHP error messages for an error to appear. Continue with interpreting the code.


"500 Internal Server Error"

Much like an entire white page, this generic error doesn't provide any valuable information in itself. Follow the steps below to receive a more specific error code which can help you find out the cause of the issue.

What you see: A white page with a text about an "Internal server Error".Screenshot of an Internal Server Error.

Possible causes: Improperly named .htaccess files, PHP memory limits, outdated WordPress plugins and themes.

What to do: First, empty your browser cache. If nothing changes, follow the steps below.

  1. Enable debugging.
  2. Wait a few minutes and refresh your page.
  3. Interpret the code and find out how to fix your error.

Note: If no error code appeared yet, the issue could be related to PHP. Activate PHP error messages for an error to appear. Continue with interpreting the code.


"Critical Server Error"

Don't let the word "critical" intimidate you. You don't need to worry about your website being broken. This guide can help you fix the issue and regain access to your WP Admin.

It always helps if you remember what your last action was. Maybe a plugin was deleted or installed, or the PHP version was changed?

What you see: A grey page with a white box with the text "There has been a critical error on the website."

Screenshot of the critical server error.

Possible cause: Often, PHP issues, as well as malfunctioning plugins, themes or scripts, cause WordPress to crash.

What to do: First, empty your browser cache. If nothing changes, follow the steps below.

  1. Enable debugging.
  2. Wait a few minutes and refresh your page.
  3. Interpret the code and find out how to fix your error.

Note: If no error code appeared yet, the issue could be related to PHP. Activate PHP error messages for an error to appear. Continue with interpreting the code.


"Database Connection", "Error Loading Data", "404 Page not found" & "Forbidden"

"Error Establishing a Database Connection WordPress"


"Error Loading Data"


"403, Forbidden Error"

  • What to do:
  1. Go to File Manager.
  2. Open the folder wp-admin.
  3. Locate the .htaccess file.
  4. Delete it and confirm the deletion of the file twice.
  5. Restart your 1-click installation by typing in your domain name in the browser.


"404, Page not found"


"503, Service unavailable"

Possible cause: Most likely, this error message indicates that the server is unavailable. However, there can be many reasons for this.


"522, Connection time out"

Possible cause: This is an error specific to Cloudflare. Content delivery networks (CDNs) like Cloudflare make website connections faster between browsers and their origin servers. Sometimes the server may fail to respond within a specified timeframe. This causes the Error 522 message to appear: it indicates that the connection has timed out.

  • What to do: You can find more information about the error's possible causes and steps to resolve it in this external guide.

How to interpret an error code

An error code can look overwhelming at first, but with this simple trick, you can quickly establish what it is about and take the appropriate steps to fix the issue:

Press Ctrl+F (or Cmd+F) on your keyboard and search for the terms "plugins" or "themes".

ctrl%2Bf_find-error.gif


The error code contains the word "plugin"

The cause of the problem is the plugin mentioned after /plugins/

....../wp-content/plugins/[plugin_name]

What you see:

Screenshot showing errors which are caused by plugins.

Important: Before you continue, create a backup of your webspace and database.

What to do:

  1. Deactivate all your plugins from the database.
  2. You should now be able to log in to WP Admin.
  3. In WP Admin, update everything: all plugins, themes and your WordPress version.
  4. Reactivate your plugins one by one.
  5. (optional) If a third-party plugin cannot be updated, it will keep causing errors. Remove it from your webspace or contact the developer of the plugin.

Tip: We have collected a list of plugins that we advise against using. Check out our discouraged WordPress plugins list.


The error code contains the word "theme"

The cause of the problem is the theme mentioned after /themes/

....../wp-content/themes/[theme name]

What you see:

Screenshot showing errors which are caused by themes.

Important: Before you continue, create a backup of your webspace and database.

What to do:

  1. Change your WordPress theme to a default theme in the database.
  2. You should now be able to log in to WP Admin.
  3. In WP Admin, update everything: all plugins, themes and your WordPress version.
  4. (optional) If a third-party theme cannot be updated, it will keep causing errors. Remove it from your webspace or contact the developer of the theme.

The error code contains "wp-admin" or "wp-includes"

If the error message doesn't include /wp-content/, /plugins/ or /themes/, then the problem is most likely related to the WordPress core files and can be fixed by a manual update.

What you see:

Screenshot showing errors which are caused by WordPress core files.

Important: Before you continue, create a backup of your webspace and database.

  1. Double-check if your backups were successful.
  2. Update WordPress manually.
  3. You should now be able to log in to WP Admin.

Tip: Read our tips on how to improve the security of your WordPress site.


Related articles:

Was this article helpful?

Can’t find what you are looking for?

Start a chat

It's the quickest way to get in touch, every day of the year.

Give us a call

Available on weekdays from 10am to 2pm (UTC).