How to view PHP errors?

 

The errors your website generates are stored in the PHP Error Log on your hosting account. PHP functions, misconfigured, malformed, or incompatible plugins, themes, or scripts can also cause errors. All these errors, along with what caused them, are logged in the error log.

 

PHP Error Log


  • Go to cPanel > File Manager.

  • Navigate to the public_html directory.

    public_html is the root directory of your primary domain.
    The root directory is different for other domains and subdomains. You can view the root directories in cPanel > Domains.

  • Select the error_log file.

  • Click "View" from the top menu.

It contains PHP errors, the file paths of the PHP scripts, and the PHP functions that caused the errors. This information should give you a good idea of what is causing the errors.

Update the offending plugin, theme, or PHP script to their publicly available latest stable versions, downloaded from their original sources. Or, disable it.

If that does not solve the error, contact the devs of the offending plugin, theme, or PHP script for support.

 

  • 370 Users Found This Useful
Was this answer helpful?

Related Articles

How to fix errors after migrating WordPress?

  Migrations from cPanel-based servers are usually seamless. But sometimes a few issues might...

Fix there has been a critical error on this website error in WordPress

  The error "There has been a critical error on this website." often occurs when the PHP mail()...

Fix WordPress redirect error - ERR_TOO_MANY_REDIRECTS

A redirect loop or too many redirects error can occur if multiple redirects from different...

How to fix 403 forbidden error in WordPress?

In this article, we will show you how to easily fix the 403 forbidden error in WordPress. What...

How to deactivate plugins when not able to access WordPress admin?

Often during troubleshooting, you may need to deactivate all plugins and activate them one by...