Project

General

Profile

Actions

Bug #67928

closed

Uncaught Exception should give classname

Added by Franz Holzinger over 9 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
-
Target version:
-
Start date:
2015-07-06
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Sometimes it happens to get into the uncaught TYPO3 exception. Then more information should be given. The class reference is needed to solve the issue.


Uncaught TYPO3 Exception
#1320585902: $hookObject must implement interface TYPO3\CMS\Core\Database\TableConfigurationPostProcessingHookInterface (More information)

UnexpectedValueException thrown in file
/var/www/html/developer/typo3_src-7.3.1/typo3/sysext/core/Classes/Core/Bootstrap.php in line 1048.

5 TYPO3\CMS\Core\Core\Bootstrap::runExtTablesPostProcessingHooks()

/var/www/html/developer/typo3_src-7.3.1/typo3/sysext/core/Classes/Core/Bootstrap.php:

01000:   Utility\ExtensionManagementUtility::loadExtTables($allowCaching);
01001:   $this->executeExtTablesAdditionalFile();

01002:   $this->runExtTablesPostProcessingHooks();

01003:   return $this;
01004:  }

4 TYPO3\CMS\Core\Core\Bootstrap::loadExtensionTables(boolean)

/var/www/html/developer/typo3_src-7.3.1/typo3/sysext/backend/Classes/BackendModuleRequestHandler.php:

00087:    ->checkSslBackendAndRedirectIfNeeded()
00088:    ->checkValidBrowserOrDie()

00089:    ->loadExtensionTables(TRUE)

00090:    ->initializeSpriteManager()
00091:    ->initializeBackendUser()

3 TYPO3\CMS\Backend\BackendModuleRequestHandler::boot()

/var/www/html/developer/typo3_src-7.3.1/typo3/sysext/backend/Classes/BackendModuleRequestHandler.php:

00055:   */
00056:  public function handleRequest() {

00057:   $this->boot();

00058: 
00059:   $this->moduleRegistry = $GLOBALS['TBE_MODULES'];

2 TYPO3\CMS\Backend\BackendModuleRequestHandler::handleRequest()

/var/www/html/developer/typo3_src-7.3.1/typo3/sysext/core/Classes/Core/Bootstrap.php:

00190:   $this->registerRequestHandlers();
00191:   $requestHandler = $this->resolveRequestHandler();

00192:   $requestHandler->handleRequest();

00193:   return $this;
00194:  }

1 TYPO3\CMS\Core\Core\Bootstrap::run("typo3/")

/var/www/html/developer/typo3_src-7.3.1/typo3/mod.php:

00022: define('TYPO3_MODE', 'BE');
00023: require __DIR__ . '/sysext/core/Classes/Core/Bootstrap.php';

00024: \TYPO3\CMS\Core\Core\Bootstrap::getInstance()->run('typo3/')->shutdown();

    /**
     * Check for registered ext tables hooks and run them
     *
     * @throws \UnexpectedValueException
     * @return void
     */
    protected function runExtTablesPostProcessingHooks() {
        if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['extTablesInclusion-PostProcessing'])) {
            foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['extTablesInclusion-PostProcessing'] as $classReference) {
                /** @var $hookObject \TYPO3\CMS\Core\Database\TableConfigurationPostProcessingHookInterface */
                $hookObject = Utility\GeneralUtility::getUserObj($classReference);
                if (!$hookObject instanceof \TYPO3\CMS\Core\Database\TableConfigurationPostProcessingHookInterface) {
                    throw new \UnexpectedValueException('$hookObject must implement interface TYPO3\\CMS\\Core\\Database\\TableConfigurationPostProcessingHookInterface', 1320585902);
                }
                $hookObject->processData();
            }
        }
    }


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Task #67787: Make Exception in Bootstrap more speakingClosed2015-06-27

Actions
Actions #1

Updated by Christian Kuhn over 9 years ago

  • Status changed from New to Resolved

Thanks for the report, Franz. The exception was recently changed in master with #67787 already to make it more meaningful. This should solve your issue, I guess. Closing as duplicate.

Actions #2

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF