Project

General

Profile

Actions

Bug #88997

closed

Error: Cannot use object of type stdClass as array

Added by Kurt Gusbeth over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2019-08-22
Due date:
% Done:

0%

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

Description

After Updating from TYPO3 9.5.8 to 9.5.9 I get this error:

(1/1) Error

Cannot use object of type stdClass as array
in /_TYPO3-Sourcen/typo3_src-9.5.9/typo3/sysext/backend/Classes/Controller/BackendController.php line 254

        // Prepare the scaffolding, at this point extension may still add javascript and css
        $view = $this->getFluidTemplateObject($this->templatePath . 'Backend/Main.html');

        $collapseState = $this->getBackendUser()->uc['BackendComponents']['States']['typo3-module-menu']['collapsed'] ?? false;
        $view->assign('moduleMenuCollapsed', $collapseState === true || $collapseState === 'true');
        $view->assign('moduleMenu', $this->generateModuleMenu());
        $view->assign('topbar', $this->renderTopbar());

"Flush TYPO3 and PHP Cache" and "rm -r typo3temp" didnĀ“t helped.
I see this error in 2/4 projects.
What could be the problem?


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #89105: Update 9.5.8 to 9.5.9 - Cannot use object of type stdClass as array (Backend)Closed2019-09-07

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

Actions
Actions #1

Updated by Guido Schmechel over 4 years ago

  • Is duplicate of Bug #88984: Exception in BackendController 'Cannot use object of type stdClass as array' on $collapseState ( line 254 ) added
Actions #2

Updated by Guido Schmechel over 4 years ago

Please test the patch from https://review.typo3.org/c/Packages/TYPO3.CMS/+/61519 and add some feedback :-)

Actions #3

Updated by Riccardo De Contardi over 4 years ago

  • Status changed from New to Closed

I close this issue as a duplicate of #88984 that already has a pacth attached; please continue the discussion there.

I've added there the description of this issue to keep track of it.

Thank you.

Actions #4

Updated by Lars Gremme over 4 years ago

  • Related to Bug #89105: Update 9.5.8 to 9.5.9 - Cannot use object of type stdClass as array (Backend) added
Actions

Also available in: Atom PDF