Project

General

Profile

Actions

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.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2011-05-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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

Actions #1

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

Actions #2

Updated by Helmut Hummel about 13 years ago

  • Category changed from Extension Manager to Backend API
Actions #3

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)?

Actions #4

Updated by Mathias Schreiber almost 10 years ago

  • Status changed from Needs Feedback to Closed

Should be using scheduler - scheduler works fine on windows

Actions

Also available in: Atom PDF