Project

General

Profile

Actions

Bug #82962

closed

FrontendUserAuthentication throws PHP error if this->user is not null or not array

Added by Thomas Hohn about 7 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Start date:
2017-11-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

It some of out TYPO3 installations we sometime see the following error when a login attempt has failed.

Core: Error handler (FE): PHP Warning: array_merge(): Argument #1 is not an array 
typo3_src/typo3/sysext/frontend/Classes/Authentication/FrontendUserAuthentication.php line 412 

So there might be conditions where $this->user can be something that's not an array or null

Actions #1

Updated by Markus Klein about 7 years ago

IMO $this->user is not null, but a string or something.
The ?? operator would use the false-part of the ternary if it was null.

Actions #2

Updated by Thomas Hohn about 7 years ago

  • Subject changed from FrontendUserAuthentication throws PHP error if this->user is null to FrontendUserAuthentication throws PHP error if this->user is not null or array
  • Description updated (diff)
Actions #3

Updated by Thomas Hohn about 7 years ago

Markus Klein wrote:

IMO $this->user is not null, but a string or something.
The ?? operator would use the false-part of the ternary if it was null.

You are right - my bad - will look into it...

Actions #4

Updated by Thomas Hohn about 7 years ago

  • Subject changed from FrontendUserAuthentication throws PHP error if this->user is not null or array to FrontendUserAuthentication throws PHP error if this->user is not null or not array
Actions #5

Updated by Markus Klein about 7 years ago

Which extensions are part of the game in your case?

Actions #6

Updated by Łukasz Uznański over 6 years ago

How can I reproduce this bug?

Actions #7

Updated by Benni Mack over 5 years ago

  • Target version changed from next-patchlevel to Candidate for patchlevel
Actions #8

Updated by Susanne Moog over 4 years ago

  • Status changed from New to Closed

No instructions to reproduce, no feedback since 2 years, closing the issue now - please report back if it happens again.

Actions

Also available in: Atom PDF