Issue Bug Closed

#89269$GLOBALS['BE_USER']->uc sometimes wrongly written, gets a stdClass where an array would be expected

Christian Eßl 09/25/19, 15:13 updated 12/23/19, 22:42

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