December 05, 2023, 02:56:40 pm

The Gang Garrison 2 Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

NOTICE: Due to a rise in bot activity, new posters need to be approved before posting.

Join the community Discord server!

Pages: [1]

Author Topic: Can't download GG2 due to PHP error  (Read 5126 times)

ScentTree

  • New Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 1
Can't download GG2 due to PHP error
« on: May 24, 2010, 05:34:20 am »

Whenever I try to download gang garrison 2 I get the message
Code: [Select]

Warning: fread() [function.fread]: Length parameter must be greater than 0 in /var/www/vhosts/ganggarrison.com/httpdocs/download.php on line 18

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/ganggarrison.com/httpdocs/download.php:18) in /var/www/vhosts/ganggarrison.com/httpdocs/download.php on line 31
Logged

Teekytots [PC][OG]

  • Retired Big Man
  • Soldier of Fortune
  • ******
  • Karma: 142
  • Offline Offline
  • Posts: 6497
  • Fear is only a State of Mind
Re: Can't download GG2 due to PHP error
« Reply #1 on: May 24, 2010, 05:46:48 am »

Moving to Bug Reports
Logged
I have signatures turned off

Speed of Dark

  • Veteran Member
  • ******
  • Karma: 635
  • Offline Offline
  • Posts: 9695
  • i've got more dust in m pinky than u kids bodyss
Re: Can't download GG2 due to PHP error
« Reply #2 on: May 24, 2010, 05:48:17 am »

Seems more like it should be in Website + Forum, but whatever.

To expand upon what Tree said, it shows this message both at the main Download page, and if you try to actually download it, whether through http or through torrent.
« Last Edit: May 24, 2010, 05:48:28 am by Speed of Dark »
Logged
1:14 AM - Sani (Tethering is awful): if i go offline for no reason that means i've tried closing malwarebytes and in retaliation it decided to spit out an overflow and my computer not onl
1:14 AM - Spud: ah i see
Sani (Tethering is awful) is now Offline.

BassieEnAdriaan

  • Veteran Beta Tester
  • *****
  • Karma: -9
  • Offline Offline
  • Posts: 1456
    • Don't click this buddy
Re: Can't download GG2 due to PHP error
« Reply #3 on: May 24, 2010, 05:56:11 am »

http://www.mediafire.com/?tzoxvty5kh2 Someone already said so in the irc yesterday so I uploaded it to mediafire.
Logged

MedO

  • Owns this place
  • *****
  • Karma: 151
  • Offline Offline
  • Posts: 1751
Re: Can't download GG2 due to PHP error
« Reply #4 on: May 24, 2010, 07:51:53 am »

Fixed temporarily. The problem is the same one that often reset the download counter before. The code just doesn't work well when two people start a download simultaneously, because then two processes concurrently open the dlcount.txt file and try to modify it.

Edit: The counter should be fixed for good now, it uses the actual filename of the counter file to track the downloads now. The best solution would probably be a database but this works too, since renames are atomic operations.
« Last Edit: May 24, 2010, 08:29:21 am by MedO »
Logged
Quote from: Alfred North Whitehead
It is the business of the future to be dangerous; and it is among the merits of science that it equips the future for its duties.

Quote from: John Carmack
[...] if you have a large enough codebase, any class of error that is syntactically legal probably exists there.

NAGN

  • Developer
  • ******
  • Karma: 146
  • Offline Offline
  • Posts: 16382
  • Yeah so now I have an idea
Re: Can't download GG2 due to PHP error
« Reply #5 on: May 24, 2010, 09:13:46 pm »

so did the counter reset or what?
Logged

MedO

  • Owns this place
  • *****
  • Karma: 151
  • Offline Offline
  • Posts: 1751
Re: Can't download GG2 due to PHP error
« Reply #6 on: May 25, 2010, 12:57:46 am »

No, only 500 people ever downloaded it.  :hehe:
Logged
Quote from: Alfred North Whitehead
It is the business of the future to be dangerous; and it is among the merits of science that it equips the future for its duties.

Quote from: John Carmack
[...] if you have a large enough codebase, any class of error that is syntactically legal probably exists there.

AcidLead

  • The Flash of the Action
  • Veteran Beta Tester
  • *****
  • Karma: 103
  • Offline Offline
  • Posts: 6635
  • Our hero returns triumphant. Execute him at once.
Re: Can't download GG2 due to PHP error
« Reply #7 on: May 25, 2010, 08:07:44 am »

No, only 500 people ever downloaded it.  :hehe:
WOO HOO I'M PART OF A MINOR AND EXTREMELY ELITIST GROUP
Logged
fire at cyberdisc
eighty-five percent hit chance
doh, she missed the shot
Pages: [1]
 

Page created in 0.044 seconds with 35 queries.