Update problems from 2.0.2 to 2.2 [message #3713] |
Thu, 04 July 2002 18:23 |
HS-78
Messages: 27 Registered: July 2002 Location: Germany
Karma: 0
|
Junior Member |
|
|
I downloaded the update script and started it, now I get the following error:
ERROR: file msg_edit.gif not read properly from archive
My forum is blocked, I can do nothing at the momen, please help me ...
So long, HS
|
|
|
|
|
|
Re: Update problems from 2.0.2 to 2.2 [message #3717 is a reply to message #3716] |
Thu, 04 July 2002 18:40 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
If you have shell access you can do it by running:
md5sum file_name (linux)
md5 file_name (BSD)
If you do not have a shell account, you can do it via php like this:
<?php
$fp = fopen("file_name", "rb");
$file_data = fread($fp, filesize("file_name"));
fclose($fp);
echo "MD5: ".md5($file_data)."<br>\n";
?>
FUDforum Core Developer
|
|
|
|
Re: Update problems from 2.0.2 to 2.2 [message #3719 is a reply to message #3718] |
Thu, 04 July 2002 18:50 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
I got a completely different MD5 sum on the upgrade.php script I have.
That is definately a problem, since our MD5s should match.
Do you still have the compressed archive you've downloaded? If so, what is that archive's md5?
Also, can you tell me step by step how you downloaded the file, decompressed it, etc...
FUDforum Core Developer
|
|
|
|
Re: Update problems from 2.0.2 to 2.2 [message #3721 is a reply to message #3720] |
Thu, 04 July 2002 19:07 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Okie, I think somewhere during this process the upgrade script 'gained' \r. Windows tends to add that to what it thinks are text files. We do have a handler for that, which involved having some binary data at the top of the file, which tricks programs into thinking it is a binary file and not adding \r to the file.
However, it would appear that either Power Archiver or your FTP client ignored this directive and added \r.
You can check who it at fault, by getting an MD5 of the decompressed upgrade.php before uploading it. If the MD5 is not 82f110acd47c8656c385d4c7f8844649, it is 'Power Archiver' who it at fault.
The solution to your problem is to remove the \r, which are found inside the upgrade.php. You can do it with the following script:
<?php
$fp = fopen("file_name", "rb");
$file_data = fread($fp, filesize("file_name"));
fclose($fp);
$file_data = str_replace("\r", "", $file_data);
$fp = fopen("file_name", "wb");
fwrite($fp, $file_data);
fclose($fp);
FUDforum Core Developer
|
|
|
|
|
|
|
|