Title "Page not found" when in fact there were just no events on main page.

Home Forums Calendar Products Events Calendar PRO Title "Page not found" when in fact there were just no events on main page.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #969276
    Glenn
    Participant

    Playing with the new release and while there are no upcoming events the homepage returns “Page not found”

    So it will probably never happen in a live site but I think it should say something else as the page was in fact found – it’s just that there were no events to display.

    Thoughts?

    Glenn.

    #969335
    George
    Participant

    Hey Glenn,

    By default, our plugins return a 404 status for views that are loaded that don’t have any events on them. Depending on your theme and site, this might lead to return values for the page title and such that read like “Page not found”.

    You can disable this 404-status default by installing and activating a super-simple and small, free plugin here → http://m.tri.be/no404s

    That’s made by one of our core developers, Barry, and is very good code. Disabling the 404 status will not cause problems on your site, but should help prevent things like the “Page not found” text.

    Try that out and let us know if it helps!

    Thanks,
    George

    #969661
    Glenn
    Participant

    Hi George,

    That did solve it but I feel it is a little strange that I have to install another plugin to achieve it.

    Anyway – I guess I’m sorted.

    Glenn.

    #969778
    George
    Participant

    Hey Glenn,

    I can relate to how you feel about the 404 status being returned for these cases where no events are found.

    It’s tricky because in some ways, we want to treat events like search results. Like when you go to Google and search for something: if nothing is found, it’s not an outright 404 error – just some text that says “no results found”, ya know?

    But the way things work with events is different – the way WordPress works and our plugin works with it, actual pages or endpoints are served up when events are found, so when they’re not found, a 404 is not just the same as “no results found” for a web search – there is an actual page that’s supposed to load that isn’t found. So we do the “proper” thing and return a 404, since 200 status is success and 404 is failed to load.

    I hope the plugin continues to work well – if you know a bit of code, you can always move it to the “mu-plugins” folder on your site so that it stays active and doesn’t clog up your “Plugins” list page.

    I hope this information helps a bit. Cheers!

    — George

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Title "Page not found" when in fact there were just no events on main page.’ is closed to new replies.