vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade Archive (https://vborg.vbsupport.ru/forumdisplay.php?f=174)
-   -   ERROR Installing New Games (https://vborg.vbsupport.ru/showthread.php?t=160746)

bigevil 10-21-2007 05:44 PM

ERROR Installing New Games
 
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 [DATE]1193009792[/DATE] at [TIME]1193009792[/TIME] ---------------

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:
Code:

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

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/inde...pic=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

Quote:

Originally Posted by pedroenf (Post 1370536)
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






Quote:

Originally Posted by MrZeropage (Post 1383863)
this fix is now part of upcoming v2.6.6+ :)



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

Quote:

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?

Quote:

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

Quote:

Originally Posted by o0Hubba0o (Post 1392479)
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".

Quote:

This is the solution:

Open /arcade/functions/tar.php

edit the line :

Code:

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

to
Code:

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


All times are GMT. The time now is 04:57 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01098 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete