1286 : gzopen error?

Posts from previous Beta sessions

1286 : gzopen error?

Postby prondeau » Tue Aug 28, 2007 2:26 am

Hi,

I tried to install the beta2 and I get the following error when I try to upload characterprofiler.lua :

Fatal error: Call to undefined function gzopen() in /home/web/clients/sanspeursansmur.hostarea.org/www/Roster2/lib/luaparser.php on line 111

I have probably made something wrong for I'm not used with web sites requirements and this seems to be a well documented php function (and it also happens that I miss something in english^^)...

here is the site url : http://sanspeursansmur.hostarea.org/Roster2/

could you please tell me were I'm wrong...
prondeau
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Thu Aug 16, 2007 9:00 pm

1286 : gzopen error?

Postby zanix » Tue Aug 28, 2007 2:41 am

http://us.php.net/manual/en/ref.zlib.php

Roster has always used this function, have you used previous versions of Roster before?
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

1286 : gzopen error?

Postby PleegWat » Tue Aug 28, 2007 3:59 am

Not quite true. In previous versions of roster, this module was required when using the UU gzipped upload, but not on normal uploads. However, this module is enabled on the windows binaries for php, and many linux binary distributions have it enabled as well.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

1286 : gzopen error?

Postby zanix » Tue Aug 28, 2007 5:43 am

Oh, that's right
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: 1286 : gzopen error?

Postby prondeau » Tue Aug 28, 2007 6:35 am

Yes, I tried the 1.7.3 previously. but as said PleegWat, (I checked in the 1.7.3 file before posting...) this function wasn't called in normal case and I had no issue... I just wanted to check the new beta as it was released and I would like to use the V2 after that...

my host shall run an old distribution if I'm not completly mad^^

Edit... after some further checking : zlib is disabled by my host... I'll have to find another one I think...
Last edited by prondeau on Tue Aug 28, 2007 6:57 am, edited 1 time in total.
prondeau
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Thu Aug 16, 2007 9:00 pm

1286 : gzopen error?

Postby PleegWat » Tue Aug 28, 2007 12:28 pm

The simple fix is to open luaparser.php and make the following substitutions:

gzopen => fopen
gzgets => fgets
gzeof => feof

This will remove support for gzipped uploads, but normal ones should work fine.

Please report back if it works, and what errors you get.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: 1286 : gzopen error?

Postby prondeau » Tue Aug 28, 2007 1:32 pm

thank you for this answer, I'll try it when I'm back at home and I'll post back the results
prondeau
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Thu Aug 16, 2007 9:00 pm

1286 : gzopen error?

Postby zanix » Tue Aug 28, 2007 2:05 pm

We could probably test for zlib and switch to fopen if it isn't available
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: 1286 : gzopen error?

Postby prondeau » Tue Aug 28, 2007 8:56 pm

ok, I tested the correction with fopen, feof, fgets (and fclose^^) and I can then upload normally...

thank you, I'll try to test it further once I have reinstalled the 1.7.3 : my previous host was still more limited than this one. I just wanted to test the beta version before re-installing it completely but I'm sure you have more constructive beta testers than me for I know very few about php...
prondeau
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Thu Aug 16, 2007 9:00 pm

1286 : gzopen error?

Postby zanix » Sun Oct 21, 2007 4:58 am

Fixed svn[1406]
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US


Return to Archived

Who is online

Users browsing this forum: No registered users and 1 guest

cron