FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » Update problems from 2.0.2 to 2.2
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Update problems from 2.0.2 to 2.2 [message #3713] Thu, 04 July 2002 18:23 Go to next message
HS-78 is currently offline  HS-78   Germany
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 #3714 is a reply to message #3713] Thu, 04 July 2002 18:28 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Can you send me the md5 of the upgrade script you've downloaded?

FUDforum Core Developer
Re: Update problems from 2.0.2 to 2.2 [message #3715 is a reply to message #3714] Thu, 04 July 2002 18:32 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Also, what is your PHP version?

FUDforum Core Developer
Re: Update problems from 2.0.2 to 2.2 [message #3716 is a reply to message #3715] Thu, 04 July 2002 18:37 Go to previous messageGo to next message
HS-78 is currently offline  HS-78   Germany
Messages: 27
Registered: July 2002
Location: Germany
Karma: 0
Junior Member
Php version is 4.0.6

And how can I see what my MD5 is?
Re: Update problems from 2.0.2 to 2.2 [message #3717 is a reply to message #3716] Thu, 04 July 2002 18:40 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #3718 is a reply to message #3713] Thu, 04 July 2002 18:44 Go to previous messageGo to next message
HS-78 is currently offline  HS-78   Germany
Messages: 27
Registered: July 2002
Location: Germany
Karma: 0
Junior Member
ok, MD5 of the script upgrade.php is
MD5: 46781569bd87c180ae16e6414cb835ec
Re: Update problems from 2.0.2 to 2.2 [message #3719 is a reply to message #3718] Thu, 04 July 2002 18:50 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #3720 is a reply to message #3713] Thu, 04 July 2002 18:57 Go to previous messageGo to next message
HS-78 is currently offline  HS-78   Germany
Messages: 27
Registered: July 2002
Location: Germany
Karma: 0
Junior Member
The MD 5 of the Zip (FUDforum2_upgrade_20020704.zip) is:

MD5: e841c0d97f2eeaa1cfa1b18ebe64a176

I have downloaded it from your download side, decompressed it with Power Archiver on Win2K, uploaded the upgrade.php on my server and started the upgrade.php
Re: Update problems from 2.0.2 to 2.2 [message #3721 is a reply to message #3720] Thu, 04 July 2002 19:07 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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
Re: Update problems from 2.0.2 to 2.2 [message #3722 is a reply to message #3713] Thu, 04 July 2002 19:12 Go to previous messageGo to next message
HS-78 is currently offline  HS-78   Germany
Messages: 27
Registered: July 2002
Location: Germany
Karma: 0
Junior Member
mhm, your new script worked, but I still get the error message Sad

the strange thing is that today morning I updated from 1.2.8 to 2.0.2 with the same programs and had no problems.

[Updated on: Thu, 04 July 2002 19:14]

Report message to a moderator

Re: Update problems from 2.0.2 to 2.2 [message #3723 is a reply to message #3722] Thu, 04 July 2002 19:14 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
What is the size of the file you are trying to run?

It is possible the file got cutoff during transfer.


FUDforum Core Developer
Re: Update problems from 2.0.2 to 2.2 [message #3724 is a reply to message #3723] Thu, 04 July 2002 19:28 Go to previous messageGo to next message
HS-78 is currently offline  HS-78   Germany
Messages: 27
Registered: July 2002
Location: Germany
Karma: 0
Junior Member
okay, I uploaded the script again, and now Iit worked.

So far so good, but now I get a lot of

Warning: Unlink failed (Permission denied) in /is/htdocs/23357/www.holgersiegel.de/forum/upgrade.php on line 515

???
Re: Update problems from 2.0.2 to 2.2 [message #3726 is a reply to message #3724] Thu, 04 July 2002 19:46 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
that you can ignore

FUDforum Core Developer
icon14.gif  Re: Update problems from 2.0.2 to 2.2 [message #3728 is a reply to message #3713] Thu, 04 July 2002 19:52 Go to previous message
HS-78 is currently offline  HS-78   Germany
Messages: 27
Registered: July 2002
Location: Germany
Karma: 0
Junior Member
Now everything works, thnx so much for your help and patience.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: error
Next Topic: step 2 on instalation
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Dec 05 02:26:29 GMT 2024

Total time taken to generate the page: 0.02614 seconds