Project

General

Profile

Actions

Bug #95825

closed

"Check TCA" must include ext_localconf.php

Added by Franz Holzinger about 3 years ago. Updated about 2 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Install Tool
Target version:
-
Start date:
2021-10-30
Due date:
% Done:

0%

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

Description

When I press the button to execute "Check TCA in ext_tables.php" from the Upgrade module, then this results in an error message.
This happens only because the file ext_localconf.php has not been included before the TCA file is executed. The constant TT_BOARD_EXT is defined there.

*(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception
PHP Warning: Use of undefined constant TT_BOARD_EXT - assumed 'TT_BOARD_EXT'

*
_ (this will throw an Error in a future version of PHP) in /var/www/html/develop/typo3conf/ext/tt_board/Configuration/TCA/tt_board.php line 21

in /var/www/html/develop/typo3_src-10.4.17/typo3/sysext/core/Classes/Error/ErrorHandler.php line 134
            E_DEPRECATED => 'PHP Runtime Deprecation Notice'
        ];        $message = $errorLevels[$errorLevel] . ': ' . $errorMessage . ' in ' . $errorFile . ' line ' . $errorLine;
        if ($errorLevel & $this->exceptionalErrors) {
            throw new Exception($message, 1476107295);
        }
        switch ($errorLevel) {
            case E_USER_ERROR:
            case E_RECOVERABLE_ERROR:
at TYPO3\CMS\Core\Error\ErrorHandler->handleError()
in /var/www/html/develop/typo3conf/ext/tt_board/Configuration/TCA/tt_board.php line 21
        'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
        'enablecolumns' => [
            'disabled' => 'hidden'
        ],
        'title' => 'LLL:EXT:' . TT_BOARD_EXT . DIV2007_LANGUAGE_SUBPATH . 'locallang_tca.xlf:tt_board',
        'typeicon_column' => 'parent',
        'typeicons' => [
            '0' => 'tt_faq_board_root.gif'
        ],
_
Actions

Also available in: Atom PDF