Project

General

Profile

Actions

Bug #103847

closed

indexed_search - module - List: pages = error: Array to string conversion

Added by Christian Hackl 2 months ago. Updated 27 days ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Indexed Search
Target version:
-
Start date:
2024-05-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

TYPO3 12.4.14
indexed_search 12.4.14

Go to any page at the backend, select the module of EXT:indexed_search ("Indexing") and then at the select-field ("#IndexedSearchModuleMenu") select "List: Pages".

Error with Cache:
PHP Warning: Array to string conversion in \var\cache\code\fluid_template\Administration_action_administration_Pages_6b5ae3fa1721e9a6e09b4c84b3ade62b0dc684b4.php line 675

Cleared Cache:
PHP Warning: Array to string conversion in \typo3_src-12.4.14\vendor\typo3fluid\fluid\src\Core\Parser\SyntaxTree\AbstractNode.php line 73

FLUID Template causes this error:
EXT:indexed_search/Resources/Private/Templates/Administration/Pages.html #Line: 72 - "{value}" is a array not a string.

<td>
    <f:if condition="{data.static_page_arguments}">
        <f:for each="{data.static_page_arguments}" as="value" key="key">
            {key}={value}<br>
        </f:for>
    </f:if>
</td>


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #99125: Multiple Static Page Arguments end in "Array to string conversion"Closed2022-11-18

Actions
Actions #1

Updated by Riccardo De Contardi about 2 months ago

  • Category set to Indexed Search
Actions #2

Updated by Stefan Bürk about 1 month ago

@Riccardo De Contardi I'm not that experienced with index search. Can you provide some hints how to create a site, which indexed has these static_page_arguments in any way ? If I use v12 monorepo with styleguide frontend, clicking through all sites in the frontend and I cannot find and indexing on that page having a static_page_arguments and thus the exception.

Can you provide some hints how to reproduce this ?

Actions #3

Updated by Stefan Bürk about 1 month ago

  • Status changed from New to Needs Feedback
Actions #4

Updated by Christian Hackl about 1 month ago

the documentation describes the field as follows:

"--- The Static Page Arguments - URL parameter that are used for caching.
For TYPO3 pages: These are used to re-generate the actual url of the TYPO3 page in question
For files this is an empty array. Not used. ---"

So I think if files are indexed, “static_page_arguments” becomes an array and then it cannot be output in the Fluid as {value}.

https://docs.typo3.org/c/typo3/cms-indexed-search/main/en-us/DatabaseTables/IndexPhash/Index.html

Actions #5

Updated by Georg Ringer 27 days ago

  • Status changed from Needs Feedback to Closed

closed as duplicate of #99125

Actions #6

Updated by Georg Ringer 27 days ago

  • Is duplicate of Bug #99125: Multiple Static Page Arguments end in "Array to string conversion" added
Actions

Also available in: Atom PDF