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.

Customising the CMS /

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

Dev/Build hangs on Page


Go to End


3 Posts   1725 Views

Avatar
selfsimilar

Community Member, 3 Posts

10 June 2010 at 2:04am

I created a new page type for a form I'm working on. I inherited from Page for the new page class, but accidentally inherited from ContentController for the controller class, instead of PageController as I should have. Now when I update the new controller class to inherit from the proper controller, dev/build hangs at "Page". How can I fix this properly? Do I need to go in and hand-edit the SQL table?

Thanks,
Colin

Avatar
mark_s

Community Member, 78 Posts

10 June 2010 at 2:36pm

Hi.

No, don't edit the database. The controller class should have no bearing on the database, only on how the page is displayed.

Have you tried doing dev/build?flush=all ?

Mark

Avatar
selfsimilar

Community Member, 3 Posts

11 June 2010 at 8:32am

My mistake - I was missing an underscore in the parent class I was trying to inherit from.

Thanks for the reply.