Project

General

Profile

Actions

Bug #54768

closed

t3lib_pageSelect* compatibility classes not loaded in backend

Added by Christian Weiske almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
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.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #55099: PHP Warnings after clearing configuration cache in BEClosed2014-01-17

Actions
Precedes TYPO3 Core - Bug #55151: "Create template for new website" does not show new templateClosed2014-01-20

Actions
Actions

Also available in: Atom PDF