Issue Bug Closed

#53311t3lib_extMgm::extPath() no longer works in ext_localconf.php

Dmitry Dulepov 11/04/13, 15:27 updated 08/27/14, 07:52

Description

Using this function with $_EXTKEY no longer works after the introduction of PackageManager and throws an exception that the current extension is not loaded. Stack trace:

ExtensionManagementUtility::extPath(), 103
ext_localconf_XXX.php, line 1185
SimpleFileBackend->requireOnce(), 362
PhpFrontEnd->requireOnce(), 82
ExtensionManagementUtility::loadExtLocalconf(), 1418
Bootstrap->loadAdditionalConfigurationFromExtensions(), 680
….

Code from the extension multicolumn that causes this:

define('PATH_tx_multicolumn', t3lib_extMgm::extPath('multicolumn'));

This worked always in TYPO3 and many extensions use this to get paths to their internal resources. This must be fixed before the release of 6.2.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.