Bug #85310

$GLOBALS['BE_USER] is null causes Errors in FE

Added by Julian Stelzer about 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2018-06-19
Due date:
% Done:

100%

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

Description

Call to a member function getTSConfig() on null 
Error thrown in file
../typo3/sysext/backend/Classes/Utility/BackendUtility.php in line 873.

Trying to save data of a form in my database in Frontend.

The error comes from this line:

$userTSconfig = static::getBackendUserAuthentication()->getTSConfig() ?? [];

static::getBackendUserAuthentication() is null.

Related issues

Related to TYPO3 Core - Task #82497: Streamline \TYPO3\CMS\Backend\Utility\BackendUtility::getPagesTSconfigClosedAlexander Schnitzler2017-09-17

Actions

Also available in: Atom PDF