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

admin area dissappeared after changing page type


Go to End


3 Posts   968 Views

Avatar
Newtothis

Community Member, 4 Posts

2 August 2014 at 6:09pm

I am at my wits end with silverstripe. I just changed to a different page type in the admin area which made the admin content area to disappear, i have to reload the admin area to go back in, i can access all the other pages but as soon as i click on that page again in the site tree, the admin content disappears. So i can't even get to the settings to change it back.
All I did was change the page type.
Can someone help please.

See attached.

Attached Files
Avatar
martimiz

Forum Moderator, 1391 Posts

3 August 2014 at 3:11am

Have you checked for errors in that pagetype?

If there are, just fix them, do a ?flush=all and you should be able to access that page in the CMS again.

Avatar
geekdenz

Community Member, 37 Posts

3 August 2014 at 11:30pm

You can see the error that is generated using DevTools in Chrome or Firebug. If you are using DevTools, you can filter XHR in the Network tab. You get to DevTools with F12. XHR is another word for AJAX requests. You can then see the response and whether you get an exception which you probably will. Then you can debug your custom page type because it will tell you which line causes the error and fix it. Alternatively/additionally, you can go into the DB with PHPMySQLAdmin or similar and change the page type back manually. It will be in the SiteTree, SiteTree_Live and SiteTree_versions tables.