Project

General

Profile

Actions

Bug #65539

closed

No settings detected

Added by Gernot Leitgab over 9 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2015-03-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #38108: Multiple domain records in one tree don't workRejectedNicole Cordes2012-06-16

Actions
Actions #1

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.

Actions #2

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...

Actions #3

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

Actions #4

Updated by Alexander Opitz over 9 years ago

  • Status changed from Needs Feedback to New
Actions #5

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

Actions #6

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.

Actions

Also available in: Atom PDF