Project

General

Profile

Actions

Bug #99125

closed

Multiple Static Page Arguments end in "Array to string conversion"

Added by Daniel Hettler about 2 years ago. Updated 4 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Indexed Search
Start date:
2022-11-18
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
PHP, 8.0, 8.1, compatibility
Complexity:
Is Regression:
Sprint Focus:

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!


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #103847: indexed_search - module - List: pages = error: Array to string conversionClosed2024-05-16

Actions
Actions #1

Updated by Daniel Hettler about 2 years ago

  • File deleted (clipboard-202211180913-jeci6.png)
Actions #2

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 ;)

Actions #3

Updated by Georg Ringer 5 months ago

  • Has duplicate Bug #103847: indexed_search - module - List: pages = error: Array to string conversion added
Actions #4

Updated by Georg Ringer 5 months ago

  • Status changed from New to Accepted
Actions #5

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

Actions #6

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

Actions #7

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

Actions #8

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

Actions #9

Updated by Georg Ringer 5 months ago

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

Updated by Benni Mack 4 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF