#89269$GLOBALS['BE_USER']->uc sometimes wrongly written, gets a stdClass where an array would be expected
Description
See issues:
https://forge.typo3.org/issues/88984
https://forge.typo3.org/issues/89268
It appears that since one of the latest patches (probalby 9.5.9), the uc is sometimes wrongly written and gets an stdClass where an array would be expected. This later leads to fatal errors because php expects an array, but gets an stdClass.
Both issues seem to be related to the pagetree / States and for now just fix the symptoms.
In #88984 it is the following setting that suddenly is an stdClass:
$this->getBackendUser()->uc[‘BackendComponents’][‘States’][‘typo3-module-menu’]
In #89268 it is the key: (from javascript)
BackendComponents.States.Pagetree.stateHash.0_-1
Reviews 4
Related issues 7
- Bug #86398Interface state can't be saved
- Bug #88984Exception in BackendController 'Cannot use object of type stdClass as array' on $collapseState ( line 254 )
- Bug #89268Cannot use object of type stdClass as array in BackendUserConfiguration.php
- Bug #89367Revert introduction of new upgrade wizard
- Bug #89638BackendUserConfigurationUpdate Upgrade Wizard fails on empty UC fields
- Bug #91407Pagetree not shown due to error in TYPO3\CMS\Backend\Controller\Page\TreeController
- Task #91417Add missing documentation for BackendUserConfigurationUpdate