Project

General

Profile

Actions

Bug #103644

closed

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

Added by Nikita Hovratov 30 days ago. Updated 29 days ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2024-04-17
Due date:
% Done:

100%

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

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]


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #100047: Modernize condition matching / expression handlingClosed2023-02-28

Actions
Actions

Also available in: Atom PDF