Project

General

Profile

Actions

Bug #80917

closed

Backend: Uncaught TYPO3 Exception in FrontendGroupRestriction constructor if $GLOBALS['TSFE']->gr_list is null

Added by Wolfgang Klinger over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-04-20
Due date:
% Done:

0%

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

Description

Exception in the backend (where there is no GLOBALS[TSFE] anyway) when saving a news record

explode() expects parameter 2 to be string, null given 

TypeError thrown in file
…vendor/typo3/cms/typo3/sysext/core/Classes/Database/Query/Restriction/FrontendGroupRestriction.php in line 36.

There's no check for either $this->getEnvironmentMode() === 'FE' or if the value is a string before using explode

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

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #87125: FrontendGroupRestriction class explode-Error in constructorRejected2018-12-11

Actions
Is duplicate of TYPO3 Core - Bug #79354: PageRepository::getPage fails in Backend contextRejected2017-01-17

Actions
Actions #1

Updated by Wolfgang Klinger over 7 years ago

  • Subject changed from Uncaught TYPO3 Exception in FrontendGroupRestriction constructor if $GLOBALS['TSFE']->gr_list is null to Backend: Uncaught TYPO3 Exception in FrontendGroupRestriction constructor if $GLOBALS['TSFE']->gr_list is null
Actions #2

Updated by Wouter Wolters over 7 years ago

  • Is duplicate of Bug #79354: PageRepository::getPage fails in Backend context added
Actions #3

Updated by Riccardo De Contardi over 7 years ago

I close this as duplicate of #79354 please continue the discussion there

Actions #4

Updated by Riccardo De Contardi over 7 years ago

  • Status changed from New to Closed
Actions #5

Updated by Georg Ringer almost 6 years ago

  • Related to Bug #87125: FrontendGroupRestriction class explode-Error in constructor added
Actions

Also available in: Atom PDF