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 #1

Updated by Gerrit Code Review almost 10 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/30588

Actions #2

Updated by Gerrit Code Review almost 10 years ago

Patch set 1 for branch TYPO3_6-1 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/30595

Actions #3

Updated by Gerrit Code Review almost 10 years ago

Patch set 2 for branch TYPO3_6-1 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/30595

Actions #4

Updated by Robert Vock almost 10 years ago

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

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF