Bug #58003
closedIndexed Search broken (Exception during search)
100%
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
Updated by Markus Klein over 10 years ago
Hi Robert!
Thanks for reporting. Can you push a patch to our review system?
Cheers Markus
Updated by Gerrit Code Review over 10 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/30023
Updated by Gerrit Code Review almost 10 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/30023
Updated by Gerrit Code Review almost 10 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/30023
Updated by Gerrit Code Review almost 10 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/30023
Updated by Robert Vock almost 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 1e27e8960ab195b804ab80c345fce152087d87b6.
Updated by Gerrit Code Review over 9 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38626
Updated by Robert Vock over 9 years ago
- Status changed from Under Review to Resolved
Applied in changeset c2cbc8ea6f436e165026eaefd35dcd4b5b205382.