Bug #88984
closed
Exception in BackendController 'Cannot use object of type stdClass as array' on $collapseState ( line 254 )
Added by Philipp Parzer over 5 years ago.
Updated about 5 years ago.
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
- Status changed from New to Under Review
- Has duplicate Bug #88997: Error: Cannot use object of type stdClass as array added
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());
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Related to Bug #89269: $GLOBALS['BE_USER']->uc sometimes wrongly written, gets a stdClass where an array would be expected added
- Related to Bug #89268: Cannot use object of type stdClass as array in BackendUserConfiguration.php added
- Status changed from Resolved to Closed
Also available in: Atom
PDF