Bug #103847
closedindexed_search - module - List: pages = error: Array to string conversion
0%
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>
Updated by Riccardo De Contardi about 2 months ago
- Category set to Indexed Search
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 ?
Updated by Stefan Bürk about 1 month ago
- Status changed from New to Needs Feedback
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
Updated by Georg Ringer 27 days ago
- Status changed from Needs Feedback to Closed
closed as duplicate of #99125
Updated by Georg Ringer 27 days ago
- Is duplicate of Bug #99125: Multiple Static Page Arguments end in "Array to string conversion" added