Bug #103644
closedUncaught TYPO3 Exception Call to a member function getRemoteAddress() on null
100%
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]
Updated by Nikita Hovratov 7 months ago
- Related to Task #100047: Modernize condition matching / expression handling added
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
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
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
Updated by Nikita Hovratov 7 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 2ce19397ed90dbd5ad463e3e876107f54de573f3.