Bug #26642
closedExtension manager does not load any extensions in CLI environment on Windows machine
0%
Description
The problem appeared when trying to use the awstats-update.phpcron script from ics_awstats on a Windows machine with PHP 5.3.3 from the CMD shell.
The script complained about missing extensions in this way:
Fatal error: Uncaught exception 'BadFunctionCallException' with message 'TYPO3 Fatal Error: Extension key "sv" was NOT loaded!' in E:\www\intranet\t3lib\class.t3lib_extmgm.php:156
Updated by customaze GmbH over 13 years ago
for some reason, the bug tracker ate the interesting parts of the description.
I could track down the problem to typo3_loadExtensions() in class.t3lib_extmgm.php.
Problem is, the localconf caching adds slashes and then serializes the $extensions which are later unserialized from the temp_CACHED_*_localconf.php file. This does not work in CLI Windows environments (at least not in mine).
Fix: replace the $temp_filename line here:
if (isset($extensions[$temp_extKey])) {
foreach($files as $fName) {
$temp_filename = PATH_site.$extensions[$temp_extKey]['siteRelPath'].trim($fName);
if (is_array($extensions[$temp_extKey]) && @is_file($temp_filename)) {
$extensions[$temp_extKey][$fName] = $temp_filename;
}
}
}
With:
$temp_filename = str_replace("\\", "/", PATH_site.$extensions[$temp_extKey]['siteRelPath'].trim($fName));
Thank you,
Fabian
Updated by Helmut Hummel about 13 years ago
- Category changed from Extension Manager to Backend API
Updated by Alexander Opitz almost 10 years ago
- Status changed from New to Needs Feedback
- Is Regression set to No
Hi,
as this issue is very old. Does the problem still exists within newer versions of TYPO3 CMS (6.2.7)?
Updated by Mathias Schreiber almost 10 years ago
- Status changed from Needs Feedback to Closed
Should be using scheduler - scheduler works fine on windows