Jump to:

3447 Posts in 1031 Topics by 872 members

Template Questions

SilverStripe Forums » Template Questions » Themeless Admin Error

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

Page: 1
Go to End
Author Topic: 736 Views
  • Mr V Dot
    Community Member
    8 Posts

    Themeless Admin Error Link to this post

    Ok, so I realize this is a strange error, but it's plagued me on several different sites now, and I haven't found anyone else with this problem on the forums. If I am using a custom theme and have logged in as a user without CMS permissions (ie. regular site user), if I try to access the CMS, all I get is a white page with the usual error "I'm sorry, but you can't access that part of the CMS. If you want to log in as someone else, do so below", but with no form or any other rendering of the theme, that error is literally the only content returned (ie. not even any html if I view source). I've read through the various themes and compared them with blackcandy (which works just fine), and can't see any difference. Any suggestions on where I should look? Thanks, Alex

    Edit. And yes, I do have "$Form" on my Layout/Page.ss files

    Attached Files
  • swaiba
    Forum Moderator
    1796 Posts

    Re: Themeless Admin Error Link to this post

    I've always thourght that it was a tad unfriendly when you cannot access a part of the CMS. But to be fair it only happened when I'd truncate the members table or something else unexpected so I got used to going to security/logout manually at that point.

    Anway, the message is set in function init() of cms\code\LeftAndMain.php and follwoing it's return type it look like it should be redirecting to the login form, with redirect back once login supplied.

    Looks like a bug

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.