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.

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

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

Undefined index: TreeMultiselectField_Readonly


Go to End


5 Posts   2745 Views

Avatar
_Vince

Community Member, 165 Posts

21 June 2009 at 10:27pm

I am getting this error intermittently since upgrading to 2.3.2 on Windows XP.

The first time was when trying to log in to the CMS (after working fine on 2.3.2 all afternoon) the next time was after deleting a page from the CMS sitetree.

Any suggestions?

The full message reads:

[Notice] Undefined index: TreeMultiselectField_Readonly

Line 157 in C:\xampplite\htdocs\FT5\sapphire\core\ClassInfo.php

.
.
.
ClassInfo::ancestry(TreeMultiselectField_Readonly)
Line 451 of Object.php
Object->__construct()
Line 74 of RequestHandler.php
RequestHandler->__construct()
Line 81 of FormField.php
FormField->__construct(ViewerGroups,Viewer Groups)
Line 23 of TreeDropdownField.php
TreeDropdownField->__construct(ViewerGroups,Viewer Groups,Group,ID,Title)
Line 10 of TreeMultiselectField.php
TreeMultiselectField->__construct(ViewerGroups,Viewer Groups,Group,ID,Title)
Line 88 of TreeMultiselectField.php
TreeMultiselectField->performReadonlyTransformation(ReadonlyTransformation)
Line 36 of FormTransformation.php
FormTransformation->transform(TreeMultiselectField)
Line 476 of FormField.php
FormField->transform(ReadonlyTransformation)
Line 219 of CompositeField.php
CompositeField->performReadonlyTransformation(ReadonlyTransformation)
Line 36 of FormTransformation.php
FormTransformation->transform(Tab)
Line 476 of FormField.php
FormField->transform(ReadonlyTransformation)
Line 219 of CompositeField.php
CompositeField->performReadonlyTransformation(ReadonlyTransformation)
Line 36 of FormTransformation.php
FormTransformation->transform(TabSet)
Line 476 of FormField.php
FormField->transform(ReadonlyTransformation)
Line 448 of FieldSet.php
FieldSet->transform(ReadonlyTransformation)
Line 471 of FieldSet.php
FieldSet->makeReadonly()
Line 431 of CMSMain.php
CMSMain->getEditForm(16)
Line 925 of LeftAndMain.php
LeftAndMain->EditForm()

call_user_func_array(Array,Array)
Line 550 of ViewableData.php
ViewableData->cachedCall(EditForm,,)
Line 591 of ViewableData.php
ViewableData->hasValue(EditForm)
Line 23 of .cacheC..xampplite.htdocs.FT5.cms.templates.Includes.CMSMain_right.ss
include(C:\Documents and Settings\Dad Dog\Impostazioni locali\Temp\silverstripe-cacheC--xampplite-htdocs-FT5\.cacheC..xampplite.htdocs.FT5.cms.templates.Includes.CMSMain_right.ss)
Line 354 of SSViewer.php
SSViewer->process(CMSMain)
Line 773 of ViewableData.php
ViewableData->renderWith(Array)
Line 484 of LeftAndMain.php
LeftAndMain->Right()

call_user_func_array(Array,Array)
Line 408 of ViewableData.php
ViewableData->XML_val(Right,,1)
Line 71 of .cacheC..xampplite.htdocs.FT5.cms.templates.LeftAndMain.ss
include(C:\Documents and Settings\Dad Dog\Impostazioni locali\Temp\silverstripe-cacheC--xampplite-htdocs-FT5\.cacheC..xampplite.htdocs.FT5.cms.templates.LeftAndMain.ss)
Line 354 of SSViewer.php
SSViewer->process(CMSMain)
Line 175 of Controller.php
Controller->handleAction(HTTPRequest)
Line 129 of RequestHandler.php
RequestHandler->handleRequest(HTTPRequest)
Line 122 of Controller.php
Controller->handleRequest(HTTPRequest)
Line 277 of Director.php
Director::handleRequest(HTTPRequest,Session)
Line 121 of Director.php
Director::direct(/admin)
Line 118 of main.php

Avatar
Sam

Administrator, 690 Posts

21 June 2009 at 11:26pm

Visit any page on the site with ?flush=1 at the end of the URL and it will fix the issue.

Avatar
_Vince

Community Member, 165 Posts

22 June 2009 at 8:58am

Edited: 22/06/2009 8:58am

Sure, and reopening the browser works too.

But I'm more worried about actual end users getting a pageload of error messages and freaking out? Any hints or suggestions on how I can get rid of the error altogether?

Avatar
Sam

Administrator, 690 Posts

22 June 2009 at 1:49pm

Putting ?flush=1 should fix it permanently. It forces SilverStripe to recreate its index of the classes available.

Avatar
_Vince

Community Member, 165 Posts

22 June 2009 at 3:28pm

Ok. Thanks then. :)