Jump to:

23493 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » 404 error page does not regenerate

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1824 Views
  • mozillalives
    Avatar
    Community Member
    2 Posts

    404 error page does not regenerate Link to this post

    My sites 404 page is not regenerating when I delete it. I'm new to silverstripe, so I could be wrong expecting this behavior, but I was under the impression that the 404 error page (along with the rest of the sites pages) was cached. I found the file (assets/error-404.html) and removed it. But now all I see is the silverstripe error page. If I do this on my dev, I see my 404 page, but it does not get recreated. What gives?

    btw - the search on this forum sucks. just my two cents

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: 404 error page does not regenerate Link to this post

    Have you tried republishing the 404 page in the CMS? (this is what regenerates it). If that doesn't work you might want to check that the assets folder is writable.

  • mozillalives
    Avatar
    Community Member
    2 Posts

    Re: 404 error page does not regenerate Link to this post

    Ah, that's what did it, thanks. I assumed it was the request for the page that caused it to generate.

  • kcd
    Avatar
    Community Member
    54 Posts

    Re: 404 error page does not regenerate Link to this post

    I recently moved my website and was wondering why my 404's didn't work... obviously I needed to republish my 'page not found' page but maybe this should be automated. I found it particularly confusing as I actually got the right 404 but the links to the css were wrong so it was not formatted.

    Would it be nice if dev/build generated missing 404 pages?

    Just a thought

  • Jare
    Avatar
    Community Member
    5 Posts

    Re: 404 error page does not regenerate Link to this post

    I'm running SS 3.1 and also can't get 404 page to regenerate. Permissions are ok and publishing doesn't help. This is really strange: the 500 error page regenerates correctly when republishing, but the 400 error page gets empty. The file contains nothing after republishing.

    Also I don't think it's a good habit to require republishing these pages. Shouldn't ?flush=all do the job? Thanks .

  • martbarr
    Avatar
    Community Member
    46 Posts

    Re: 404 error page does not regenerate Link to this post

    Also check your ErrorPage table (and _live) ... I had multiple 404s in there so deleted all and a publish fixed it for me

    1824 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.