Title: PHP Error Log and theme check
Last modified: August 21, 2016

---

# PHP Error Log and theme check

 *  [thegh0sts](https://wordpress.org/support/users/thegh0sts/)
 * (@thegh0sts)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/php-error-log-and-theme-check/)
 * Hi all,
 * I went to go update a live WordPress site and when I ran Theme Check it gave 
   me the following warning – WARNING: error_log PHP error log found. I thought 
   it might have been a WordPress 3.7.1 issue so I tried it on my localhost version(
   updated it to wordpress after updating the live version) and my theme passed.
 * So I don’t understand why only the live version is giving me this specific error.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/php-error-log-and-theme-check/#post-4284134)
 * It’s on the live server because there’s a file that the server has created called‘
   error_log’.It’s a standard thing on most cPanel sites, so nothing to be worried
   about. The server creates that file as an error logging mechanism so that the
   sites owner (you) can see what errors have occured on the site.
 * What you need to do is find that file and delete it. I’d suggest using FTP to
   look through the themes folder because it could be anywhere in there.
 * In order to avoid this happening again, look at the contents of the file and 
   see what the error is and where it’s happening. That will let you clean up what
   ever is causing it.
 *  Thread Starter [thegh0sts](https://wordpress.org/support/users/thegh0sts/)
 * (@thegh0sts)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/php-error-log-and-theme-check/#post-4284135)
 * I copied the theme over from the live site to the local version and the error
   is now appearing on the local version.
 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/php-error-log-and-theme-check/#post-4284136)
 * As I said before, that’s because there’s a file called `error_log` in the theme
   folder somewhere. Find that file and delete it.
 *  Thread Starter [thegh0sts](https://wordpress.org/support/users/thegh0sts/)
 * (@thegh0sts)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/php-error-log-and-theme-check/#post-4284137)
 * OK, did that and the warning is gone….phew! Thanks for that.
 * When I read it I thought I had to add some PHP code into the theme or into wp-
   config.php to make it go away.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP Error Log and theme check’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [thegh0sts](https://wordpress.org/support/users/thegh0sts/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/php-error-log-and-theme-check/#post-4284137)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
