Bug #85985

Error: No pseudo-site found in root line of page 3

Added by Stefan Froemken about 1 year ago. Updated 6 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Pagetree
Target version:
Start date:
2018-08-27
Due date:
% Done:

100%

TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hello Core Team,

I'm just trying TYPO3 9.4.0-dev and started with an empty page-tree. I have created the first page and clicked on it, which results in Error:

#1534710048: No pseudo-site found in root line of page 3

Backtrace:

TYPO3\CMS\Core\Exception\SiteNotFoundException thrown in file
/Users/froemken/htdocs/typo3_src/typo3/sysext/core/Classes/Site/PseudoSiteFinder.php in line 177.

33 TYPO3\CMS\Core\Site\PseudoSiteFinder::getSiteByPageId(3, array)

/Users/froemken/htdocs/typo3_src/typo3/sysext/core/Classes/Routing/SiteMatcher.php:
00168:         } catch (SiteNotFoundException $e) {
00169:             // Check for a pseudo / null site
00170:             return $this->pseudoSiteFinder->getSiteByPageId($pageId, $rootLine);
00171:         }
00172:     }

32 TYPO3\CMS\Core\Routing\SiteMatcher::matchByPageId(3)

/Users/froemken/htdocs/typo3_src/typo3/sysext/backend/Classes/View/PageLayoutView.php:
04405:     protected function resolveSiteLanguages(int $pageId)
04406:     {
04407:         $site = GeneralUtility::makeInstance(SiteMatcher::class)->matchByPageId($pageId);
04408:         $this->siteLanguages = $site->getAvailableLanguages($this->getBackendUser(), false, $pageId);
04409:     }

31 TYPO3\CMS\Backend\View\PageLayoutView::resolveSiteLanguages(3)

/Users/froemken/htdocs/typo3_src/typo3/sysext/backend/Classes/View/PageLayoutView.php:
02980:     public function start($id, $table, $pointer, $search = '', $levels = 0, $showLimit = 0)
02981:     {
02982:         $this->resolveSiteLanguages((int)$id);
02983:         $backendUser = $this->getBackendUser();
02984:         // Setting internal variables:

30 TYPO3\CMS\Backend\View\PageLayoutView::start(3, "tt_content", 0, NULL, NULL, NULL)

/Users/froemken/htdocs/typo3_src/typo3/sysext/backend/Classes/Controller/PageLayoutController.php:
00898:             // Start the dblist object:
00899:             $dbList->itemsLimitSingleTable = 1000;
00900:             $dbList->start($this->id, $table, $this->pointer, $this->search_field, $this->search_levels, $this->showLimit);
00901:             $dbList->counter = $CMcounter;
00902:             $dbList->ext_function = $this->MOD_SETTINGS['function'];

29 TYPO3\CMS\Backend\Controller\PageLayoutController::renderContent()

/Users/froemken/htdocs/typo3_src/typo3/sysext/backend/Classes/Controller/PageLayoutController.php:
00781:                 $content .= '<h1 class="t3js-title-inlineedit">' . htmlspecialchars($this->getLocalizedPageTitle()) . '</h1>';
00782:                 // All other listings
00783:                 $content .= $this->renderContent();


Related issues

Related to TYPO3 Core - Bug #86186: No pseudo-site found in root line for workspaces Closed 2018-09-07
Related to TYPO3 Core - Bug #88586: No pseudo-site found in root line for workspaces New 2019-06-18
Duplicated by TYPO3 Core - Bug #85992: Pseudo site not found on new root-level page Closed 2018-08-27

Associated revisions

Revision c22ed2aa (diff)
Added by Christian Kuhn about 1 year ago

[TASK] Remove site caches if page is created on top level

The patch fixes a fatal php scenario if a page is created
on root level. The data handler now flushes site caches if that
happens and unsets the SiteMatcher singleton so it is forced
to be recalculated if re-used in current request.

Change-Id: Ie54f70b1bbfaaf1f6302f4e6b14abcf6af4c310f
Resolves: #85985
Releases: master
Reviewed-on: https://review.typo3.org/58017
Tested-by: TYPO3com <>
Reviewed-by: Wouter Wolters <>
Tested-by: Wouter Wolters <>
Reviewed-by: Anja Leichsenring <>
Tested-by: Anja Leichsenring <>

Revision 5335d9aa (diff)
Added by Steffen Dietrich 11 months ago

[BUGFIX] Remove caches if a site is deleted

This patch fixes a pseudo-site-error in the backend after a
created site is deleted and the page module is shown.
After deleting the site the cache gets automatically cleared.

Resolves: #85985
Releases: master
Change-Id: I42157fe61a0a624be875d2a777147a657a973d2f
Reviewed-on: https://review.typo3.org/58896
Tested-by: TYPO3com <>
Reviewed-by: Steffen Dietrich <>
Tested-by: Steffen Dietrich <>
Reviewed-by: Benni Mack <>
Tested-by: Benni Mack <>

History

#1 Updated by Stefan Froemken about 1 year ago

There is no Site Configuration configured.
Site Configuration has found my Page UID 3 and gives me a button "Add site configuration for new site".

#2 Updated by Stefan Froemken about 1 year ago

I have debugged that error a little bit. TYPO3 has found an old config.yaml in typo3conf./sites/fds/. After deleting it and clearing all caches it works.
Would be cool if TYPO3 will not respect that old file or throws an error that old config does not match page-tree.

Stefan

#3 Updated by Christian Kuhn about 1 year ago

that's a cache issue. i have a partial patch pending for this already with https://review.typo3.org/#/c/58017/ - the fatal is still thrown, but the next class is ok at least. i'm still in contact with benni on how to fix this in a better way.

#5 Updated by Christian Kuhn about 1 year ago

  • Duplicated by Bug #85992: Pseudo site not found on new root-level page added

#6 Updated by Gerrit Code Review about 1 year ago

  • Status changed from New to Under Review

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58017

#7 Updated by Gerrit Code Review about 1 year ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58017

#8 Updated by Christian Kuhn about 1 year ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#9 Updated by Joerg Kummer about 1 year ago

Same Error, when edit a new created page in Workspace
TYPO3 9.5-dev

#10 Updated by Joerg Kummer about 1 year ago

  • Related to Bug #86186: No pseudo-site found in root line for workspaces added

#11 Updated by Benni Mack about 1 year ago

  • Status changed from Resolved to Closed

#12 Updated by Andreas Steiger 11 months ago

I also can reproduce the error in 9.5.1.
If I move this 'error'-site in an another root site tree and add pages, the error is gone. The error message is a bug

#13 Updated by Oliver Hader 11 months ago

@AndreasSteiger: What's the stack track for the exception you get (probably you might want to enable debug context in install tool)?

#14 Updated by Steffen Dietrich 11 months ago

I could reproduce the error with creating and deleting sites. There's a bugfix available that could do the trick.
https://review.typo3.org/#/c/58896/

#15 Updated by Benni Mack 6 months ago

  • Target version changed from 9 LTS to next-patchlevel

#16 Updated by Philipp Seiler 4 months ago

  • Related to Bug #88586: No pseudo-site found in root line for workspaces added

Also available in: Atom PDF