Bug #98486
closedPHP warning thrown: Array to string conversion in PageLinkBuilder.php
100%
Description
Using the following snippet in a Fluid template (from the documentation examples extension):
<f:link.page pageUid="{settings.singlePid}" additionalParams="{tx_examples_haiku: {action: 'show', haiku: haiku.uid}}">{haiku.title}</f:link.page>
throws the following PHP warning in current main (12.0.x-dev, used commit 3d6c735):
Array to string conversion in /var/www/html/public/typo3/sysext/frontend/Classes/Typolink/PageLinkBuilder.php line 223
The additionalParams is given as an array, then a string is appended to that array.
I assume, this comes from this commit:
https://github.com/TYPO3/typo3/commit/ae28f3d22f3a69b70f5f976c1e348739ac438331
The usage of the view helper worked some days ago.
Updated by Chris Müller over 2 years ago
- Related to Task #98474: Allow f:link.page and f:uri.page without Extbase added
Updated by Gerrit Code Review over 2 years 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/+/75926
Updated by Gerrit Code Review over 2 years 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/+/75926
Updated by Gerrit Code Review over 2 years 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/+/75926
Updated by Gerrit Code Review over 2 years 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/+/75926
Updated by Chris Müller over 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 44fc4f5e246c00180e88f8ca1e70dca5b1d27408.