Actions
Bug #54768
closedt3lib_pageSelect* compatibility classes not loaded in backend
Start date:
2014-01-06
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
When creating a new TypoScript template in the backend, TYPO3\\CMS\\Frontend\\Page\\PageRepository->getPage()
gets called. This method calls "getPage" hooks, which may be 4.7-compatible extensions that have to implement the t3lib_pageSelect_getPageHook
interface.
Currently, the t3lib_pageSelect_getPageHook
alias mapping is defined in typo3/sysext/frontend/Migrations/Code/ClassAliasMap.php
, which does not get loaded in the backend - only in the frontend.
So when creating a new TypoScript template (not an extension template), the backend crashes:
PHP Fatal error: Interface 't3lib_pageSelect_getPageHook' not found in cwe/typo3conf/ext/contexts/Classes/Service/Page.php on line 41 PHP Stack trace: PHP 1. {main}() cwe/typo3_src/typo3/mod.php:0 PHP 2. require() cwe/typo3_src/typo3/mod.php:41 PHP 3. TYPO3\\CMS\\Tstemplate\\Controller\\TypoScriptTemplateModuleController->main() cwe/typo3_src/typo3/sysext/tstemplate/ts/index.php:38 PHP 4. TYPO3\\CMS\\Tstemplate\\Controller\\TypoScriptTemplateModuleController->getButtons() cwe/typo3_src/typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateModuleController.php:192 PHP 5. TYPO3\\CMS\\Backend\\Utility\\BackendUtility::viewOnClick() cwe/typo3_src/typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateModuleController.php:260 PHP 6. TYPO3\\CMS\\Backend\\Utility\\BackendUtility::createPreviewUrl() cwe/typo3_src/typo3/sysext/backend/Classes/Utility/BackendUtility.php:2582 PHP 7. TYPO3\\CMS\\Backend\\Utility\\BackendUtility::getViewDomain() cwe/typo3_src/typo3/sysext/backend/Classes/Utility/BackendUtility.php:2638 PHP 8. TYPO3\\CMS\\Frontend\\Page\\PageRepository->getPage() cwe/typo3_src/typo3/sysext/backend/Classes/Utility/BackendUtility.php:2662 PHP 9. TYPO3\\CMS\\Core\\Utility\\GeneralUtility::getUserObj() cwe/typo3_src/typo3/sysext/frontend/Classes/Page/PageRepository.php:176 PHP 10. TYPO3\\CMS\\Core\\Utility\\GeneralUtility::requireOnce() cwe/typo3_src/typo3/sysext/core/Classes/Utility/GeneralUtility.php:4067 PHP 11. require_once() cwe/typo3_src/typo3/sysext/core/Classes/Utility/GeneralUtility.php:4446
You can reproduce this issue with TYPO3 6.2beta3 and an installed "contexts" extension.
Actions