Bug #33915
The page for the given page ID '0' is not marked as root page and can therefore not be used as site root page.
| Status: | Closed | Start date: | 2012-02-14 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | Peter Kraume | % Done: | 0% |
|
| Category: | Garbage Collection | |||
| Target version: | - | |||
| TYPO3 Version: | Has patch: | |||
| PHP Version: | Tags: | |||
| Votes: | 0 |
Description
EAP r90712 from 26/01/2012
I get the error message "The page for the given page ID '0' is not marked as root page and can therefore not be used as site root page." upon editing the page with uid=1 which is directly under the (former) globe icon and has pid=0.
Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1309272922: The page for the given page ID '0' is not marked as root page and can therefore not be used as site root page. | InvalidArgumentException thrown in file /var/www/typo3/typo3conf/ext/solr/classes/class.tx_solr_site.php in line 65
I tried to fix the error in classes/indexqueue/class.tx_solr_indexqueue_item.php
original code:
public function getSite() {
return t3lib_div::makeInstance('tx_solr_Site', $this->rootPageUid);
}
new code:
public function getSite() {
$rootPageUid = ($this->rootPageUid == 0) ? $this->recordUid : $this->rootPageUid;
return t3lib_div::makeInstance('tx_solr_Site', $rootPageUid);
}
After that I was able to edit the page with uid=1.
Funny thing is that I removed my code change after that editing and applied the original again. I wasn't able to reproduce my error again then.
History
Updated by Peter Kraume over 1 year ago
Discussion on mailing lists: http://lists.typo3.org/pipermail/typo3-project-solr/2012-February/000977.html
Updated by Ingo Renner about 1 year ago
I also can't reproduce this anymore, do you think we can close this issue?
Updated by Ingo Renner about 1 year ago
- Status changed from New to Needs Feedback
- Assignee set to Peter Kraume
Updated by Peter Kraume about 1 year ago
- Status changed from Needs Feedback to Closed
Same here. Closed