#87125FrontendGroupRestriction class explode-Error in constructor
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?
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.