Jump to:

23487 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Can't add administrators

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: 716 Views
  • Kittybeard
    Avatar
    Community Member
    6 Posts

    Can't add administrators Link to this post

    I can add people just fine to the security group, but when I try to add them as administrators or anything else I just get an error.
    Wish I could be more specific about the error but it is just blank, and it happens in all browsers I have tried.

    Everything else has worked just fine so it sucks to have an issue like this so close to finishing.

    What is the sql command to add administrators? So I can add them in manually until the cms is fixed.

  • Kittybeard
    Avatar
    Community Member
    6 Posts

    Re: Can't add administrators Link to this post

    Ok hmm, got part of it to work. After just bashing the button to add someone to the "Content Authors" group, one slipped in and now it seems like that group works fine. But not the administrator group... And it still seems a bit sketchy.

    Not an huge issue right now I guess since I can just edit the Group_Members sql table to move people to the administrator group. But this way is a bit annoying for many reasons.

  • martimiz
    Avatar
    Forum Moderator
    1086 Posts

    Re: Can't add administrators Link to this post

    Hi Kittybeard,

    Have you tried temporarily setting the CMS to dev mode? That might get you a more elaborate errormessage: in your _config.php:

    Director::set_environment_type("dev");

    Or use the Firebug extension in Firefox to see if there is an error there?

  • Kittybeard
    Avatar
    Community Member
    6 Posts

    Re: Can't add administrators Link to this post

    The debugging environment didn't help, but after some experimentation in firebug I got something:

    POST http://**.com/ground/admin/security/Edit...ers&action_callfieldmethod&methodName=addtogroup 406 Not Acceptable 378ms

    "NetworkError: 406 Not Acceptable - http://**.com/ground/admin/security/EditForm?fieldName=Members&action_callfieldmethod&methodName=addtogroup"

    No idea what would cause this, specially since everything else works without an issue.

  • martimiz
    Avatar
    Forum Moderator
    1086 Posts

    Re: Can't add administrators Link to this post

    I've never seen this myself, but some googling learned that this might have something to do with mod_security (an optional Apache firewall-ish module) being enabled on the webserver, finding something amiss with the page, possibly with the posted data. Other CMSses seem to run into this problem as well.

    If that's the case, the general advice is to ask the host to do something about it (loosen the rules), or disable it. I found this bit of code, to put into your .htaccess:

    # Turn off mod_security filtering.
    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </IfModule>

    [EDIT] I don't really know if this would be the right way to go, security-wise, but maybe it at least hints in the right direction

  • Kittybeard
    Avatar
    Community Member
    6 Posts

    Re: Can't add administrators Link to this post

    Thank you so much for all the work finding what was wrong . Will have to see if I can create an .htaccess or if I will have to ask them. Although I don't really want to lessen the security... oh well, will have to see what will be done.

  • mrguits
    Avatar
    Community Member
    1 Post

    Re: Can't add administrators Link to this post

    Kittybeard .. did you ever solve this? The solution martimiz suggested did not work at all for me.

    716 Views
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.