Project

General

Profile

Actions

Bug #59364

closed

Illegal string offset 'uid' in TypoScriptFrontendController.php line 1281

Added by Robert Vock almost 10 years ago. Updated over 5 years ago.

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

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

When the backend user session has timed out, you can get this PHP Warning in the frontend.
The be_sessions entry is deleted, so reloading solves the problem.

The Bug exists because logoff changes AbstractUserAuthentication->user to an empty string instead of setting it to null.
Solution is simple: Just set user = null instead of user = ''

PHP 5.4 changed accessing strings with invalid offsets to a warning:
http://docs.php.net/manual/da/language.types.array.php#example-81


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #49328: PHP Warning: Illegal string offset 'uid' in BackendUserAuthentication.php on line 2064Closed2013-06-21

Actions
Related to TYPO3 Core - Bug #49327: PHP Warning on logout: Illegal string offset 'uid' in AjaxLoginHandler.php on line 90Closed2013-06-21

Actions
Actions

Also available in: Atom PDF