Project

General

Profile

Actions

Bug #103644

closed

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

Added by Nikita Hovratov 7 months ago. Updated 5 months ago.

Status:
Closed
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 #1

Updated by Nikita Hovratov 7 months ago

  • Related to Task #100047: Modernize condition matching / expression handling added
Actions #2

Updated by Gerrit Code Review 7 months ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/83842

Actions #3

Updated by Gerrit Code Review 7 months ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/83842

Actions #4

Updated by Gerrit Code Review 7 months ago

Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/83892

Actions #5

Updated by Nikita Hovratov 7 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Benni Mack 5 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF