Bug #38254
Templavoila: Error while indexing content
100%
Description
I was indexing templavoila elements, when I got a blank page after clicking "Start indexer".
This is what I found in the reports module:
Core: Error handler (BE): PHP Warning: Invalid argument supplied for foreach() in /var/www/html/typo3conf/ext/ke_search/indexer/types/class.tx_kesearch_indexer_types_templavoila.php line 271
Unsurprisingly, none of the TV elements are indexed after that.
Updated by Stefan Froemken over 8 years ago
- Status changed from New to Needs Feedback
- Assignee set to Stefan Froemken
Hello Florian,
thank you for your report. We have a little problem, because on line 271 there is no for each loop:
// hook for custom modifications of the indexed data, e. g. the tags if(is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyTemplaVoilaIndexEntry'])) { foreach($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyTemplaVoilaIndexEntry'] as $_classRef) { $_procObj = & t3lib_div::getUserObj($_classRef); $_procObj->modifyPagesIndexEntry( $uid, $pageContent, $tags, $this->cachedPageRecords, $additionalFields, // THIS IS LINE 271!!! $indexerConfig ); } }
Can you please checkout the latest version, try it again and give us feedback? Maybe it would be good to post this line here to better discovering the buggy part.
Stefan
Updated by Stefan Froemken over 8 years ago
- Status changed from Needs Feedback to Closed
- % Done changed from 0 to 100
I can't find the bug and two other customers don't have this problem with current trunk. That's why I close this ticked after 2 week now.
Updated by Andreas over 7 years ago
One solution to avoid the Error is to change the line in the file (didn't check all related functions) :
- foreach($pageContent as $langKey => $content) {
+ foreach((array)$pageContent as $langKey => $content) {