My website shows an error. How do I find out why? Print

  • error, 500 error, error log, white screen, website down, troubleshooting
  • 0

Start with what changed: most errors appear straight after an update, a new plugin, a PHP version change or edited files. Undoing that change often fixes it.

Look at the error log

  • In cPanel (see How do I log in to cPanel or Plesk?), open Metrics > Errors. It shows the latest errors on your website, newest first.
  • PHP errors are also written to files called error_log in your website folders. Open public_html in File Manager and look for one. The last lines are the newest.

The error usually names the file and line that caused it. A path with wp-content/plugins/plugin-name points to that WordPress plugin.

Common errors

  • 500 Internal Server Error: often a mistake in the .htaccess file, or a PHP error. Rename .htaccess to .htaccess-old to test (tick Show Hidden Files in File Manager's settings to see it).
  • White page, or "There has been a critical error on this website": usually a WordPress plugin or theme. Switch it off by renaming its folder (see How do I keep WordPress, plugins and themes up to date?), or check the PHP version (How do I change my website's PHP version in cPanel?).
  • "Error establishing a database connection": the database details in wp-config.php are wrong, or your disk is full (How do I check my disk space and free up room in cPanel?).
  • 403 Forbidden: there is no index file in the folder, or file permissions are wrong. Files should normally be 644 and folders 755.
  • The site doesn't open at all: check that your domain hasn't expired and that the hosting invoice is paid in the client area.

Stuck? Open a ticket (How do I contact support or open a ticket?) with your website address, what you see, and what changed just before.


Was this answer helpful?

« Back