Initially created as a blogging platform, WordPress evolved into one of the most popular site-building applications powering about 40% of all sites on the web.
Note: If you don’t want to deal with fixing your website yourself, our WordPress Premium Support team can do that for you.
Initially created as a blogging platform, WordPress evolved into one of the most popular site-building applications powering about 40% of all sites on the web. Here's the list of the most common errors that can affect a WordPress site, along with an explanation of how to resolve them.
Note: This article covers only the most common WordPress errors. If your site displays an error that is not listed below:
Select to jump to any section |
||
Error establishing a database connection |
Internal server error (error 500) |
|
The site is experiencing a critical error |
The site displays a white page |
|
Briefly unavailable for scheduled maintenance |
404 errors on posts or pages |
|
Mixed content error |
WordPress uses a database to store important data, like information about the site's users, posts, pages, and comments, for example. If your site can't communicate with the database, you'll see the Error establishing a database connection notification instead of the site's content.
Note: View Wurk Managed WordPress hosting plans
This article describes the troubleshooting process for the Error establishing a database connection. If you are unsure which error is causing issues on your site, check out the article about the most common WordPress errors with suggested solutions.
To work correctly, your WordPress site must be connected to a database. WordPress uses connection strings stored in the wp-config.php file to try and make a database connection. If the connection cannot be established, you’ll see the Error establishing a database connection notification on your site. The most common method to fix this error is to update the connection strings in the wp-config.php file.
Warning: Resolving the Error establishing a database connection requires advanced troubleshooting methods, which include connecting to your server, obtaining database credentials and prefix and editing the wp-config.php file. If you’d like a Wurk expert to fix this for you, our WordPress Premium Support team can help.
Required: You'll need the correct database details to complete all steps in this article. Database details are different from your WordPress login credentials and here's how to find them for different hosting plans: Managed WordPressLinux Hosting with cPanelWindows Hosting with Plesk
Note: If your site is hosted on Managed WordPress, the row with the host name should have the following structure: define('DB_HOST', '
yourhostname:portnumber');
You should replace yourhostname with the correct MySQL host name and portnumber with the correct port number.
Another issue that can affect your WordPress site is an internal server error (ISE), also known as Error 500. It's a generic server error that lets you know that the server cannot load the site.
Note: This article describes the troubleshooting process for the 500 Internal Server Error. If you are unsure which error is causing issues on your site, check out the article about the most common WordPress errors with suggested solutions.
An internal server error (ISE), also known as a 500 error, is a generic error message that appears when your WordPress site cannot be displayed. In older versions of WordPress, an ISE can also appear as a blank white page without any error details. The error can happen for a variety of reasons, but it’s usually caused by a conflict with WordPress, a plugin, a theme, or one of the site’s control files. This most commonly happens after an update.
Finding the cause of an ISE and then resolving it is often a matter of trial and error. Below are some of the ways you can find the cause of the error, with links to articles that will take you through each process and describe how to fix it.
Note: Resolving the Internal Server Error requires advanced troubleshooting methods, which include connecting to your hosting with an FTP app, editing or disabling files, and making changes in the database. If you do not want to fix this error yourself, our WordPress Premium Support team can do that for you.
Warning: Always make a backup of your site before troubleshooting or making any changes.
The first step in troubleshooting ISE is to connect to your server with the File Transfer Protocol (FTP). It will allow you to access and edit your site's files. When your site is experiencing a 500 ISE, your WordPress dashboard and tools like a File Manager won't work. In this case, you will need to use an FTP app to edit your site files.
There are many different FTP apps you can use, but we recommend FileZilla. Choose your hosting type from the list below to learn how to obtain FTP credentials and connect to your site:
Once connected, find a folder where your WordPress site is located–it should contain files and folders with the wp- prefix, like wp-admin, wp-content and wp-config.php. Now, you can start troubleshooting and eliminating the possible causes one by one until you find out what is causing the ISE.
One of the most common causes of an ISE is a corrupt .htaccess file. The .htaccess is a control file that WordPress uses to communicate with the server. WordPress, plugins, and themes often make changes to this file, which can sometimes corrupt the file.
The file should be located in the main folder that contains your WordPress installation (root folder). There can be other. htacess files in different folders, but you should disable this one when troubleshooting the ISE.
The .htaccess file is hidden by default, so if you do not see the file, make sure to enable the option to show hidden files in FileZilla or any other FTP app you are using.
Once you find the file, rename it to .htaccess. disabled and then visit your site in a private browsing mode in Chrome, Firefox or Edge:
Your hosting account assigns a set amount of its memory to running PHP, which is necessary for your WordPress site to function. Due to your site's size or the number of plugins it uses, the site may require more than the default PHP memory.
To do this, find the wp-config.php file in the folder with your WordPress installation and follow steps 3-7 from this article to increase the WordPress memory limit. Visit your site in private browsing mode, and if increasing the WordPress memory limit did not help, try increasing the PHP memory limit to 256M or 512M.
WordPress plugins can cause a conflict with one another, with an active theme, or with your version of WordPress, which can lead to the ISE. This is more likely to occur after you update WordPress, the active theme, or one of your plugins.
To check if an issue is caused by plugins, in the wp-content folder, rename the plugins folder to plugins. renamed and visit your site in a private browsing mode:
Note: If your site is on Managed WordPress hosting, skip this section because WordPress core files come preinstalled with the hosting plan. They are automatically updated to keep your site secure, and you cannot replace them with FTP.
In some situations, your WordPress core files can be corrupted during an update, causing the ISE. Try re-uploading WordPress core files to make sure they are not causing the issue.
Download the same version of WordPress you currently use from the WordPress repository, unzip it on your local computer, and transfer (overwrite) the wp-admin and wp-includes folders from your local computer using FTP.
Note: If you're not sure which WordPress version your site uses, you can check in the wp-version.php file found in the wp-includes folder.
If the options above did not help fix the issue, your theme might be causing the conflict. To test, you can change to one of the default WordPress themes. like TwentyTwenty or TwentyTwentyOne. You'll have to change the theme in the database since your WordPress dashboard will be unavailable when your site is experiencing a 500 ISE.
Note: If you do not have a default WordPress theme installed, you can install it with FTP and then activate it in the database.
If your site loads properly after switching to the default theme, you can update your normal theme to the latest version and activate it.
If updating the theme does not work, try the following:
If you see a notification that your site is experiencing a critical error, there may be an incompatibility between plugins, themes, or WordPress version that prevents the site from loading correctly. If you see a critical error on your site, follow the steps from this article to fix it.
When a plugin or a theme is incompatible with your WordPress site, it can prevent the site from displaying content. Instead, your site displays the notification: "There has been a critical error on this website."
You can fix the issue from your WordPress dashboard, even if it's not loading properly, through the recovery mode feature. Follow the steps below to get your site back online.
Note: If your WordPress site is older than version 5.2 you'll see a blank white screen instead of the critical error, and you need to investigate the issue with FTP. The steps from this article can help only when you see the Critical Error notification.
Warning: You should always make a backup of your site before performing any troubleshooting.
Example: If your domain is coolexample.com, you should visit coolexample.com/wp-login.php?action=entered_recovery_modeto access the sign in page for recovery mode.
Note: If you don't see the notification, deactivate all your active plugins one by one and repeat Step 5 until you find the one that caused the issue. If you still see the error with all plugins deactivated, switch to a different theme.
Warning: If you change a theme while troubleshooting a critical error, it affects the way your site looks and functions, but it provides a quick fix for errors caused by a faulty theme. It can help get your site back online, but it will look different.
Need help? Find help in our knowledgebase or simply chat to us .
Wurk and its subsidiaries are registered services provider.