Bug #23587
closedInstallation of Introduction Package fails without error message when gzuncompress() is missing
0%
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)
Updated by Claus Due about 14 years ago
Uploaded fix suggestion to "Introduction Package" project - no changes made to TYPO3 trunk.
Updated by Jigal van Hemert about 14 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.
Updated by Steffen Gebert about 14 years ago
Claus and Christian, can you give it a try with the current subversion trunk?
https://svn.typo3.org/TYPO3v4/Core/trunk/
Updated by Chris topher about 14 years ago
Seems like this is still an issue:
Lutz Bettge reported this problem for TYPO3 4.5alpha2 in #23708.
Updated by Ernesto Baschny almost 14 years ago
Solved already in #23147 by the addition of the check for zlib in the 123 wizard