Topics

  • The White Screen of Expiry
  • Internal Server Error
  • Error Establishing Database Connection
    • Incorrect wp-config.php Information
    • Bug with Your Web Host
    • Compromised Website
  • Failed Auto-Upgrade
  • Connection Timed Out
  • Maintenance Fashion Post-obit Upgrade
  • You Make Changes and Nix Happens
  • Pretty Permalinks 404 and Images not Working
  • Custom Post Blazon 404 Errors
  • Specific Fault Letters
    • PHP Errors
      • Fatal Errors and Warnings
      • Parse errors
      • Use of an undefined constant
    • Database Errors
      • Mistake thirteen – Cannot Create/Write to File
      • CREATE Control Denied to User
      • Error 28
      • Error 145
      • Unknown Column
    • Resources

If you are encountering a WordPress mistake bulletin or white screen, don't panic. Someone has likely encountered the same message before and it tin easily be solved.

This page lists the nearly common WordPress errors experienced by WordPress users, and provides a starting point for fixing them. At WordPress Back up, you will also notice links to more detailed pages or forums where a volunteer will be there to aid.

The White Screen of Death The White Screen of Death

Both PHP errors and database errors can manifest as a white screen, a blank screen with no information, usually known in the WordPress community as the WordPress White Screen of Decease (WSOD).

Before resorting to desperate measures, there are a number of reasons for the WordPress white screen of death:

  • A Plugin is causing compatibility issues. If you lot tin can admission the Administration Screens try deactivating all of your Plugins and then reactivating them i by ane. If you are unable to admission your Screens, log in to your website via FTP. Locate the folder wp-content/plugins and rename the Plugin folder plugins_old. This will conciliate all of your Plugins. You lot tin can read more than about manually deactivating your plugins in the Troubleshooting FAQ.
  • Your Theme may exist causing the problem. This is specially likely if you are experiencing the white screen of death after you have simply activated a new Theme, or created a New Site in a WordPress Network. Log in to the WordPress Administration Screens and activate a default WordPress Theme (e.g. Twenty Twenty-One). If you are using WordPress 5.8 and below, please switch to Twenty 20-1 theme since the Xx Twenty-Two theme requires v.nine and in a higher place. If you can't access your Administration Screens, access your website via FTP and navigate to the /wp-content/themes/ folder. Rename the folder for the active Theme.

The WP_DEBUG feature often provides additional information.

Top ↑

Internal Server Error Internal Server Mistake

Internal Server Error bulletin

At that place tin be a number of reasons for an Internal Server Error. Here are some thing yous tin do to solve it:

  • The most likely upshot is a corrupted .htaccess file. Log in to your site root using FTP and rename your .htaccess file to .htaccess_old. Attempt loading your site to see if this has solved your trouble. If it works, make sure to visit Settings > Permalinks and reset your permalinks. This will generate a new .htaccess file for you.
  • Endeavor deactivating all of your Plugins to encounter if it is a Plugin issue. If you are unable to admission your WordPress Assistants Screens, conciliate your Plugins via FTP past following these instructions.
  • Switch the Theme to a WordPress default Theme (due east.g. Twenty Twenty-I) to eliminate any Theme-related problems. If you are using WordPress five.viii and below, please switch to 20 20-1 theme since the Twenty Twenty-Two theme requires 5.nine and above.
  • Increase the PHP Retentivity limit
  • Try re-uploading the wp-admin and wp-includes folders from a fresh install of WordPress.

Top ↑

Mistake Establishing Database Connection Error Establishing Database Connection

If you get a page featuring the message "Mistake Establishing Database Connection," this means that there is a problem with the connection to your database and there could be a number of reasons for this. The following are possible reasons and solutions.

Top ↑

Incorrect wp-config.php Information Wrong wp-config.php Information

