[TYPO3-Solr] "Extend to Subpages" not working

Helmut Rieth h.rieth at gmx.de
Fri Oct 23 16:45:17 CEST 2015


Hi,
i try to index pages with the default page indexer
(TYPO3 V.6.2, solr 3.1.0)
No problem, if the pages are group protected, but if i use "Extend to
Subpages" in a case like this:

Home
 |
  - Subpage (access restricted, "Extend to Subpages" activated)
     |
      - Page ID=3 (no access restrictions)

the search fails with the warning:
PHP Warning: file_get_contents(http://.../index.php?id=3&L=0): failed to
open stream: HTTP request failed! HTTP/1.0 404 Not Found in
/.../solr/Classes/IndexQueue/PageIndexerRequest.php line 144

I debugged the request and ended at

\TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::checkPagerecordForIncludeSection

public function checkPagerecordForIncludeSection($row) {
  return !$row['extendToSubpages'] || $this->checkEnableFields($row) ? 1 : 0;
}

To me this looks like:
- if "Extend to Subpages" is NOT checked it always return 1 (ok)
- otherwise it checks for the enableFields. This for sure will fail.

Any hints or just a bug?
Thanks in advance
Helmut


More information about the TYPO3-project-solr mailing list