• Resolved InSeaSamui

    (@inseasamui)


    Hi,

    I have noticed that any invalid URL returns a blank content page (still using my theme) and not a 404 page.

    E.g. http://www.inseaspeedboat.com/wbfwqbfleb

    My theme, Delicate, has a 404.php.

    Other forum posts indicate it could be a problem with permalinks. Changing from Custom to Default has little effect…it defaults to the index page.

    I did try editing the .htaccess file adding the following line:

    ErrorDocument 404 /index.php?error=404

    which again has no effect. Does any one have a solution for this issue and know the root cause?

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Blank page is a php error, most of the time.

    That isn’t blank, though. I would start with turning off plugins.

    Switch your theme to TwentyTen and see if you get the same behavior. If not, it’s your theme.

    Thread Starter InSeaSamui

    (@inseasamui)

    Yes switching to TwentyTen does indicate it is an issue with the theme: Delicate. I will post the fix once i’ve figured it out. Thanks for your help!

    Thread Starter InSeaSamui

    (@inseasamui)

    The issue was actually in Delicate theme’s 404.php in the statements:

    <?php if (have_posts()) : ?>
     <?php while (have_posts()) : the_post(); ?>

    Once these statements are removed, the error page worked fine. Subsequently I have started using AskApache Google 404 plugin which is very nice for directing the user to relevant content. Im not sure whether it is SEO friendly though.

    Thanks for your help.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘No 404 pages displayed…ever!’ is closed to new replies.