Bug #26642
closed
Extension manager does not load any extensions in CLI environment on Windows machine
Added by customaze GmbH over 13 years ago.
Updated almost 10 years ago.
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
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
- Category changed from Extension Manager to Backend API
- 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)?
- Status changed from Needs Feedback to Closed
Should be using scheduler - scheduler works fine on windows
Also available in: Atom
PDF