WordPress.org

Ready to get started?Download WordPress

Forums

PHP Error Log (10 posts)

  1. Dave Kaufman
    Member
    Posted 2 years ago #

    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]

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    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.

  3. Dave Kaufman
    Member
    Posted 2 years ago #

    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.

  4. linnywren
    Member
    Posted 2 years ago #

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

  5. Dave Kaufman
    Member
    Posted 2 years ago #

    @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.

  6. esmi
    Forum Moderator
    Posted 2 years ago #

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

  7. Dave Kaufman
    Member
    Posted 2 years ago #

    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.

  8. Big Bagel
    Member
    Posted 2 years ago #

    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)

  9. steeephen
    Member
    Posted 2 years ago #

    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.

  10. Dave Kaufman
    Member
    Posted 2 years ago #

    @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 ago..no issues to report with that action.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags