Actions
Bug #58003
closedIndexed Search broken (Exception during search)
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Indexed Search
Target version:
-
Start date:
2014-04-17
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
When using the Pi2 of Indexed Search experimental Extbase and performing a search, you get an Exception and no search results
#1: PHP Warning: Division by zero in /Users/rvock/4wdmedia/projekte/10069_bauaufsicht-frankfurt/InBearbeitung/Relaunch-Intranet_1_4/Produktion/Intranet/typo3/typo3_src/typo3/sysext/indexed_search/Classes/ViewHelpers/PageBrowsingViewHelper.php line 56
I think there are multiple bugs at work here:
1. The SearchController assigns the searchData to fluid as searchParams:
// typo3/sysext/indexed_search/Classes/Controller/SearchController.php:203 $this->view->assign('searchParams', $searchData);
But the view tries to access this data as searchData and not searchParams:
// typo3/sysext/indexed_search/Resources/Private/Templates/Search/Search.html:46 <p> <is:pageBrowsingResults numberOfResults="{result.count}" currentPage="{searchData.pointer}" resultsPerPage="{searchData.results}" /> </p> <is:pageBrowsing maximumNumberOfResultPages="{settings.search.page_links}" numberOfResults="{result.count}" currentPage="{searchData.pointer}" resultsPerPage="{result.pageBrowser.resultsPerPage}" />
2. result.pageBrowser is null.
3. Then the TypoScript is missing. There is no call to add it in ext_tables:
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile
But the TypoScript files exist in Configuration/TypoScript and the SearchController tries to access it:
if (is_array($this->settings['defaultOptions'])) { $searchData = array_merge($this->settings['defaultOptions'], $searchData); }
I tested these bugs in 6.2.0 and 6.2.1
Actions