Bug #88984
closedException in BackendController 'Cannot use object of type stdClass as array' on $collapseState ( line 254 )
100%
Description
After updating to v9.5.9 and logging in to the backend i instantly received this exception.
The result of my debugging says that $this->getBackendUser()->uc['BackendComponents']['States']['typo3-module-menu'] is an object of type stdClass and so the ['collapsed'] call fails.
Files
Updated by Gerrit Code Review over 5 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61519
Updated by Gerrit Code Review over 5 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61519
Updated by Gerrit Code Review over 5 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61519
Updated by Gerrit Code Review about 5 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61519
Updated by Guido Schmechel about 5 years ago
- Has duplicate Bug #88997: Error: Cannot use object of type stdClass as array added
Updated by Riccardo De Contardi about 5 years ago
I add here the description of issue #88997 to keep track of it:
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());
Updated by Gerrit Code Review about 5 years ago
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61541
Updated by Andreas Fernandez about 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 895d737f47ff2b86a030ebec2a575cf718d01e82.
Updated by Christian Eßl about 5 years ago
- Related to Bug #89269: $GLOBALS['BE_USER']->uc sometimes wrongly written, gets a stdClass where an array would be expected added
Updated by Markus Klein about 5 years ago
- Related to Bug #89268: Cannot use object of type stdClass as array in BackendUserConfiguration.php added
Updated by Benni Mack almost 5 years ago
- Status changed from Resolved to Closed