vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade Archive (https://vborg.vbsupport.ru/forumdisplay.php?f=174)
-   -   Function Unpack Error (https://vborg.vbsupport.ru/showthread.php?t=176607)

usearchme 04-19-2008 10:11 AM

Function Unpack Error
 
Hi there guys

After many years of running my arcade without any problems, i have gone to add some new games to day and am getting the error

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

I have no idea what to do next, how do i resolve this, should i think about a re-install or is this an error somone knows how to solve ?

Woc

MrZeropage 04-19-2008 12:08 PM

there are some workarounds that can be found here, or wait for upcoming v2.6.7+ where this is fixed :)

usearchme 04-20-2008 09:42 PM

Hi there

Yeah found this online and worked ok thanks to someone called gemma on the net who posted this but for everyone else who gets this error here is the resolution i used

Open arcade/functions/tar.php and find:

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

Replace it wit:

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

Woc


All times are GMT. The time now is 09:58 AM.

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.01737 seconds
  • Memory Usage 1,706KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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