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

Bug #28630

PHP Warnings in tx_solr_Util::getRootPageId in current public trunk

Added by Marc Bastian Heinrichs almost 2 years ago. Updated over 1 year ago.

Status:Closed Start date:2011-08-01
Priority:Must have Due date:
Assignee:Ingo Renner % Done:

100%

Category:-
Target version:2.0
TYPO3 Version: Has patch:
PHP Version: Tags:
Votes: 1 (View)

Description

Core: Error handler (FE): PHP Warning: Invalid argument supplied for foreach() in typo3conf/ext/solr/classes/class.tx_solr_util.php line 262
Core: Error handler (FE): PHP Warning: array_reverse() [<a href='function.array-reverse'>function.array-reverse</a>]: The argument should be an array in /typo3conf/ext/solr/classes/class.tx_solr_util.php line 261

if $pageId is null or 0 and empty $GLOBALS['TSFE']->rootLine, $rootLine is no array in line 261.

Solution: add "$rootLine = array();" after "$rootPageId = $pageId;"

2011-07-28_18h05_19.png (62.7 kB) Peter Kraume, 2011-08-01 15:31

solr_28630.patch (541 Bytes) Marc Bastian Heinrichs, 2011-08-12 12:30


Related issues

related to Apache Solr for TYPO3 CMS - Bug #34535: Warnings caused by missing array initialization Closed 2012-03-05

History

Updated by Peter Kraume almost 2 years ago

I have a similar (same?) problem. See attached screenshot.

Adding $rootLine = array(); does the trick for me as well.

Updated by Marc Bastian Heinrichs almost 2 years ago

jep, it's the same function

Updated by Ingo Renner almost 2 years ago

  • Status changed from New to Resolved
  • Assignee set to Ingo Renner
  • Target version set to 2.0
  • % Done changed from 0 to 100

resolved in EAP trunk rev 83259

Updated by Ingo Renner over 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF