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.

General Questions /

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

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

Page type changes automatically to "Error Page"


Go to End


2 Posts   1734 Views

Avatar
AL

Community Member, 7 Posts

8 March 2011 at 2:39am

Hi all,

I've created a new page type "SidemenuPage" and under Templates I've created the SidemenuPage.ss.
My problem is that when I select from CMS, Page type - SidemenuPage and press Save & PUblish, the system automatically selects the "Error Page" page type.
I found that in my sitetree_live DB table, the ClassName field gets the NULL value. If I change this manually to my SidemenuPage class everything is ok...

P.S. I've refresh every time the DB with /dev/build/?flush=1

Any ideas?

Thanks

Avatar
davidm2010

Community Member, 107 Posts

10 March 2011 at 11:57pm

Not sure if this is the answer you are looking for, but.. If there is something wrong with the page type, it will default to another page type. In other words, the system will not let you create a page type that has an error.

So, troubleshoot your page type.

DM