Bug #60126

Illegal string offset 'uid' in TypoScriptFrontendController

Added by Marcin Sągol over 6 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-07-06
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.5
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:

Description

Hi,

i just spotted 2 warnings in Log module. Both with exactly the same time:

Core: Error handler (FE): PHP Warning: Illegal string offset 'uid' in /typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php line 1286

Core: Error handler (FE): PHP Warning: Illegal string offset 'uid' in /typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php line 1281

I'm not 100% sure but this might be related to login/sessions as i often left backend opened, than the session expires and i have overlay with login form visible.

TYPO3 6.2.3
PHP 5.5
Chromium
Kubuntu

#1

Updated by Philipp Gampe over 6 years ago

  • Category deleted (Backend API)
  • Status changed from New to Accepted
  • Complexity set to no-brainer

This relates to initializeBackendUser() which does not check the the backend user is actually created correctly but tries to read the user row $beuser->user['uid'] as soon as a backend user cookie is present.

A simple isset should do the trick.

#2

Updated by Gerrit Code Review over 6 years ago

  • Status changed from Accepted 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/31472

#3

Updated by Markus Klein over 6 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
#4

Updated by Benni Mack over 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF