Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Subsites and error pages


Go to End


2 Posts   774 Views

Avatar
Kweh

Community Member, 3 Posts

17 February 2015 at 4:39am

Hello,

I'm back with more subsites fun!

So, I have a number of sites, and everything works nicely. Except error pages.

Basically, the main site has templates for ErrorPage, and the subsites have them for SubsiteErrorPage. Except, the subsites don't know about their own error page templates, they look exclusively for ErrorPage, which doesn't exist within that module's scope. The end result is a white page with an error message - its not the end of the world, but its far from pretty.

Does anyone have experience with overriding the default/main site error pages?

Avatar
JonoM

Community Member, 130 Posts

18 February 2015 at 6:04am

Hi Kweh, it looks like there is an issue raised about this on Github - if you add your voice to the discussion there it may be fixed up sooner. Or even better, submit a pull request if you can work out a fix :) https://github.com/silverstripe/silverstripe-subsites/issues/98