Issue Bug Closed

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

Christian Hackl 05/16/24, 11:17 updated 06/20/24, 21:10

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>

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 6

  1. Riccardo De Contardi changed category 05/19/24, 16:46

  2. Stefan Bürk commented 06/07/24, 23:29

    @erredeco 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 ?

  3. Stefan Bürk changed status New Needs Feedback 06/07/24, 23:29

  4. Christian Hackl commented 06/11/24, 13:09

    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

  5. Georg Ringer commented and changed status Needs Feedback Closed 06/20/24, 21:10

    closed as duplicate of #99125

  6. Georg Ringer changed Duplicates #99125 06/20/24, 21:10