Jump to:

1156 Posts in 2568 Topics by 408 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » Undefined index: TreeMultiselectField_Readonly

Ask questions about upgrading SilverStripe to the latest version.

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

Page: 1
Go to End
Author Topic: 1778 Views
  • _Vince
    Avatar
    Community Member
    158 Posts

    Undefined index: TreeMultiselectField_Readonly Link to this post

    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

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Undefined index: TreeMultiselectField_Readonly Link to this post

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

  • _Vince
    Avatar
    Community Member
    158 Posts

    Re: Undefined index: TreeMultiselectField_Readonly Link to this post

    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?

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Undefined index: TreeMultiselectField_Readonly Link to this post

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

  • _Vince
    Avatar
    Community Member
    158 Posts

    Re: Undefined index: TreeMultiselectField_Readonly Link to this post

    Ok. Thanks then.

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