"Fault establishing a database connectedness" is unremarkably caused by an error in your wp-config.php file. Access your site in your FTP client. Open up wp-config.php and ensure that the post-obit are correct:

  • Database name
  • Database username
  • Database password
  • Database host

Learn more about editing wp-config.php.

If you are certain your configuration is correct you could endeavour resetting your MySQL password manually.

Tiptop ↑

Problems with Your Spider web Host Bug with Your Web Host

The next pace is to contact your web host. The following hosting issues may be causing the trouble:

  • Your database has met its quota and has been shut downwardly.
  • The server is downwards.

Contact your hosting provider to come across if either of these issues is causing your problem.

Top ↑

Compromised Website Compromised Website

If you accept checked wp-config.php for errors, and confirmed with your host for hosting issues, information technology is possible that your site has been hacked.

Scan your site with Sucuri SiteCheck to ensure that it hasn't been compromised. If it has you should check out My Site was Hacked.

Height ↑

Failed Auto-Upgrade Failed Machine-Upgrade

There will be situations when the WordPress auto-update feature fails. Symptoms include:

  • A blank white screen and no information.
  • A warning that the update failed.
  • A PHP mistake bulletin.

The WordPress automatic upgrade feature may neglect due to a glitch in the connection with the main WordPress files, a problem with your Internet connection during upgrade, or incorrect File Permissions

To update your WordPress site manually, come across the Manual Update article.

Top ↑

Connection Timed Out Connection Timed Out

The connection timed out error appears when your website is trying to do more than your server can manage. It is peculiarly mutual on shared hosting where your memory limit is restricted. Here are some things yous can try:

  • Deactivate all Plugins. If deactivating all the WordPress Plugins on your site resolves the issue, reactivate them one-by-one to run across which plugin is causing the problem. If you lot are unable to admission your Administration Screens, read about how to manually conciliate your plugins.
  • Switch to a default WordPress Theme. If yous are using WordPress 5.8 and below, please switch to Twenty Twenty-One theme since the Xx Twenty-Ii theme requires 5.9 and higher up. This should rule out any Theme-related problems.
  • Increase your memory limit in wp-config.php. If y'all are on shared hosting you may have to ask your hosting provider to increase your retentiveness limit for y'all.
  • Increase the maximum execution fourth dimension in your php.ini file. This is non a WordPress core file so if you are not certain how to edit it, contact your hosting provider to ask them to increase your maximum execution time. See below instructions for increasing maximum execution time.

Top ↑

Maintenance Mode Post-obit Upgrade Maintenance Fashion Following Upgrade

When WordPress updates, it automatically installs a .maintenance file. Post-obit upgrade, you lot may receive a message that says "Briefly unavailable for scheduled maintenance. Please check back in a minute." The maintenance file may not have been removed properly.

To remove this message exercise the post-obit:

  1. Log in to your website using your FTP program
  2. Delete the .maintenance file, which volition exist found in your site root.

Read more than about the maintenance way issue.

Top ↑

You Make Changes and Nothing Happens You Make Changes and Nothing Happens

If y'all are making changes to your website and you practise not see the changes in your browser, you may need to clear your browser cache. Your browser stores data about the websites that you visit. This makes it faster to load websites when you visit them considering the browser just has to reload information already stored on your computer, rather than downloading it again.

If you make a change to a website and the browser does not recall information technology is significant, it will simply load the data from your enshroud, and y'all won't run across your changes. To fix the problem, simply empty your browser cache or shut the tab and reopen the link.

Top ↑

If y'all are experiencing 404 errors with pretty permalinks and a white screen when you upload images, mod_rewrite may not be enabled in Apache by default. Mod_rewrite is an extension module of the Apache web server software which allows for "rewriting" of URLs on-the-fly. It's what you lot need to make pretty permalinks work.

WordPress Multisite networks ordinarily experience this merely it can also occur on shared hosting providers or after a site migration or server move.

Reset your permalinks through Settings > Permalinks. If this does not work, you lot may have to edit the .htaccess file manually.

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

