Bug #30481
RealURL fails when indexing records outside the site root
| Status: | Closed | Start date: | 2011-09-30 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | Ingo Renner | % Done: | 100% |
|
| Category: | Index Queue | |||
| Target version: | 2.1 | |||
| TYPO3 Version: | Has patch: | |||
| PHP Version: | Tags: | |||
| Votes: | 1 (View) |
Description
I think this is a follow up issue to #11102. I try to index tt_news items in an folder outside the web-root, and realurl throws an error:
PHP Fatal error: Call to a member function pageNotFoundAndExit() on a non-object in /home/leica-microsystems.com/public_html/typo3conf/ext/realurl/class.tx_realurl.php on line 2510
Maybe an option in the indexer typoscirpt to set the site-url can help?
Associated revisions
Fixed issue #30481: RealURL fails when indexing records outside the site root
Fixed issue #30481: RealURL fails when indexing records outside the site root
History
Updated by Olivier Dobberkau over 1 year ago
- Status changed from New to Accepted
We will have a look into this.
Updated by Olivier Dobberkau over 1 year ago
- Assignee set to Ingo Renner
Updated by Ingo Renner over 1 year ago
- Status changed from Accepted to Needs Feedback
- Assignee changed from Ingo Renner to Michael Voehringer
- Priority changed from Should have to -- undefined --
- Target version deleted (
2.5-dkd)
When indexing records outside a site you need to add the containing page to the indexing configuration:
index.queue.tt_news {
additionalPageIds = externalPageId
fields {
...
}
}
Please let us know whether this works for you.
Updated by Michael Voehringer over 1 year ago
no, it did not.
Maybe a part of the problem is, that there are more then one Domain hosted by the typo3 installation (multi domain) ?
Updated by Ingo Renner over 1 year ago
Michael Voehringer wrote:
Maybe a part of the problem is, that there are more then one Domain hosted by the typo3 installation (multi domain) ?
that doesn't matter
Updated by Hendrik Nadler about 1 year ago
I've had the same error. After digging a little while in tx_solr_scheduler_IndexQueueWorkerTask i found out that the problem is in the function "initializeHttpHost":
$itemPageId = $item->getRecordPageId(); ... $rootline = t3lib_BEfunc::BEgetRootLine($itemPageId);
If the records storage page is outside the pageroot no domain record will be found so that no HTTP_HOST can be set. This fix worked for me:
$rootPageId = $item->getRootPageUid(); ... $rootline = t3lib_BEfunc::BEgetRootLine($rootPageId);
Of course this should only be done if the HTTP_HOST is still empty after the initial search.
Updated by Ingo Renner about 1 year ago
- Status changed from Needs Feedback to Accepted
- Assignee deleted (
Michael Voehringer)
Updated by Ingo Renner about 1 year ago
Thanks for the hint Hendrik
Updated by Denis about 1 year ago
- Assignee set to Ingo Renner
- Priority changed from -- undefined -- to Should have
- Target version set to 1651
Updated by Ingo Renner about 1 year ago
- Subject changed from Indexing records outside the pageroot and realurl to RealURL fails when indexing records outside the site root
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Fixed in dkd-EAP r 93385
Updated by Ingo Renner about 1 year ago
- Target version changed from 1651 to 2.1
Updated by Ingo Renner about 1 year ago
- Status changed from Resolved to Closed