Issue Bug Closed

#103644Uncaught TYPO3 Exception Call to a member function getRemoteAddress() on null

Nikita Hovratov 04/17/24, 08:29 updated 07/09/24, 15:39

Description

Uncaught TYPO3 Exception Call to a member function getRemoteAddress() on null
thrown in file /var/www/html/vendor/typo3/cms-core/Classes/ExpressionLanguage/FunctionsProvider/DefaultFunctionsProvider.php
in line 75

This exception occurs to me, when running the command typo3:referenceindex:update. When the command reaches a tt_content element of type form, the form framework event listener DataStructureIdentifierListener kicks in and bootstraps TypoScript parsing in backend context. However, in CLI there is no request so the ip function fails of course.

TypoScript somthing similar like:

[ip(“127.0.0.*”)]
foo = bar
[end]

Reviews 2