prdt3e

Results 6 comments of prdt3e

So I analyzed that. The error stems from getRootLine (Service/PageService.php). It appears that getRootLine has been removed from pageRepository: #[85557](https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/9.4/Deprecation-85557-PageRepository-getRootLine.html). ```php $rootline = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Utility\RootlineUtility::class, $pageUid)->get(); ``` RootlineUtility is backward compatible....

Yes: https://github.com/TYPO3/TYPO3.CMS/blob/TYPO3_8-7/typo3/sysext/core/Classes/Utility/RootlineUtility.php

suggestion ```php use TYPO3\CMS\Core\Utility\RootlineUtility; if (false === isset(static::$cachedRootlines[$cacheKey])) { $rootline = GeneralUtility::makeInstance(RootlineUtility::class, $pageUid); try { $rootline = $rootline->get(); } catch (\RuntimeException $ex) { if (isset($GLOBALS['TSFE'])) { $rootline = (array) $GLOBALS['TSFE']->rootLine;...

https://github.com/TYPO3/TYPO3.CMS/blob/9.5/typo3/sysext/frontend/Classes/Page/PageRepository.php (1214) https://github.com/TYPO3/TYPO3.CMS/blob/TYPO3_8-7/typo3/sysext/frontend/Classes/Page/PageRepository.php (950)

Does nobody have the problem with v10?

Typo3: 9.5.13 Powermail: 7.4.0