No pseudo-site found in root line of page <sys_category.uid> on sys_category edit
(1/1) #1534710048 TYPO3\CMS\Core\Exception\SiteNotFoundException No pseudo-site found in root line of page 9999
Tested: TYPO3 9.5.24
- create a sys_category where sys_category.uid does not exist in pages.uid (you can e.g. edit the record in the database and set uid to 9999 or simular)
- now got to the BE List module and edit this sys_category
1. why is this checked at all?
2. if, it should be checked against sys_category.pid
Updated by Jonas Eberle 8 months ago
I can confirm.
It happens while evaluating a displayCond for sys_category.slug. Core does not add that field - in my case it was added by EXT:news.
'displayCond' => 'USER:' . \TYPO3\CMS\Core\Compatibility\PseudoSiteTcaDisplayCondition::class . '->isInPseudoSite:pages:false',
It seems to have been fixed with https://github.com/georgringer/news/commit/20e9866807616fa1ca55a2c43a516a29705ffca9 and is released with EXT:news v8.5.2.
Removing that condition fixes it for me, too.
Funnily I've seen that error several times in the log over the last years. Happy it's gone now :)