Jump to:

23453 Posts in 18902 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » Behaviour is not defined and Add Member Failure

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: 1881 Views
  • stanLee
    Avatar
    Community Member
    5 Posts

    Behaviour is not defined and Add Member Failure Link to this post

    I'm using, SilverStripe CMS - 2.3.2 on apache.
    I can't add users to a security group. Also in firebug i see the same error says:

    Behaviour is not defined
    security()security (line 504)
    [Break on this error] <script type="text/javascript">Behaviour.addLoader(hideLoading)</script>\n

    When i click add user after filling form fields, i take this error message (server can't found??)

    Website Error
    There has been an error

    The website server has not been able to respond to your request.

    I'm confused how can silverstripe developers can publish this version without user modify.
    Is there anyone having the same problems?

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Behaviour is not defined and Add Member Failure Link to this post

    Enable devmode and see what the error you get is. http://doc.silverstripe.com/doku.php?id=debugging#dev_mode

  • stanLee
    Avatar
    Community Member
    5 Posts

    Re: Behaviour is not defined and Add Member Failure Link to this post

    Hi willr,

    Thanks for the quick reply. Here is the error what i get:

    User Error] Uncaught Exception: Object->__call(): the method 'addtogroup' does not exist on 'Form'
    POST /admin/security/EditForm

    case isset($config['function']) :
    507                return $config['function']($this, $arguments);
    508             
    509             default :
    510                throw new Exception (
    511                   "Object->__call(): extra method $method is invalid on $this->class:" . var_export($config, true)
    512                );
    513          }
    514       } else {
    515          throw new Exception("Object->__call(): the method '$method' does not exist on '$this->class'");
    516       }
    517    }
    518    
    519    // -----------------------------------------------------------------------------------------------------------------
    520    
    521    /**

  • stanLee
    Avatar
    Community Member
    5 Posts

    Re: Behaviour is not defined and Add Member Failure Link to this post

    Any ideas or solutions?

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Behaviour is not defined and Add Member Failure Link to this post

    Ah no sorry never seen this. Perhaps double check you uploaded all the files successfully this revisit the page with a ?flush=1 attached to the url

  • stanLee
    Avatar
    Community Member
    5 Posts

    Re: Behaviour is not defined and Add Member Failure Link to this post

    Hi willr,

    Thanks for the reply but it don't think this happens because of a cache mistake... I replaced all files, also installed a new ss. But no difference.

    But there's one think: when i add ?flush=1 parameter at the end of the url i have a new error:

    Fatal error: Class name must be a valid object or a string in ...\www\cms\code\SecurityAdmin.php on line 174

    1881 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.