Bug #59364
closedIllegal string offset 'uid' in TypoScriptFrontendController.php line 1281
100%
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
Updated by Gerrit Code Review over 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
Updated by Gerrit Code Review over 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
Updated by Gerrit Code Review over 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
Updated by Robert Vock over 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset b2114781802c7cb39e9fbd3aa626e8b8bead4b7b.