Log in

View Full Version : Error on Install - New Server


The Librarian
09-27-2007, 07:51 PM
I just moved to a new server. Today is the first day since the move that I've attempted to install a new game.

I uploaded the games as usual - same as I'd been doing before the move.

On install I got this:

Warning: unpack() [function.unpack]: Invalid format type p in /arcade/functions/tar.php on line 750

Warning: fread() [function.fread]: Length parameter must be greater than 0 in /arcade/functions/tar.php on line 794

NOTE: These are games I had previously uploaded and tested on my test site. They worked fine then.

My conclusion is that it must have something to do with the new server, but I don't know what.

Any ideas?

ScottRowan
09-28-2007, 12:37 AM
Yeh I just posted about this too:
https://vborg.vbsupport.ru/showthread.php?t=158910

Any ideas?

The Librarian
09-28-2007, 01:13 AM
Yeh I just posted about this too:
https://vborg.vbsupport.ru/showthread.php?t=158910

Any ideas?

lol I replied to your thread too!

nope, none.

In fact, your thread upset me because I thought maybe it was my new server. Now I have no idea what it could be!

Has anything about your forum changed since you last installed games?

I moved to a new host and a VPS. The forum seems to work fine, as does the current arcade, but I thought maybe some setting was different and that was upsetting things.

It's going to take someone who knows more about this than me to help us out here. :rolleyes:

Sorry!

MortysTW
09-28-2007, 04:32 PM
I just moved to a new server. Today is the first day since the move that I've attempted to install a new game.

I uploaded the games as usual - same as I'd been doing before the move.

On install I got this:



NOTE: These are games I had previously uploaded and tested on my test site. They worked fine then.

My conclusion is that it must have something to do with the new server, but I don't know what.

Any ideas?

Very strange that it worked before and not now.

Um......... this is happening when you just do a single game install? Or when you check multiple games and try installing them all with 1 click?

The Librarian
09-28-2007, 04:48 PM
Very strange that it worked before and not now.

Um......... this is happening when you just do a single game install? Or when you check multiple games and try installing them all with 1 click?

I checked it both ways before I posted, and neither worked.

MortysTW
09-28-2007, 04:53 PM
I think you're just cursed. haha

Um........ okay, grab the product.xml file that is within the UPGRADE folder when you download the latest arcade script, and upload it via AdminCP>Plugins & Products> and ADD the product but make sure you CHECK the box for OVERWRITE and maybe it will overwrite some goofed thing and straighten things out.

I'm at a loss other than that since you are sure you've installed it before.

The Librarian
09-28-2007, 04:58 PM
I think you're just cursed. haha
Ha Ha, not funny. :rolleyes:
Um........ okay, grab the product.xml file that is within the UPGRADE folder when you download the latest arcade script, and upload it via AdminCP>Plugins & Products> and ADD the product but make sure you CHECK the box for OVERWRITE and maybe it will overwrite some goofed thing and straighten things out.

I'm at a loss other than that since you are sure you've installed it before.
OK, I can do that. Should I turn the arcade off first?

MortysTW
09-28-2007, 05:03 PM
Probably a good idea.

ScottRowan
09-28-2007, 05:06 PM
Im using an older version of the arcade.

If I uninstalled ibPro and installed v3Arcade, would you loose all the highscores etc?

MortysTW
09-28-2007, 05:15 PM
I don't know the capabilities of v3Arcade. You'd have to go to their support forum and ask if there script is capable of that. ibPro support forums could only help if you were switching over this (better) direction.

ScottRowan
09-28-2007, 07:05 PM
Ok,

I mean I dont really want to convert I just want this error fixed.

I dont know why its doing it I never changed anything in template or settings, its like it just stopped :S

MortysTW
09-28-2007, 08:00 PM
Upgrade! You say you are using an older version. Upgrade. See if that fixes the errors.

Newer versions come out because bugs are found over time and things are tweaked, sorted, hammered, and hopefully fixed with time.

If you are still out of luck after you have followed the upgrade instructions, PM me with your FTP user/pass and also your AdminCP user/pass and I'll take a look. But this is after you have upgraded with no luck.

The Librarian
09-28-2007, 10:42 PM
Probably a good idea.

Alright Morty, I tried re-loading the product and that didn't work. So I reloaded ALL the files, overwriting EVERYTHING and then re-loading the product and that didn't work. So I told the Product Manager to delete the product and THEN re-loaded and it still didn't work.

Same error message everytime.

I'm still wondering if it could be something with my new host so I compared cPanel info. Here are the differences:

OLD kernel version 2.6.17.11-grsechg -- NEW kernel version 2.6.9-023stab044.4-enterprise
OLD php version 5.2.3 -- NEW php version 5.2.4
OLD cPanel Build 11.10.0-STABLE 16448 -- NEW cPanel Build 11.11.0-RELEASE 16983

Everything else is the same.


Any new ideas? :)

MortysTW
09-30-2007, 05:07 AM
Alright, I know you said you OVERWROTE everything by re-uploading. For whatever reason, I've come to find when helping others around here, that things don't always get overwritten.

All the .php extension files that are in the /arcade/ directory should be deleted. THen deleted the arcade.php that is in your forum root /forum/arcade.php

Once you've deleted those, then go back and upload the php files like you just did.

I know it sounds stupid, but its been the solution for my issues in the past and some others that I've helped. Maybe we can break this curse of yours. :)

The Librarian
10-01-2007, 03:09 AM
Alright, I know you said you OVERWROTE everything by re-uploading. For whatever reason, I've come to find when helping others around here, that things don't always get overwritten.

All the .php extension files that are in the /arcade/ directory should be deleted. THen deleted the arcade.php that is in your forum root /forum/arcade.php

Once you've deleted those, then go back and upload the php files like you just did.

I know it sounds stupid, but its been the solution for my issues in the past and some others that I've helped. Maybe we can break this curse of yours. :)

UPDATE: And a bit of GOOD, Yes, Morty - GOOD news! :D

What you suggested didn't work. Sorry. I tried deleting everything and re-installing, but it still didn't work...

So I googled a bit and found THIS (http://www.ibpdownloads.com/ipb/index.php?s=&showtopic=12629&view=findpost&p=25252)

which I tried on my test forum and IT WORKED!!!! YIPPEEE!!! :D :D :D

The games install. HOWEVER, I still am getting this error:
Warning: fread() [function.fread]: Length parameter must be greater than 0 in /arcade/functions/tar.php on line 794

But the other error which stopped installation completely can be solved by doing this:

~~~~~~~~~~~~~~~~~~quote from NickTheGreek at ibpdownloads.com~~~~~~~~~~
This is the solution:

Open the /tar.php file

edit the line :

var $tar_unpack_header = 'a100filename/a8mode/a8uid/a8gid/a12size/a12mtime/a8chksum/a1typeflag/a100linkname/a6magic/a2version/a32uname/a32gname/a8devmajor/a8devminor/a155/prefix';

to:

var $tar_unpack_header = 'a100filename/a8mode/a8uid/a8gid/a12size/a12mtime/a8chksum/a1typeflag/a100linkname/a6magic/a2version/a32uname/a32gname/a8devmajor/a8devminor/a155';

in simple english, remove the /prefix that gives the error

I did that and everything works fine, on both www.yourforum.gr ( IPB 2.0.4 + Cyber's MOD Arcade ) & www.invisiongames.org ( 2.1.7 + ipbcoding.com Arcade 6.1.0 )

The issue is not the arcade but the TAR unpacker.

~~~~~~~~~~~~~end of Nick's post~~~~~~~~~~~~~~

So thank you Nick, and thank you Google...

and thank you Morty for trying. :)

At least that problem is solved. :D


I'm still going to keep looking for a solution for this:
Warning: fread() [function.fread]: Length parameter must be greater than 0 in /arcade/functions/tar.php on line 794

I did find this: http://pear.php.net/bugs/bug.php?id=4896

I can't tell if they're talking about the same thing though.

MortysTW
10-01-2007, 12:23 PM
Interesting find. Hopefully MrZ reads your findings.

And as for the template thingy, sounds like the error message could just be removed. Not sure where to find that message though. But don't delete the message if you do find it in the code, just block it out by putting //// infront of it on that line item.

Maybe its a line item in arcade.php, maybe tar.php.

Search your files for the phrase of: fread()

I'd go do it myself, but bit busy finishing things up at work so I can get out of this place and go get married. (WHAT AN IDIOT!)

The Librarian
10-01-2007, 12:34 PM
Interesting find. Hopefully MrZ reads your findings.

And as for the template thingy, sounds like the error message could just be removed. Not sure where to find that message though. But don't delete the message if you do find it in the code, just block it out by putting //// infront of it on that line item.

Maybe its a line item in arcade.php, maybe tar.php.

Search your files for the phrase of: fread()
I'll take a look and see if I can find it, thanks.

I'd go do it myself, but bit busy finishing things up at work so I can get out of this place and go get married. (WHAT AN IDIOT!)
:D Congratulations!!! You're not an idiot! LOL I'm sure she's a lucky lady. Marriage can be great if you're willing to hold on through the good times and the bad. Just be as patient with her as you have been with me and you'll be fine. ;) :D

Best wishes for a wonderful future together!

--------------- Added at 08:48 ---------------

Ok... didn't find fread() in any file anywhere. The word fread is in the tar.php but not with empty parentheses.

However, there is this bit of code:

while (!feof($FH)) {

$buffer = fread( $FH , $this->tar_header_length );

// check the block

$checksum = 0;

I think this could be the place because it mentions length.

I know you've got to go get married, so this is low priority. I'm just pasting it here for when you have a chance or if Mr. Z or someone else has any ideas. I hate to mess with this unless I'm sure it won't mess things up worse than ever.

Thanks!

MortysTW
10-01-2007, 03:52 PM
haha, ya, this is actually my 2nd. First was the mistake, this one isn't. Looking forward to my future.

As for your thing, if it were my forum, I would play around and silence those lines of code for testing purposes. Something I do when I haven't a clue what I'm doing but find something interesting.

Being that I don't have any further answers to help you, I don't want to suggest you doing this.

MrZeropage is going to have to handle this one unfortunetly.

Antonio Pereira
10-05-2007, 09:23 AM
UPDATE: And a bit of GOOD, Yes, Morty - GOOD news! :D

var $tar_unpack_header = 'a100filename/a8mode/a8uid/a8gid/a12size/a12mtime/a8chksum/a1typeflag/a100linkname/a6magic/a2version/a32uname/a32gname/a8devmajor/a8devminor/a155/prefix';

to:

var $tar_unpack_header = 'a100filename/a8mode/a8uid/a8gid/a12size/a12mtime/a8chksum/a1typeflag/a100linkname/a6magic/a2version/a32uname/a32gname/a8devmajor/a8devminor/a155';



Yes works for me to.

Thanks and i think they can resolve this bug in next release.


Best Regards

stangger5
10-05-2007, 09:39 AM
I'm still going to keep looking for a solution for this:
Warning: fread() [function.fread]: Length parameter must be greater than 0 in /arcade/functions/tar.php on line 794

Dont worry about that error,,your games will still install and work fine..;)