Bug #65539
closed
Added by Gernot Leitgab over 9 years ago.
Updated over 7 years ago.
Description
Under certain circumstances the error "1333650506: No settings detected. [...]" is shown in Extbase backend modules (e.g. belog).
This is the result of a not precise calculation of the site root in \TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager->getCurrentPageIdFromCurrentSiteRoot():
/**
* Gets the current page ID from the first site root in tree.
*
* @return int the page UID, will be 0 if none has been set
*/
protected function getCurrentPageIdFromCurrentSiteRoot() {
$rootPage = $GLOBALS['TYPO3_DB']->exec_SELECTgetSingleRow(
'uid', 'pages', 'deleted=0 AND hidden=0 AND is_siteroot=1', '', 'sorting'
);
if (empty($rootPage)) {
return 0;
}
return (int)$rootPage['uid'];
}
If multiple nested site root's available (multi domain installations) the main root page (pid=0) may have a lower sorting than a child page, therefore the wrong site root is returned.
- Status changed from New to Needs Feedback
Is the situation really that you have domains inside the tree of another domain? That is a tricky setup and will most likely lead to issues at one place or another.
Different sites (domains) in an installation should each have their own tree.
To reproduce the problem start with a clean installation, install the official introduction package and execute the following SQL:
UPDATE pages SET is_siteroot = 1, sorting = 1 WHERE title = 'News';
INSERT INTO sys_template SET pid = (SELECT uid FROM pages WHERE title = 'News'), clear = 3;
To fix the problem it is sufficient to add "pid=0" to the query mentioned above, so it becomes:
/**
* Gets the current page ID from the first site root in tree.
*
* @return int the page UID, will be 0 if none has been set
*/
protected function getCurrentPageIdFromCurrentSiteRoot() {
$rootPage = $GLOBALS['TYPO3_DB']->exec_SELECTgetSingleRow(
'uid', 'pages', 'pid=0 AND deleted=0 AND hidden=0 AND is_siteroot=1', '', 'sorting'
);
if (empty($rootPage)) {
return 0;
}
return (int)$rootPage['uid'];
}
But maybe this is not what "current site root" should represent...
I disagree Jigal. We have setups where a microsite with own domain record is inside a parent tree.
Example:
example.com
- blog.example.com
- Status changed from Needs Feedback to New
- Category set to Extbase
- Status changed from New to Needs Feedback
Does this issue still exists on 7.6.x or 8 (latest master) ?
(at least in 7.6.x the code reported is still present)
Thank you very much
- Status changed from Needs Feedback to Closed
No feedback within the last 90 days => closing this issue.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.
Also available in: Atom
PDF