Bug #99125
closedMultiple Static Page Arguments end in "Array to string conversion"
100%
Description
Hello,
in an environment with TYPO3 v11.5.18 and PHP 8.1 the backend module "Indexing" of EXT:indexed_search breaks in the action "List: pages" if there is an entry with multiple values (Array) like this:
The error message is "PHP Warning: Array to string conversion in /var/www/html/vendor/typo3fluid/fluid/src/Core/Parser/SyntaxTree/AbstractNode.php line 73"
To get rid of this message I've changed this line in the Fluid template from
{key}={values}
to
{key}={values -> f:format.json()}
(typo3/sysext/indexed_search/Resources/Private/Templates/Administration/Pages.html - line 64)
But I'am not sure if this is the desired solution.
Best regards!
Updated by Daniel Hettler about 2 years ago
- File deleted (
clipboard-202211180913-jeci6.png)
Updated by Daniel Hettler about 2 years ago
Add missing example after first sentence:
tx_news_pi1={"action":"detail","controller":"News","news":"623"}
The shown solution isn't the final one because we need to consider more scnearios than an array value.
Unfortunately I'm not allowed to change my own ticket description ;)
Updated by Georg Ringer 5 months ago
- Has duplicate Bug #103847: indexed_search - module - List: pages = error: Array to string conversion added
Updated by Gerrit Code Review 5 months ago
- Status changed from Accepted 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/+/84812
Updated by Gerrit Code Review 5 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/+/84830
Updated by Gerrit Code Review 5 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/+/84812
Updated by Gerrit Code Review 5 months 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/+/84812
Updated by Georg Ringer 5 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 0baca4b21d81aedeb3562ecc82089b899b1cd647.