How to fix common WordPress errors

Estimated reading: 6 minutes

A WordPress error usually has a simple cause: a recent plugin or theme update, a plugin conflict, or a server limit that was reached. The white screen, the 500 error, and the database connection error are the three most common, and most of them can be traced by thinking about what changed last. Before you touch anything, take a breath and do not delete files at random. The steps below are safe for a site owner to try, and they tell you when to stop and get help.

WordPress runs on three parts: the WordPress files, your theme and plugins, and the database. An error in any of them can take the site down, but the fix is usually in the part that changed most recently. If the site worked yesterday and broke today, ask what was updated, installed, or edited in between.

First: check whether it is really down

Open the site on your phone using mobile data, not your office Wi-Fi. If it loads there, the problem may be your connection, not the site. Also try the admin login at yoursite.com/wp-admin. If the admin area loads but the public site does not, the problem is likely in the theme or a plugin that affects the front end. If neither loads, the problem is deeper, and our guide to what to do when your website is down covers the wider checks.

The white screen of death

A blank white page with no error message usually means WordPress hit a fatal PHP error and your site is configured to hide error details. Common causes are a plugin conflict after an update, a theme error, or the site running out of memory.

Safe steps to try:

  • Think about what changed last. If you updated or installed a plugin just before the white screen, that plugin is the prime suspect.
  • Deactivate plugins one at a time. If you can reach the admin area, do it from the Plugins screen. If you cannot, your hosting file manager or an FTP tool can rename the plugin’s folder, which deactivates it. Rename one folder, reload the site, and see if it returns.
  • Switch to a default theme temporarily, such as Twenty Twenty-Four, to test whether your theme is the problem. Do this only if you are comfortable; otherwise, ask for help.
  • Ask your hosting provider whether the server error log shows a recent fatal error. The log usually names the file and line that failed.

Do not edit PHP files directly unless you know exactly what you are changing. A wrong edit can make the problem worse and harder to fix.

500 Internal Server Error

A 500 error means the server tried to run WordPress and failed. The usual causes are a corrupted .htaccess file, a plugin or theme error, or a server limit such as memory or execution time.

Safe steps to try:

  • Wait a minute and reload. A brief 500 can be a temporary server hiccup.
  • Check your hosting provider’s status page. If they report an outage, the problem is theirs, not yours.
  • If the error started after a plugin change, deactivate the suspect plugin as described above.
  • Ask your host to check the server error log. It will usually point at the cause in plain terms.

Renaming the .htaccess file is a known fix, but only do it if your host or a professional guides you: the file controls how your site’s URLs work, and a mistake can break permalinks.

Error establishing a database connection

This message means WordPress cannot reach its database. It is usually a hosting problem: the database server is down, overloaded, or restarting. It can also happen if the database login details in the wp-config.php file were changed or the database was deleted, which is rare and serious.

Safe steps to try:

  • Wait a few minutes and reload. Database servers restart, and the error often clears on its own.
  • Check whether your hosting control panel shows the database as running.
  • Contact your hosting provider. Database connection errors are usually theirs to fix.
  • Do not edit wp-config.php unless you are certain the details are wrong and you have a backup of the file.

Cannot log in to the admin area

If the login page loads but your password does not work, use the Lost your password link. If the reset email never arrives, the site’s email may not be sending, which is itself a problem to report. If the login page shows a white screen or an error, the cause is usually a plugin, and the deactivation steps above apply.

When to get help

Get professional help if the site has been down for more than an hour, if you see signs of hacking, if you cannot reach the admin area or the hosting panel, or if you are being asked to edit code you do not understand. Do not keep trying random fixes: each change makes the cause harder to trace. Note what you already tried, and when the problem started, so the person helping you can work faster.

Brainiac Business can help through General Small-Business IT Support, quoted by scope before work starts. See what IT Support covers, or open a ticket at the support portal. If your site has no recent backup, read how to back up your website and restore it once it is running again.

Frequently asked questions

Will deactivating plugins delete my content?

No. Deactivating a plugin turns it off; your posts, pages, and settings stay in the database. Deleting a plugin is different and can remove its data, so deactivate first and delete only when you are sure.

Why did my site break after an update?

Updates change code, and sometimes a plugin or theme conflicts with the new WordPress version or with another plugin. This is why updates should be done one at a time, with a backup taken first.

Should I turn on error display to see the problem?

Showing errors on a live site can expose sensitive details to visitors. It is better to ask your host for the error log, or have a professional enable debugging safely.

How do I stop this happening again?

Keep regular backups, update plugins one at a time, avoid installing plugins you do not need, and keep a note of what was changed and when. Our guide to choosing and managing WordPress plugins covers the habits that prevent most of these errors.

Related reading: what to do when your website is down and how to keep your WordPress website secure.

Share this Doc

How to fix common WordPress errors

Or copy link

CONTENTS
Chat with us on WhatsApp