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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Behaviour is not defined and Add Member Failure


Go to End
Reply


6 Posts   2139 Views

Avatar
stanLee

Community Member, 5 Posts

21 July 2009 at 6:22pm

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?

Avatar
Willr

Forum Moderator, 5517 Posts

21 July 2009 at 6:41pm

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

Avatar
stanLee

Community Member, 5 Posts

21 July 2009 at 6:54pm

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 /**

Avatar
stanLee

Community Member, 5 Posts

21 July 2009 at 11:54pm

Any ideas or solutions?

Avatar
Willr

Forum Moderator, 5517 Posts

22 July 2009 at 8:39am

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

Avatar
stanLee

Community Member, 5 Posts

22 July 2009 at 5:59pm

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