Project

General

Profile

Actions

Bug #87125

closed

FrontendGroupRestriction class explode-Error in constructor

Added by cosmoblonde GmbH almost 6 years ago. Updated almost 6 years ago.

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

0%

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

Description

In several of my typo3 websites I have now experienced the same error while upgrading from v7.6 to v8.6.
In the Class /typo3/sysext/core/Classes/Database/Query/Restriction/FrontendGroupRestriction in the constructor the line:

$this->frontendGroupIds = $frontendGroupIds === null ? explode(',', $GLOBALS['TSFE']->gr_list) : $frontendGroupIds;

throws an error on the explode command when executed from the TYPO3 BE.

This Bug has been reported before (https://forge.typo3.org/issues/79354, https://forge.typo3.org/issues/80917), but has not been resolved.
The error only happens in the TYPO3 BE, caused by different tasks (e.g. by the solr extension creating the queue or by other 3rd party extensions)

Would it be possible to add a $GLOBALS['TSFE'] check or a "if (TYPO3_MODE == 'FE')" check (as suggested in the related issues), before executing the explode command?


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #79354: PageRepository::getPage fails in Backend contextRejected2017-01-17

Actions
Related to TYPO3 Core - Bug #80917: Backend: Uncaught TYPO3 Exception in FrontendGroupRestriction constructor if $GLOBALS['TSFE']->gr_list is nullClosed2017-04-20

Actions
Actions

Also available in: Atom PDF