Project

General

Profile

Actions

Bug #18787

closed

The extension MD5 sum could not be fetched from extensions.md5.

Added by Igor over 16 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extension Manager
Target version:
-
Start date:
2008-05-14
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I have a similar behavir as in report: #0003152

I cannot download any extension:
If I'm trying to import extension I get:
Error: The extension MD5 sum could not be fetched from extensions.md5. Possible reasons: network problems, allow_url_fopen is off, curl is not enabled in Install tool.

If I'm trying to reload mirror list I get:
The mirror list was not updated, it could not be fetched from http://repositories.typo3.org/mirrors.xml.gz. Possible reasons: network problems, allow_url_fopen is off, curl is not enabled in Install tool.

If I'm trying to upload extension file manually, I get:
Warning: gzuncompress(): data error in /web/kprfsverdlovskru/site/www/typo3/mod/tools/em/class.em_terconnection.php on line 152
Extension ManagerWrong file format. No data recognized, Error: MD5 mismatch. Maybe the extension file was downloaded and saved as a text file by the browser and thereby corrupted!? (Always select "All" filetype when saving extensions)

I have allow_url_fopen on. Curl is enabled in Install tool. Memory_limit = 64M (both).

But I cannot to download anything. I did not find any solution in previous report (#0003152). How can I procede?

Thanks,
Igor

(issue imported from #M8411)

Actions #1

Updated by Igor over 16 years ago

I decided to explore more in depth.
The error during manual install is from class.em_terconnection.php:

00148 function decodeExchangeData($str) {
00149 $parts = explode(':',$str,3);
00150 if ($parts1=='gzcompress') {
00151 if (function_exists('gzuncompress')) {
00152 $parts2 = gzuncompress($parts2);
00153 } else return 'Decoding Error: No decompressor available for compressed content. gzcompress()/gzuncompress() functions are not available!';
00154 }
00155 if (md5($parts2) == $parts0) {
00156 $output = unserialize($parts2);
00157 if (is_array($output)) {
00158 return array($output,'');
00159 } else return 'Error: Content could not be unserialized to an array. Strange (since MD5 hashes match!)';
00160 } else return 'Error: MD5 mismatch. Maybe the extension file was downloaded and saved as a text file by the browser and thereby corrupted!? (Always select "All" filetype when saving extensions)';
00161 }

Therefore, the problem is with gzuncompress function (that reports "data error") or with variable $str ($parts = explode(':',$str,3);). That causes the final error messages.

What do you think it can be? I have no idea for now.

Actions #2

Updated by Christian Kuhn over 14 years ago

Any more information on this? Does this problem still occur? This was probably some php / network problem?!

Actions #3

Updated by Igor over 14 years ago

I finally resolved the issue. My hosting provider blocked outgoing connections, so fopen did not work. After some discussion the hosting provider opened the connection, and the issue was gone.

It would be nice to see the error description in more details. I tried to figure it out for a month or so.

Actions #4

Updated by Marcus Krause over 14 years ago

your problem as mentioned by yourself:
"My hosting provider blocked outgoing connections, so fopen did not work."

the error message when clicking on retrieve update:
"The mirror list was not updated, it could not be fetched from http://repositories.typo3.org/mirrors.xml.gz. Possible reasons: network problems, allow_url_fopen is off, curl is not enabled in Install tool."

your suggestion:
"It would be nice to see the error description in more details."

In my opinion, the error message IS descriptive enough. I'm going to close the issue.

Actions

Also available in: Atom PDF