Project

General

Profile

Actions

Bug #89269

closed

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

Added by Christian Eßl over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Start date:
2019-09-25
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

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


Related issues 7 (0 open7 closed)

Related to TYPO3 Core - Bug #88984: Exception in BackendController 'Cannot use object of type stdClass as array' on $collapseState ( line 254 )Closed2019-08-20

Actions
Related to TYPO3 Core - Bug #89268: Cannot use object of type stdClass as array in BackendUserConfiguration.phpClosedChristian Eßl2019-09-25

Actions
Related to TYPO3 Core - Bug #86398: Interface state can't be savedClosed2018-09-27

Actions
Related to TYPO3 Core - Bug #89367: Revert introduction of new upgrade wizardClosedDaniel Goerz2019-10-08

Actions
Related to TYPO3 Core - Bug #89638: BackendUserConfigurationUpdate Upgrade Wizard fails on empty UC fieldsClosedDaniel Goerz2019-11-11

Actions
Related to TYPO3 Core - Bug #91407: Pagetree not shown due to error in TYPO3\CMS\Backend\Controller\Page\TreeControllerClosed2020-05-14

Actions
Related to TYPO3 Core - Task #91417: Add missing documentation for BackendUserConfigurationUpdateClosed2020-05-16

Actions
Actions

Also available in: Atom PDF