Project

General

Profile

Actions

Bug #23587

closed

Installation of Introduction Package fails without error message when gzuncompress() is missing

Added by Christian d'Heureuse over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-09-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When the php5-zlib package is not installed (which is the default in some Linux distributions)), the following happens during the installation of the Typo3 Introduction Package:

SC_mod_tools_em_terconnection.decodeExchangeData() returns a string with the error message "Decoding Error: No decompressor available for compressed content. gzcompress()/gzuncompress() functions are not available!"

In tx_introduction_import_extension.importExtension() the string with this error message is stored in $extensionArray. There should error handling here like:
if (!is_array($extensionArray)) { ... process error ...}
but instead the next statement tries to access $extensionArray0['EM_CONF'] which leads to the error "PHP Fatal error: Cannot use string offset as an array in /.../typo3conf/ext/introduction/Classes/Import/Extension.php on line 103". This error message is only visible in the Apache error log and the user only gets a blank web page without any indication of an error.

I suggest to:

1. Add error handling to tx_introduction_import_extension.importExtension() to test whether decodeExchangeData() returns an array or an error message.

2. Add general error handling so that an error message is displayed when e.g. a fatal PHP error occurs during the installation of the Introduction Package.

3. Add a check for the availability of the gzcompress()/gzuncompress() functions (PHP ZLib package) to the "Basic Configuration" page of the Install Tool.

(issue imported from #M15780)


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #23147: [Install] make a pre-check for required php-extensionsClosedXavier Perseguers2010-07-11

Actions
Has duplicate TYPO3 Core - Bug #23708: Introduction package not installedClosedChris topher2010-10-11

Actions
Actions

Also available in: Atom PDF