Bug #86195
closedLocalization of page fails because of SiteNotFoundException
100%
Description
Given scenario:
Have a root page (is_siteroot = 1) with site configuration and localization to Dansk. On the same level, create a new page without setting the is_siteroot flag. When attempting a localization on that page to Dansk as well, the exception is thrown:
(1/1) SiteNotFoundException No pseudo-site found in root line of page XXX
The REAL interesting thing is, that the reported page XXX is the successfully localized one.
Updated by Andreas Kienast about 6 years ago
How I understand the issue:
The failing part is SlugHelper::isUniqueInSite(), the method tries to find a page on the pid of the created localization. Since there is already a localization on the same pid (but on a different "origin"), the wrong records get fetched and thus the code fails.
Updated by Gerrit Code Review about 6 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58224
Updated by Anja Leichsenring about 6 years ago
how to reproduce:
- have one rootpage [1] with a site configuration
- have another rootpage [2] without a site configuration (just tested, also fails if a site config exists here)
- on [2], have a translation in language {1} => this gets pid [3]
- configure the site configuration on [1] to contain {1}
- go to page module on language view.
- initiate translation of [1] into {1}
=> SiteNotFoundException
No pseudo-site found in root line of page 3.
So the site finder aims for that translated page from [2], where a translation of [1] should be created.
Updated by Anja Leichsenring about 6 years ago
- Status changed from Under Review to Accepted
Updated by Gerrit Code Review about 6 years ago
- Status changed from Accepted to Under Review
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/58229
Updated by Gerrit Code Review about 6 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58229
Updated by Gerrit Code Review about 6 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58229
Updated by Gerrit Code Review about 6 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58229
Updated by Gerrit Code Review about 6 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58229
Updated by Benni Mack about 6 years ago
- Target version changed from 9 LTS to Candidate for patchlevel
Updated by Tymoteusz Motylewski about 6 years ago
- Related to Bug #86625: "No pseudo-site found in root line of page" when executing upgrade wizard added
Updated by Oliver Hader about 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 342e7bff84927406f7b63cc846ce759b8a437926.
Updated by Oliver Hader about 6 years ago
- Related to Bug #86809: Resolve strict type assertion in RecordStateFactory added