PDA

View Full Version : ERROR Installing New Games


bigevil
10-21-2007, 05:44 PM
I keep getting this error trying to install any new games as well as old games... This occured only after I updated from 2.6.3a+ to 2.6.5+. I have listed the error code below.

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


Any ideas what is doing this? I have tried reinstalling and I have also uploaded the new XML fix.

phatguy88
10-21-2007, 06:58 PM
same error here too

bigevil
10-21-2007, 07:20 PM
Along with the Warning Error I listed below this is also listed in a box below the log.

Error in TAR-Archive. Please upload again.

--------------- Added 1193009792 at 1193009792 ---------------

Here is the solution to this problem. You need to open up the tar.php file within your website/forums/arcade/functions folder. I have posted the fix as well as the link to the thread where I found the solution at.

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

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

The link to the thread is below...

http://www.ibpdownloads.com/ipb/index.php?showtopic=12629&st=0

PurpleButterfly
10-27-2007, 05:28 AM
Thank you SO much! :D

pedroenf
10-28-2007, 05:26 PM
It works, great! Thanks for this solution. However it still shows this message:

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

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

GrendelKhan{TSU
11-02-2007, 10:49 AM
woot! thanks! :D :D

no mods
11-03-2007, 01:53 AM
Thanks a bunch big, fixed it right up.

popowich
11-12-2007, 12:09 AM
Thanks for the help, fixed the problem for me too.

-Raymond

neopet001
11-16-2007, 11:18 AM
Same problem here.
Fixed, thank you

MrZeropage
11-16-2007, 05:30 PM
this fix is now part of upcoming v2.6.6+ :)

o0Hubba0o
11-27-2007, 01:40 AM
It works, great! Thanks for this solution. However it still shows this message:

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

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






this fix is now part of upcoming v2.6.6+ :)



Does that include a fix for the other error? Or is that something else?

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

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

o0Hubba0o
11-30-2007, 06:15 PM
The games seem to install fine, but I don't like getting these warnings when I install, any solution as of yet?

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

Edster
01-23-2008, 08:18 AM
That worked great. Thanks very much. :)

MrZeropage
01-23-2008, 05:24 PM
The games seem to install fine, but I don't like getting these warnings when I install, any solution as of yet?
no solution needed, this is normal behaviour

DustyJoe
01-26-2008, 02:45 AM
Edit:

nevermind

Emarkay
04-22-2008, 04:31 AM
I tried copy pasting the earlier fix, didn't work. All you need to do is remove one of the "a8devminor" and the "prefix".

This is the solution:

Open /arcade/functions/tar.php

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