How to Find WordPress Errors

Posted on: April 19th, 2010. By author: admin. Comments: None
You may find after upgrading WordPress or a plugin that you start getting HTTP 500 errors. The first place to look would be in the error log file for PHP, you can setup error logging in WordPress in two ways: In your home website directory, find the .htaccess file and add the following lines: # log php errors php_flag display_startup_errors off php_flag display_errors off php_flag html_errors off php_flag log_errors on php_value error_log /home/path/logs/php-errors.log Or you can enable logging in WordPress: 1. Create a log file in your home directory (make sure the php-errors.log is writeable) 2. Edit your wp-config.php and add the following lines // log php errors @ini_set(‘log_errors’,’On’); @ini_set(‘display_errors’,’Off’); @ini_set(‘error_log’,’/home/path/logs/php-errors.log’); // path to log file