Issue Bug Closed

#107199Outdated default value for ['TYPO3_CONF_VARS']['BE']['lockRootPath']

Albrecht Köhnlein 08/04/25, 06:55 updated 12/02/25, 13:58

Description

Adding this line to $GLOBALS['TYPO3_CONF_VARS']['BE']['lockRootPath'][] = '/path/to/shared'; to additional.php does cause an error:

> Fatal error: Uncaught Error: [] operator not supported for strings in /var/www/html/config/system/additional.php:12 Stack trace: #0 /var/www/html/vendor/typo3/cms-core/Classes/Configuration/ConfigurationManager.php(378): require() #1 /var/www/html/vendor/typo3/cms-core/Classes/Core/Bootstrap.php(323): TYPO3\CMS\Core\Configuration\ConfigurationManager->exportConfiguration() #2 /var/www/html/vendor/typo3/cms-core/Classes/Core/Bootstrap.php(89): TYPO3\CMS\Core\Core\Bootstrap::populateLocalConfiguration() #3 /var/www/html/public/index.php(20): TYPO3\CMS\Core\Core\Bootstrap::init() #4 /var/www/html/public/index.php(21): {closure:/var/www/html/public/index.php:17}() #5 {main} thrown in /var/www/html/config/system/additional.php on line 12

But adding $GLOBALS['TYPO3_CONF_VARS']['BE']['lockRootPath'][0] = '/path/to/shared'; works.

Thanks to Peter Kraume to find this problem: https://phpc.social/@cybersmog/114959323771560230

Reviews 3