Bug #99097
closedUndefined array key in 11.5.19
0%
Description
Hi,
When I upgrade to 11.5.19, PHP8, Debug-mode, I get several errors:
PHP Warning: Undefined array key "workspace_id" in /var/www/typo3_src-11.5.19/typo3/sysext/frontend/Classes/Middleware/BackendUserAuthenticator.php line 107
PHP Warning: Undefined array key "realName" in /var/www/typo3_src-11.5.19/typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php line 1287
PHP Warning: Undefined array key "workspace_id" in /var/www/typo3_src-11.5.19/typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php line 1780
PHP Warning: Undefined array key "workspace_id" in /var/www/typo3_src-11.5.19/typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php line 1952
Kind regards
Tomas
Updated by Chris Müller almost 2 years ago
Does it also occur with another backend user?
Updated by Tomas Havner over 1 year ago
It affects pages that has a frontend-group access. Yes it affect other users.
Updated by Christian Kuhn over 1 year ago
- Status changed from New to Needs Feedback
Weird. I'm unsure on how this could happen: Both realName and workspace_id are core fields of the be_users record and should always be set? Maybe I missed something, but BE_USER->user should usually be set to the user record, and for instance the BackendUserAuthenticator actually tests for BE_USER->user['uid'] being set before accessing workspace_id.
Could you provide a step-by-step setup on how to reproduce this?
Updated by Tomas Havner over 1 year ago
Hi,
The error has somehow disappeared. I apologize for the inconvience. This can be closed.
Tomas
Updated by Markus Klein over 1 year ago
- Status changed from Needs Feedback to Closed