Support » Fixing WordPress » PHP Error Log

  • The site has been writing errors to the error log at such a pace the error log file is 476MB large. While deleting the log file will “reset” the issue, what’s the best method to find the errors and stop them permanently.

    Here are the last 10 entries:

    Here are the latest 10 records from the file:

    [Log moderated as per the Forum Rules. Please use the pastebin]

Viewing 9 replies - 1 through 9 (of 9 total)
  • esmi


    Forum Moderator

    Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the Twenty Eleven theme to rule out any theme-specific problems.

    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    Thank you for the advice…the log file is so large I’m looking for an app to review the recent entries if any.

    I did update the blog to the latest version of WP as well as the plugins. I will try your advice after I find a reader tool.

    I am receiving the “Error 404 – Page not found” message. Could this be because of a plug in I have installed? Iv just deactivated it, but still get the error message.

    Im such a WordPress newbie and find it all mind blowing! help plz 🙂

    @linnywren – Not what this thread is about at all.

    404 means a page is not accessible from a link on your site or to your site. Look carefully at the address that is sending you there, if it isn’t the right address the fix it. If you post (in a new thread) the exact details with links you are likely to get better help too.



    Forum Moderator

    @linnywren: It is considered impolite to interrupt another poster’s thread. Please post a new topic.

    For those working on this issue…when I found the error log that size the first thing after trying to view it was to delete it. Error logs are useful in diagnosing an issue but not if they are unwieldy.

    I plan on letting a few errors accumulate and then trying esmi’s advice. Just felt this deletion step was worth documenting for future readers.

    I would imagine opening that large a text file in anything to be difficult. For future reference, If you happen to have shell access, using the tail commend might be helpful in reading the last few entries. For example:

    tail -5 error.log

    would show the last 5 lines.

    Once the file starts filling up again, and you can open it up and check out what lines are throwing errors/warnings. (I’m assuming this a php error log)



    I’m downloading a local copy of my WordPress website and I’ve just noticed my error_log file is 2.1 Gigabytes.

    (Once it’s finished downloading) is it ok to delete this file from my live site or do I need to replace it with a blank error_log file.

    Dave Kaufman


    @steeephen – Yep the error log is just a reporting of errors for you or some other human to read if needed. It doesn’t impact WP in anyway and if the file doesn’t exist WP creates it.

    After deleting mine a few months issues to report with that action.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘PHP Error Log’ is closed to new replies.