• 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)
  • 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

    (@thegh0sts)

    I copied the theme over from the live site to the local version and the error is now appearing on the local version.

    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

    (@thegh0sts)

    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.