Read the WordPress error log

debug.log, error log, wp_debug, warnings, fatal error, plugin, troubleshooting · 0 found this helpful

The error log records PHP warnings and errors from WordPress. When a page breaks or a plugin misbehaves, the log usually names the file and line at fault. You can read it in your account without SSH.

Turn on logging

  1. Open Account → Hosting → your site → Websites, pick your WordPress site, and open the Tools tab.
  2. In Error log, switch logging on.
  3. Load the page that misbehaves, then click Refresh.

Logging writes errors to a file and hides them from visitors. We also block the file from the web, so only you can read it here.

The error log, grouped by plugin, with the worst problems first

Read the log

Messages are grouped by the plugin, theme or part of WordPress that caused them. The worst group comes first, so a fatal error sits above a notice. Repeats are collapsed into one line with a count, such as ×12.

  • Fatal and Error stop a page from loading. Start here.
  • Warning and Notice usually point to a bug that doesn't break the page yet.
  • Deprecated means a plugin uses code that a future PHP or WordPress version will drop. Update the plugin when you can.

Click Stack trace under an entry to see where it came from. Click Last 500 lines to see the raw log as WordPress wrote it.

Fix what you find

  1. Update the plugin or theme named in the worst group. Most errors are fixed in a newer release.
  2. If an update doesn't help, deactivate that plugin and test again. See Find a plugin conflict.
  3. Click Clear log, load the page again, and check that the error is gone.

Turn logging off

Switch logging off when you're done. The log stays until you clear it.

If something goes wrong

  • Visitors can see PHP errors: the log shows a warning with a Fix it button. Click it to send errors to the log instead.
  • Anyone with the address can open this log: click Block access. If the block can't be confirmed, nothing changes and you'll see why.
  • We couldn't confirm the log file is blocked: logging is on, but the block didn't pass our check. Click Block access to try again, or contact us.
  • The log is too big to show: a message is repeating thousands of times. Click Clear log, load the page once, and look again.
  • No errors appear: the problem may not be in PHP. Check Fix a white screen in WordPress.

Was this helpful?

Still stuck? Ask us and we'll walk you through it.