Jump to:

23453 Posts in 18902 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » Page type not recognized

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: 791 Views
  • Bert
    Community Member
    19 Posts

    Page type not recognized Link to this post

    I have the following structure:

    - Managed Services (Page type: TextPageHolder)
    ---- Dedicated servers (Page type: TextPage)
    ---- Hosted e-mail (Page type: TextPage)
    ---- Hosted SharePoint (Page type: TextPage)

    I accidentally changed the class names of TextPage.php to class ActionPage and class ActionPage_Controller, and performed a /dev/build. I changed them back to class TextPage and class TextPage_Controller, but now these pages have been modified to the page type Page, and /dev/build is not picking up the page type TextPage again.

    I tried adding the page type TextPage manually to the SiteTree table (enum field ClassName), but when I perform a /dev/build the page type TextPage is removed again, and the pages of the type TextPage are changed back to the page type Page.

    What can I do to add the page type TextPage again?

  • mark_s
    Community Member
    78 Posts

    Re: Page type not recognized Link to this post


    Have you tried deleting the contents of the temp directory? This will remove all manifest artifacts, which may be confusing the issue. flush=all removes most but not all of this. Then do a dev/build again. Hopefully you can see the TextPage table in the database again. Then change the page types back. Watch that any data in the extension tables for the TextPage/ActionPage class is copied back appropriately if necessary.


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.