Bug #65539
closedNo settings detected
0%
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.
Updated by Jigal van Hemert over 9 years ago
- 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.
Updated by Gernot Leitgab over 9 years ago
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...
Updated by Markus Klein over 9 years ago
I disagree Jigal. We have setups where a microsite with own domain record is inside a parent tree.
Example:
example.com
- blog.example.com
Updated by Alexander Opitz over 9 years ago
- Status changed from Needs Feedback to New
Updated by Riccardo De Contardi almost 8 years ago
- 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
Updated by Alexander Opitz over 7 years ago
- 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.