[BUGFIX] Using files in eID results in fatal error 92/27692/2
authorSteffen Ritter <info@rs-websystems.de>
Tue, 18 Feb 2014 13:42:43 +0000 (14:42 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Mon, 24 Feb 2014 05:55:23 +0000 (06:55 +0100)
In TYPO3_MODE == 'FE' we attached language overlays for file metadata
via an Signal in the MetaDataRepository. Within this signal the
methods of the PageRepository in $GLOBALS['TSFE'] are used to do the
actual language overlay.

When using eID the Frontend is not initialized. When creating file
objects in eID these functions are accessed on non-objects which
obviously leads to a fatal error.

As a result the registration of the Slot is extended to not register
itself in case of eID requests.

Resolves: #54232
Releases: 6.2
Change-Id: I4ccf226f48eb85428ce281c4a941ff7e834c2f88
Reviewed-on: https://review.typo3.org/27692
Reviewed-by: Wouter Wolters
Reviewed-by: Frans Saris
Tested-by: Frans Saris
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/frontend/ext_localconf.php

index 568688d..bb03ba9 100644 (file)
@@ -3,7 +3,7 @@ if (!defined('TYPO3_MODE')) {
        die('Access denied.');
 }
 
-if (TYPO3_MODE === 'FE') {
+if (TYPO3_MODE === 'FE' && !isset($_REQUEST['eID'])) {
        \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher')->connect(
                'TYPO3\\CMS\\Core\\Resource\\Index\\MetaDataRepository',
                'recordPostRetrieval',