• Dave Wright

    (@davetwizzlebird)


    Hi, I’ve had an odd error recently where my site appears offline briefly every few days. The home page displays blank and spits out the following html – https://pastebin.com/bRDj9Eky
    I’m able to log in to the site and each time I clear my cache (w3tc) and the problem goes away for a few days. I suspect either w3tc or ithemes security as these are the most aggressive plugins I run but the crash page contains no error info so not sure. Any advice gratefully received. Thanks

Viewing 1 replies (of 1 total)
  • Hi Dave,

    You’re right that there really isn’t much to go on in the error there. What I’d suggest will assume you have SSH access to the server:

    1. Enable debug mode
    2. Let the site run until the erorr appears, get the exact time it occurs if you can
    3. Connect to the server with SSH, preferably immediately after the error
    4. Use commands to search the error.log file, wherever your host keeps it. Usually it’s in /var/www/path-to-site-root/logs/

    The commands you’ll be using for this may require a bit of previous linux experience, but it gets a lot simpler if you’re able to reproduce it yourself or SSH right after it happens. To get started you could use this:

    cat error.log | grep “Wed Jul 27”

    You can continue to filter by piping more grep commands on, like so:

    cat error.log | grep “Wed Jul 27” | grep GET | grep 123

    If you have any followup questions, just let me know!

Viewing 1 replies (of 1 total)
  • The topic ‘Sporadic wordpress error, crashes site until cache cleared’ is closed to new replies.