Project

General

Profile

Actions

Bug #99125

open

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

Added by Daniel Hettler over 1 year ago. Updated over 1 year ago.

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

0%

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!

Actions #1

Updated by Daniel Hettler over 1 year ago

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

Updated by Daniel Hettler over 1 year 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

Also available in: Atom PDF