Bug #28630
PHP Warnings in tx_solr_Util::getRootPageId in current public trunk
| 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;"
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
- File 2011-07-28_18h05_19.png added
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 Marc Bastian Heinrichs almost 2 years ago
- File solr_28630.patch added
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