If you are not familiar with editing your .htaccess file, contact your hosting provider to ask them to plow on mod_rewrite rules. There is more data on pretty permalinks in the WordPress Codex.

Top ↑

Custom Post Type 404 Errors Custom Postal service Type 404 Errors

You lot may experience problems with 404 errors and custom mail types. Try the post-obit steps:

  1. Brand certain that none of your Custom Postal service Types and single pages have the same name. If they practice, rename the single page, including the slug.
  2. Log in to your WordPress Administration Screens, navigate to Settings > Permalinks. Select the default permalinks. Salvage. Then reselect your preferred permalinks. This will flush the rewrite rules and should solve your problem.

Pinnacle ↑

Specific Mistake Messages Specific Error Messages

In that location are a number of different errors that will appear in your error logs. To access your error logs you will need to plough on debugging and then locate your error log via FTP. The following information will help you to decipher some of the mutual error messages.

Elevation ↑

PHP Errors PHP Errors

Beneath are some common PHP error messages.

Top ↑

Fatal Errors and Warnings Fatal Errors and Warnings

If you receive a alarm that WordPress cannot alter header data and headers are already sent, information technology usually ways that you have spaces or characters before the opening tags or after the closing tags. Read how to fix the headers already sent mistake.

If you are experiencing this problem when y'all have just installed WordPress you may have introduced a syntax mistake into wp-config.php. These instructions will help yous to set up the error.

Call to undefined function

An error reading call to undefined function could mean that a WordPress Plugin is trying to find a file or data which isn't present or attainable in the code. Reasons for this include:

  • An error when trying to machine-install or car-upgrade a Plugin. Try installing or upgrading the Plugin manually.
  • An fault when trying to auto-install or auto-upgrade a Theme. Try installing or upgrading the Theme manually.
  • You may be using an incompatible WordPress Plugin or incompatible Theme. This could happen with older versions of WordPress and a new WordPress Plugin, or if you are trying to use a WordPress Multisite Plugin on a single site installation. Upgrade WordPress to resolve this issue.
  • Yous may be trying to call a function that doesn't be. Check functions.php for misspellings.

Attempt deactivating the WordPress Plugin or changing the WordPress Theme that acquired the error to appear. If you are unable to do this from inside the Administration Screens, you may accept to do this manually via FTP.

Allowed retentivity size exhausted

An Allowed Memory Size Exhausted error means that your WordPress installation doesn't have enough memory to achieve what you want. You tin try out the following steps:

  • Increase your retentiveness limit in wp-config.php
  • Increase your memory limit past editing php.ini. This is not a file that comes with WordPress so if you lot are unfamiliar with information technology you should contact your web host about increasing your memory limit.
Maximum execution time exceeded

Y'all may receive a message such as "Maximum execution time of xxx seconds exceeded" or "Maximum execution fourth dimension of 60 seconds exceeded". This means that it is taking to longer for a procedure to consummate and it is timing out. There are a number of ways to prepare this fault.

Editing .htaccess

Brand sure you support .htaccess before you edit it.

Add together the following line to .htaccess:

php_value max_execution_time 60

Editing php.ini

Add the following to php.ini

max_execution_time = 60

If you lot are unsure of how to brand these changes, or if you are on shared hosting that prevents you from making them yourself, you should contact your hosting provider and enquire them to increase your maximum execution time.

Top ↑

Parse errors Parse errors

Syntax Error

A syntax error means that you accept fabricated a mistake while creating your PHP structure. You could, for example, be;

  • Missing a ; at the end of an individual line.
  • Using curly quotation marks.
  • Missing a curly bracket.

When this error appears it will tell you which file the error appears in (functions.php for case) and approximately which line (it may not always exist the exact line and so be certain to check just before and just after) in the lawmaking.

Unexpected

If you are receiving an error which says 'parse error: unexpected' this usually means that y'all have forgotten to include a character. The most common are:

  • Unexpected '=' : you have forgotten to include the $ when referencing a variable
  • Unexpected ')' : you have forgotten to include the opening subclass (
  • Unexpected '(' : you have forgotten to include the closing bracket )
  • Unexpected T_STRING: you take forgotten a quotation mark or a semi-colon at the finish of the previous line
  • Unexpected T_ELSE: you have an else statement with no opening if statement

Top ↑

Use of an undefined constant Use of an undefined abiding

As with parse errors, "use of an undefined constant" means that yous are missing a character. It could be one of the following:

  • Missing a $ when referencing a viariable
  • Missing quotation marks around array keys

Top ↑

Database Errors Database Errors

The following errors may appear in relation to your WordPress database.

Top ↑

Mistake 13 – Cannot Create/Write to File Error 13 – Cannot Create/Write to File

There are a number of reasons why yous may be experiencing this error.

MySQL cannot create a temporary file.

The MySQL variable tmpdir is set to a directory that cannot be written to when using PHP to admission MySQL. To verify this, enter MySQL at the command line and blazon evidence variables. You'll get a long listing and one of them will read: tmpdir = /somedir/ (whatsoever your setting is.)

To solve this, change the tmpdir variable to indicate to a writable directory.

  1. Find the my.cnf file. On *nix systems this is usually in /etc/. On Windows system, Find the my.ini.
  2. Once found, open this in a simple text editor and find the [mysqld] section.
  3. Under this section, find the tmpdir line. If this line is commented (has a # at the start), delete the # and edit the line and so that it reads: tmpdir = /writable/dir where /writable/dir is a directory to which y'all can write. Some use /tmp, or y'all might as well try /var/tmp or /usr/tmp. On Windows, apply C:/Windows/tmp.
  4. Save the file.
  5. Shutdown MySQL by typing mysqlshutdown -u -p shutdown.
  6. Start MySQL by going to the MySQL directory and typing ./bin/safe_mysqld &. Normally the MySQL directory is in /usr/local or sometimes in /usr/ on Linux systems.

The file permissions are incorrect

Right the File Permissions.

If none of this make sense and you accept someone to administrate your system for you, show the above to them and they should be able to effigy it out.

Top ↑

CREATE Command Denied to User CREATE Command Denied to User

This error occurs when the user assigned to the database does not have adequate permissions to perform the action to create columns and tables in the database. You will need to log in to CPanel or Plesk to give your database user adequate permissions.

Alternatively you can create a new user to assign to your database. If you lot do create a new user you volition need to ensure that it is updated in wp-config.php.

Top ↑

Error 28 Error 28

It could exist because:

  • you lot are out of space on /tmp (wherever tmpdir is), or,
  • you have too many files in /tmp (even if there is lots of complimentary space), or,
  • Your cache on your server is total

This is a MySQL error and has aught to do with WordPress straight; y'all should contact your host about it. Some users have reported that running a "repair tabular array" command in phpMyAdmin stock-still the problem.

Top ↑

Mistake 145 Error 145

This indicates that a table in your database is damaged or corrupted. If you are comfortable using phpMyAdmin you can apply these instructions on repairing your MySQL database tables.

E'er backup your database before performing any actions on information technology.

If you have non used phpMyAdmin before, or are uncomfortable doing so, contact your web host and ask them to run CHECK/REPAIR on your database.

Top ↑

Unknown Cavalcade Unknown Cavalcade

An unknown column error can exist caused past a missing cavalcade in the database. If you have merely upgraded WordPress then try manually upgrading again. To update your WordPress site manually, see the Update article.

If yous are running a database query when yous come across the error then you lot may past using wrong quotation marks for the identifier quote graphic symbol. This question on Stack Overflow provides more than details. Also see the MySQL documentation.

Meridian ↑

Resources Resource

  • MySQL Error Codes and Messages