Bug #105174
closedType error for GeneralUtility::trimExplode() called in AbstractAstBuilder on frontend request if value modification "removeFromList" is used
100%
Description
Sometimes, $originalValue
is null in evaluateValueModifier
function in TYPO3\CMS\Core\TypoScript\AST\AbstractAstBuilder.php
(1/1) TypeError TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(): Argument #2 ($string) must be of type string, null given, called in /app/vendor/typo3/cms-core/Classes/TypoScript/AST/AbstractAstBuilder.php on line 229
I'm using
TCEFORM.tt_content {
CType {
removeItems := removeFromList(menu_section)
}
}
in my TS-Config. I'm using 2 different files for TS-Config. First file (file-A) is included in root page (Page-A) of the website. Second (file-B) is included on a subpage (Subpage-B).
In file-A removeItems
property is already set and have some CType values they should be removed. In file-B one CType should be allowed on the subpages.
If I use this structure of included TS-Config (seems absolutely correct for me), the removeItems
property is not set by the file-A if a frontend request of
Subpage-B is taken.
$orignalValue
in evaluateValueModifier in AbstractAstBuilder.php is null.
If I go to the backend to show the active TS-Config for Subpage-B there is no problem, no error. Everything works. Only the frontend request throws an error.
Updated by Gerrit Code Review 30 days 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/+/86394
Updated by Christian Kuhn 29 days ago
- Related to Feature #97816: New TypoScript parser added
Updated by Gerrit Code Review 29 days 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/+/86394
Updated by Christian Kuhn 29 days ago
- Related to Task #101453: Add native type declarations to GU array methods added
Updated by Gerrit Code Review 29 days ago
Patch set 3 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/+/86394
Updated by Gerrit Code Review 29 days ago
Patch set 4 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/+/86394
Updated by Gerrit Code Review 16 days ago
Patch set 5 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/+/86394
Updated by Karsten Nowak (undkonsorten) 16 days ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 3585b1a2903f3c036db7c29c46b1794578af81cd.