vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade Archive (https://vborg.vbsupport.ru/forumdisplay.php?f=174)
-   -   Error on Install - New Server (https://vborg.vbsupport.ru/showthread.php?t=158909)

The Librarian 09-27-2007 07:51 PM

Error on Install - New Server
 
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:

Quote:

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

Quote:

Originally Posted by ScottRowan (Post 1348635)
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

Quote:

Originally Posted by The Librarian (Post 1348497)
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

Quote:

Originally Posted by MortysTW (Post 1349036)
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

Quote:

Originally Posted by MortysTW (Post 1349056)
I think you're just cursed. haha

Ha Ha, not funny. :rolleyes:
Quote:

Originally Posted by MortysTW (Post 1349056)
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

Quote:

Originally Posted by MortysTW (Post 1349063)
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

Quote:

Originally Posted by MortysTW (Post 1349997)
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

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

The games install. HOWEVER, I still am getting this error:
Quote:

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 :

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.

~~~~~~~~~~~~~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

Quote:

Originally Posted by MortysTW (Post 1350735)
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.

Quote:

Originally Posted by MortysTW (Post 1350735)
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:
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

Quote:

Originally Posted by The Librarian (Post 1350585)
UPDATE: And a bit of GOOD, Yes, Morty - GOOD news! :D

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';

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

Quote:

Originally Posted by The Librarian (Post 1350585)
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..;)


All times are GMT. The time now is 12: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.01335 seconds
  • Memory Usage 1,802KB
  • 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
  • (5)bbcode_code_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)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