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.

Archive /

Our old forums are still available as a read-only archive.

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

forum registration errors


Reply


4 Posts   1726 Views

Avatar
tim303

Community Member, 3 Posts

27 November 2008 at 8:08pm

I'm building a CMS that delivers most of its contents only to logged in users, including the forums.

Using the stable versions of the forum, I was able to use a login href to the ForumMemberProfile/register page. That way all my users basically became forum members with permissions set appropriately.

Unfortunately the old forum was buggy elsewhere, so I tried upgrading to the new daily build of the forum. That fixed some display issues (e.g. CurrController::deprecated) but now the forum registration at ForumMemberProfile/register is broken. I checked the template that came in the module, but the Header.ss still references this page as how to register forum members.

Is there another more SS-sanctioned way to accomplish registering all users as forum users?

Here are the error details:

FATAL ERROR: Object::__call() Method 'setDisabled' not found in class 'CheckboxField'
At line 199 in .... public_html/sapphire/core/Object.php

user_error(Object::__call() Method 'setDisabled' not found in class 'CheckboxField',256)
line 199 of Object.php

Object->__call(setDisabled,Array)

CheckboxField->setDisabled(1)
line 8 of CheckableOption.php

CheckableOption->__construct(UnnecessaryNicknamePublic,TextField,1,1)
line 130 of ForumRole.php

ForumRole->getForumFields(1,)

call_user_func_array(Array,Array)
line 177 of Object.php

Object->__call(getForumFields,Array)

Member->getForumFields(1,)
line 118 of ForumMemberProfile.php

ForumMemberProfile->RegistrationForm()
line 100 of ForumMemberProfile.php

ForumMemberProfile->register(Array)
line 261 of Controller.php

Controller->run(Array)
line 104 of Director.php

Director::direct(ForumMemberProfile/register)
line 158 of main.php
Context
Debug (Debug::showError() in line 180 of Debug.php)

* this = CheckboxField (UnnecessaryNicknamePublic: : ) = 1
* methodName =

setDisabled

* args =
o 0 =

1

* lowerMethodName =

setdisabled

Avatar
itlinux

Community Member, 40 Posts

28 November 2008 at 8:27am

I get this one with the latest forum

Error

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

Avatar
Willr

Forum Moderator, 5513 Posts

28 November 2008 at 10:08am

itlinux - put the site into dev mode to get the proper error. You can do this by adding Director::set_environment_type("dev"); to your _config file in the mysite folder

Avatar
itlinux

Community Member, 40 Posts

28 November 2008 at 10:29am

FATAL ERROR: Object::__call() Method 'setDisabled' not found in class 'CheckboxField'
At line 199 in /home/httpd/vhosts/controlmanager5.com/silverstripe-v2.2.3/sapphire/core/Object.php

user_error(Object::__call() Method 'setDisabled' not found in class 'CheckboxField',256)
line 199 of Object.php

Object->__call(setDisabled,Array)

CheckboxField->setDisabled(1)
line 8 of CheckableOption.php

CheckableOption->__construct(UnnecessaryNicknamePublic,TextField,1,1)
line 130 of ForumRole.php

ForumRole->getForumFields(1,)

call_user_func_array(Array,Array)
line 177 of Object.php

Object->__call(getForumFields,Array)

Member->getForumFields(1,)
line 118 of ForumMemberProfile.php

ForumMemberProfile->RegistrationForm()
line 100 of ForumMemberProfile.php

ForumMemberProfile->register(Array)
line 261 of Controller.php

Controller->run(Array)
line 104 of Director.php

Director::direct(ForumMemberProfile/register)
line 158 of main.php
Context
Debug (Debug::showError() in line 180 of Debug.php)

* this = CheckboxField (UnnecessaryNicknamePublic: : ) = 1
* methodName =

setDisabled

* args =
o 0 =

1

* lowerMethodName =

setdisabled