[resolved] Homepage Not Showing (unless logged in as admin) (5 posts)

  1. James Kenny Photo
    Posted 1 year ago #

    Hi All,

    I've just noticed that the homepage on my wordpress site (http://www.jkenny.co.uk) has disappeared. For a second I thought my hosting had expired, but all of the other pages work fine!

    The strange thing is that the homepage does show up if I'm logged in as admin…

    Any ideas where I can start looking for the cause of this?

    I have deactivated all of my site's plugins and nothing changed…

  2. Moondrop
    Posted 1 year ago #

    Hi James, this looks like the result of a PHP error on your home page. The usual way to troubleshoot this is to try disabling all of your plugins and see if the problem persists. If the blank page is gone after, that means a plugin is causing this issue.

    If you made any recent changes to your site's code (commonly the functions.php), that too could be causing the issue.

    You can get a much more detailed report on what the error is by enabling the WordPress debug log:

  3. James Kenny Photo
    Posted 1 year ago #

    Thanks Moondrop.

    I turned on debugging but nothing is showing up (both when logged in and not logged in).

    I have made some changes to the functions.php file when I was trying to duplicate the site to move it, so will have a look at that.

    Is there anything in particular I should look out for?

  4. Moondrop
    Posted 1 year ago #

    Which debug method did you turn on? Try using define('WP_DEBUG_LOG', true); and it will store the error in a file called debug.log. To access the log file you will need to FTP into your site and view it in the /wp-content/ directory.

    Since you mentioned you made changes to the functions.php file, if you have any backup/earlier versions of that file try restoring that to see if the functions.php is the cause of the problem. The PHP error could be many things, like an unclosed <php> tag.

  5. James Kenny Photo
    Posted 1 year ago #

    Just an update- I have now sorted this. I did what moon drop suggested and in the debug.log there was an endless list of entries related to W3 SuperCache.

    I followed the removal instructions on the supercache page on wordpress' site and the problem has not been solved!

    Thanks for the help moon drop!

Topic Closed

This topic has been closed to new replies.

About this Topic