Troubleshoot core file errors in WordPress
You can use the steps below to help diagnose whether an error is related to WordPress core files.
Prepare your WordPress site for the troubleshooting:
- You should always make a backup of your site before performing any troubleshooting.
- Disable any caching plugins.
- Disable WP_CACHE if your site uses it.
Look for a core file-related error:
- Enable WordPress debug mode.
- Visit your site and check to see if there is a PHP error.
- If there is a PHP error, check to see if a WordPress core file or folder is referenced in the file path.
Note: Often these errors will reference a file in the wp-admin or wp-includes folders.
Below is an example:
Fatal error: require(): Failed opening required '/home/user/public_html/wp-includes/class-wp.php'
- If the file path in the error contains a reference to a core file or folder, then you can move on to fixing the issue.
- If the error isn't visible on your website, then you'll need to expose the error:
- If the logs or detailed errors show a PHP error related to a core file, then you can begin fixing it.
- After confirming the problem is related to your WordPress core files, you can move on to fix WordPress core file errors.
- Disable WordPress plugins in the database.
- Return to Troubleshoot and fix WordPress core file errors.
- For more information about our premium support for WordPress, please visit our WP Premium Support Catalog.