CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #38254

Templavoila: Error while indexing content

Added by Florian Seirer 11 months ago. Updated 9 days ago.

Status:Closed Start date:2012-06-21
Priority:Should have Due date:
Assignee:Stefan Froemken % Done:

100%

Category:-
Target version:-
Votes: 0

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.

History

Updated by Stefan Froemken 10 months 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 10 months 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 no-lastname-given 9 days 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) {

Also available in: Atom PDF