Issue Bug Closed

#70111Fatal Error in SearchController when access to page is required

Kay no-lastname-given 09/25/15, 13:36 updated 10/02/18, 11:28

Description

An error occurs when a search-result contains a row with a page that required access privileges.

TYPO3 Fatal Error: Extension key "IndexedSearch" is NOT loaded!

The error occurs on line /typo3_src/typo3/sysext/indexed_search/Classes/Controller/
SearchController.php (444)

// check if the access is restricted
if (is_array($this->requiredFrontendUsergroups[$pathId]) && count($this->requiredFrontendUsergroups[$pathId])) {
    $resultData['access'] = '<img src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath('IndexedSearch') . 'pi/res/locked.gif" width="12" height="15" vspace="5" title="' . sprintf(\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('result.memberGroups', 'IndexedSearch'), implode(',', array_unique($this->requiredFrontendUsergroups[$pathId]))) . '" alt="" />';
}

The ExtKey is wrong and should be ‘indexed_search’

// check if the access is restricted
if (is_array($this->requiredFrontendUsergroups[$pathId]) && count($this->requiredFrontendUsergroups[$pathId])) {
    $resultData['access'] = '<img src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath('indexed_search') . 'pi/res/locked.gif" width="12" height="15" vspace="5" title="' . sprintf(\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('result.memberGroups', 'IndexedSearch'), implode(',', array_unique($this->requiredFrontendUsergroups[$pathId]))) . '" alt="" />';
}

Reviews 1