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 #1

Updated by Claus Due over 13 years ago

Uploaded fix suggestion to "Introduction Package" project - no changes made to TYPO3 trunk.

See http://forge.typo3.org/issues/9906.

Actions #2

Updated by Jigal van Hemert over 13 years ago

It's solved in #23147 by adding a check for required PHP modules in an early stage of the 1-2-3 installer.

Actions #3

Updated by Steffen Gebert over 13 years ago

Claus and Christian, can you give it a try with the current subversion trunk?
https://svn.typo3.org/TYPO3v4/Core/trunk/

Actions #4

Updated by Chris topher over 13 years ago

Seems like this is still an issue:
Lutz Bettge reported this problem for TYPO3 4.5alpha2 in #23708.

Actions #5

Updated by Steffen Gebert over 13 years ago

#23147 will be contained in alpha3

Actions #6

Updated by Ernesto Baschny over 13 years ago

Solved already in #23147 by the addition of the check for zlib in the 123 wizard

Actions

Also available in: Atom PDF