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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Website Error after changing Security Permissions (on userdefinedform)


Go to End


2 Posts   1520 Views

Avatar
dezmond

Community Member, 17 Posts

2 July 2010 at 10:41pm

Edited: 03/07/2010 1:19am

Hi,

I've built my (first) website in Silverstripe and everything is working fine and I've now got to the final stage of setting up the Security of the site, i.e. Groups and permissions. However, when i now login in as a user who is in the group 'Content Author', when I try clicking on the 'Pages' tab I get the error message: Website Error There has been an error.

I put the ?isDev=1 on the page causing the problem and below is the message I'm getting.

Many thanks in advance and i'll be happy to provide more info if needed.

Cheers

715
716 default :
717 throw new Exception (
718 "Object->__call(): extra method $method is invalid on $this->class:" . var_export($config, true)
719 );
720 }
721 } else {
722 // Please do not change the exception code number below.
723
724 throw new Exception("Object->__call(): the method '$method' does not exist on '$this->class'", 2175);
725 }
726 }
727
728 // -----------------------------------------------------------------------------------------------------------------
729
730 /**
Trace

Object->__call(performReadonlyTransformation,Array)
FieldSet->performReadonlyTransformation()
Line 322 of EditableFormField.php
EditableFormField->getFieldValidationOptions()
Line 112 of ViewableData.php
ViewableData->__get(FieldValidationOptions)
Line 371 of ViewableData.php
ViewableData->obj(FieldValidationOptions,,,1,)
Line 411 of ViewableData.php
ViewableData->cachedCall(FieldValidationOptions,)
Line 424 of ViewableData.php
ViewableData->hasValue(FieldValidationOptions,,1)
Line 3502 of DataObject.php
DataObject->hasValue(FieldValidationOptions)
Line 265 of .cache.Applications.MAMP.htdocs.norbake.userforms.templates.EditableFormField.ss
include(/private/var/folders/59/592GnU-hFvOTlhBg3xBN5++++TQ/-Tmp-/silverstripe-cache-Applications-MAMP-htdocs-norbake/.cache.Applications.MAMP.htdocs.norbake.userforms.templates.EditableFormField.ss)
Line 392 of SSViewer.php
SSViewer->process(EditableTextField)
Line 342 of ViewableData.php
ViewableData->renderWith(EditableFormField)
Line 59 of EditableFormField.php
EditableFormField->EditSegment()
Line 369 of ViewableData.php
ViewableData->obj(EditSegment,,,1)
Line 445 of ViewableData.php
ViewableData->XML_val(EditSegment,,1)
Line 22 of .cache.Applications.MAMP.htdocs.norbake.userforms.templates.FieldEditor.ss
include(/private/var/folders/59/592GnU-hFvOTlhBg3xBN5++++TQ/-Tmp-/silverstripe-cache-Applications-MAMP-htdocs-norbake/.cache.Applications.MAMP.htdocs.norbake.userforms.templates.FieldEditor.ss)
Line 392 of SSViewer.php
SSViewer->process(ViewableData_Customised)
Line 342 of ViewableData.php
ViewableData->renderWith(FieldEditor)
Line 13 of FieldEditor.php
FieldEditor->FieldHolder()
Line 369 of ViewableData.php
ViewableData->obj(FieldHolder,,,1,)
Line 826 of ViewableData.php
ViewableData_Customised->obj(FieldHolder,,,1)
Line 445 of ViewableData.php
ViewableData->XML_val(FieldHolder,,1)
Line 73 of .cache.Applications.MAMP.htdocs.norbake.sapphire.templates.TabSetFieldHolder.ss
include(/private/var/folders/59/592GnU-hFvOTlhBg3xBN5++++TQ/-Tmp-/silverstripe-cache-Applications-MAMP-htdocs-norbake/.cache.Applications.MAMP.htdocs.norbake.sapphire.templates.TabSetFieldHolder.ss)
Line 392 of SSViewer.php
SSViewer->process(TabSet)
Line 342 of ViewableData.php
ViewableData->renderWith(TabSetFieldHolder)
Line 61 of TabSet.php
TabSet->FieldHolder()
Line 369 of ViewableData.php
ViewableData->obj(FieldHolder,,,1)
Line 445 of ViewableData.php
ViewableData->XML_val(FieldHolder,,1)
Line 58 of .cache.Applications.MAMP.htdocs.norbake.sapphire.templates.TabSetFieldHolder.ss
include(/private/var/folders/59/592GnU-hFvOTlhBg3xBN5++++TQ/-Tmp-/silverstripe-cache-Applications-MAMP-htdocs-norbake/.cache.Applications.MAMP.htdocs.norbake.sapphire.templates.TabSetFieldHolder.ss)
Line 392 of SSViewer.php
SSViewer->process(TabSet)
Line 342 of ViewableData.php
ViewableData->renderWith(TabSetFieldHolder)
Line 61 of TabSet.php
TabSet->FieldHolder()
Line 369 of ViewableData.php
ViewableData->obj(FieldHolder,,,1)
Line 445 of ViewableData.php
ViewableData->XML_val(FieldHolder,,1)
Line 77 of .cache.Applications.MAMP.htdocs.norbake.sapphire.templates.Includes.Form.ss
include(/private/var/folders/59/592GnU-hFvOTlhBg3xBN5++++TQ/-Tmp-/silverstripe-cache-Applications-MAMP-htdocs-norbake/.cache.Applications.MAMP.htdocs.norbake.sapphire.templates.Includes.Form.ss)
Line 392 of SSViewer.php
SSViewer->process(Form)
Line 342 of ViewableData.php
ViewableData->renderWith(Array)
Line 1081 of Form.php
Form->forTemplate()
Line 446 of ViewableData.php
ViewableData->XML_val(EditForm,,1)
Line 13 of .cache.Applications.MAMP.htdocs.norbake.cms.templates.Includes.CMSMain_right.ss
include(/private/var/folders/59/592GnU-hFvOTlhBg3xBN5++++TQ/-Tmp-/silverstripe-cache-Applications-MAMP-htdocs-norbake/.cache.Applications.MAMP.htdocs.norbake.cms.templates.Includes.CMSMain_right.ss)
Line 392 of SSViewer.php
SSViewer->process(CMSMain)
Line 342 of ViewableData.php
ViewableData->renderWith(Array)
Line 487 of LeftAndMain.php
LeftAndMain->Right()
Line 369 of ViewableData.php
ViewableData->obj(Right,,,1)
Line 445 of ViewableData.php
ViewableData->XML_val(Right,,1)
Line 71 of .cache.Applications.MAMP.htdocs.norbake.cms.templates.LeftAndMain.ss
include(/private/var/folders/59/592GnU-hFvOTlhBg3xBN5++++TQ/-Tmp-/silverstripe-cache-Applications-MAMP-htdocs-norbake/.cache.Applications.MAMP.htdocs.norbake.cms.templates.LeftAndMain.ss)
Line 392 of SSViewer.php
SSViewer->process(CMSMain)
Line 202 of Controller.php
Controller->handleAction(SS_HTTPRequest)
Line 134 of RequestHandler.php
RequestHandler->handleRequest(SS_HTTPRequest)
Line 147 of Controller.php
Controller->handleRequest(SS_HTTPRequest)
Line 283 of Director.php
Director::handleRequest(SS_HTTPRequest,Session)
Line 127 of Director.php
Director::direct(/admin/)
Line 127 of main.php

Avatar
dezmond

Community Member, 17 Posts

3 July 2010 at 1:26am

I'm able to give a bit more info on this error now - it looks like that if if I create a UserDefinedForm page then try changing the access permission on it, so for example, a 'Content Author' can't edit the form page, the CMS interface throws up an error if I click on the UDF page when logged in as a Content Author.

I've tried to work around this by hiding the page if the user doesn't have the prmissions to edit the page by following the instructions on this thread:

http://silverstripe.org/general-questions/show/251987?start=0

but it seems to be out of date and I can't get it work.

Has anyone else come across this issue or know of a solution?

Thank you