Project

General

Profile

Actions

Bug #99337

closed

Undefined array key "cookieDomain"

Added by Alex Kellner over 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2022-12-11
Due date:
% Done:

100%

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

Description

In TYPO3 12.1.0 a frontend plugin tries to set a flashMessage. This leads to the error:

PHP Warning: Undefined array key "cookieDomain" in .../vendor/typo3/cms-core/Classes/Authentication/AbstractUserAuthentication.php line 350

A cookieDomain is not set in my environment. I'm not sure if this is required in TYPO3 12 now or if this should also work without this configuration.


For the moment I think of a bug when I follow the code in AbstractUserAuthentication

So I just fixed in the file like:

$cookieDomain = $GLOBALS['TYPO3_CONF_VARS']['SYS']['cookieDomain'] ?? '';

Actions #1

Updated by Alex Kellner over 1 year ago

  • Description updated (diff)
Actions #2

Updated by Gerrit Code Review over 1 year ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77031

Actions #3

Updated by Gerrit Code Review about 1 year ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77031

Actions #4

Updated by Gerrit Code Review about 1 year ago

Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/78060

Actions #5

Updated by Georg Ringer about 1 year ago

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

Also available in: Atom PDF