Bug #46245
closed
BE/Log: Illegal string offset 'uid'
Added by Geddo no-lastname-given over 11 years ago.
Updated over 11 years ago.
Category:
Backend User Interface
Description
Since europes biggest hoster 1und1 is switching to php 5.4 next month, this should be fixed in the next version of typo3:
After loggin in the following error is shown in the logs:
[0]@-99 [5] ! [5_0]
Core: Error handler (BE): PHP Warning: Illegal string offset 'uid' in [path]class.t3lib_befunc.php line 3462
As the error occurs multiple times, the log is spamed with this message.
Sorry, my vote was by accident. I have no PHP 5.4 environment at hand to test the reported errors / warnings. But I would agree that if it is indeed a problem, we will want to fix it also in 4.5 LTS and the other supported TYPO3 versions.
But only by reading the warning makes it sound strange: This line of code (3462) reads:
$user_id = intval($GLOBALS['BE_USER']->user['uid']);
Why sould 'uid' be illegal at this point? I cannot really imagine it yet. :)
Are you sure this is a PHP 5.4 problem and not maybe some extension you have installed? Could you test the same environment with PHP 5.3?
- Status changed from New to Needs Feedback
I've got the same problem here on an 1und1-Website with PHP 5.4.12 and Typo3 4.5.23. I don't change anything on this server (except content) for the last weeks and the FE-Login doesn't work anymore since a few days.
- Status changed from Needs Feedback to Closed
Also available in: Atom
PDF