guildinfo issue

Displays the text from the Guild Information button

guildinfo issue

Postby Gator81 » Fri Sep 09, 2011 11:57 pm

before giving extreme details, i figure i would ask a smaller question first.

can the php or apache versions keep the guild info bargraph from working properly?

I have been working with the latest version of xampp, and the bargraph is working. I use the same versions and installed on a isp and the bargraph will not work, it gives a RosterGD error line: 24. when i run debug it seems to show that there is a guildinfo problem and that i dont have it installed right.
Code: Select all
addons/guildinfo/guild/index.php
  Notice line 426: Use of undefined constant JSON_HEX_TAG - assumed 'JSON_HEX_TAG'
  Notice line 426: Use of undefined constant JSON_HEX_APOS - assumed 'JSON_HEX_APOS'
  Notice line 426: Use of undefined constant JSON_HEX_QUOT - assumed 'JSON_HEX_QUOT'
  Notice line 426: Use of undefined constant JSON_HEX_AMP - assumed 'JSON_HEX_AMP'
  Warning line 426: json_encode() expects exactly 1 parameter, 2 given
  Notice line 426: Use of undefined constant JSON_HEX_TAG - assumed 'JSON_HEX_TAG'
  Notice line 426: Use of undefined constant JSON_HEX_APOS - assumed 'JSON_HEX_APOS'
  Notice line 426: Use of undefined constant JSON_HEX_QUOT - assumed 'JSON_HEX_QUOT'
  Notice line 426: Use of undefined constant JSON_HEX_AMP - assumed 'JSON_HEX_AMP'
  Warning line 426: json_encode() expects exactly 1 parameter, 2 given
  Notice line 364: Undefined index: alt
  Notice line 371: Undefined index: nonalt
  Notice line 364: Undefined index: alt
  Notice line 371: Undefined index: nonalt
  Notice line 371: Undefined index: nonalt
  Notice line 364: Undefined index: alt
  Notice line 371: Undefined index: nonalt
  Notice line 364: Undefined index: alt
  Notice line 371: Undefined index: nonalt
  Notice line 371: Undefined index: nonalt
  Notice line 371: Undefined index: nonalt
  Notice line 371: Undefined index: nonalt
  Notice line 371: Undefined index: nonalt
  Notice line 371: Undefined index: nonalt
  Notice line 423: Undefined index: alt
  Notice line 423: Undefined index: alt
  Notice line 423: Undefined index: alt
  Notice line 423: Undefined index: alt
  Notice line 423: Undefined index: alt
  Notice line 423: Undefined index: alt
  Notice line 426: Use of undefined constant JSON_HEX_TAG - assumed 'JSON_HEX_TAG'
  Notice line 426: Use of undefined constant JSON_HEX_APOS - assumed 'JSON_HEX_APOS'
  Notice line 426: Use of undefined constant JSON_HEX_QUOT - assumed 'JSON_HEX_QUOT'
  Notice line 426: Use of undefined constant JSON_HEX_AMP - assumed 'JSON_HEX_AMP'
  Warning line 426: json_encode() expects exactly 1 parameter, 2 given
 


when i talked to the isp they had just updated the apache servers and it seem to affect any .htaccess files but other then that i dont know. If you need all the detail about php versions and sql versions i can get it all togather.

also when i run a roster diag i get alot of not included in svc but things seem to be working.

ty for any help
Gator81
WR.net Journeyman
WR.net Journeyman
 
Posts: 115
Joined: Fri Jun 01, 2007 4:44 am

Re: guildinfo issue

Postby Ulminia » Sat Sep 10, 2011 2:13 am

what version of php you running?
Ulminia of Zangarmarsh
Zonous of Zangarmarsh
Author of Roster Gallery
WoWRoster-Profiler Redesigner
User avatar
Ulminia
WoWRoster.net Dev Team
WoWRoster.net Dev Team
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 1223
Joined: Tue Jul 04, 2006 4:41 pm
Location: New Brunswick, Canada
Realm: Zangarmarsh (PvE) - US
gmail/gtalk: ulminia@gmail.com

Re: guildinfo issue

Postby Gator81 » Sat Sep 10, 2011 4:49 am

roster diag says:

PHP Version 5.2.14
PHP API Type cgi-fcgi
safe_mode Off
open_basedir Off
allow_url_fopen On
file_uploads On
upload_max_filesize 8M

sql:

OS Linux
Server Software Apache
MySQL Version 5.0.91-log

gd support:

GD Status On
GD Version bundled (2.0.34 compatible)
FreeType Support Yes
FreeType Linkage with freetype
T1Lib Support No
GIF Read Support Yes
GIF Create Support Yes
JPG Support Yes
PNG Support Yes
WBMP Support Yes
XPM Support No
XBM Support Yes
JIS-mapped Japanese Font Support No

config values:

version 2.1.0
db_version 6
db_prefix roster_
debug_mode On
roster_lang enUS
img_url img/
interface_url http://www.wowroster.net/
img_suffix png
use_update_triggers On
rs_display full

figured i would add the extra info.
Gator81
WR.net Journeyman
WR.net Journeyman
 
Posts: 115
Joined: Fri Jun 01, 2007 4:44 am

Re: guildinfo issue

Postby Ulminia » Sat Sep 10, 2011 4:29 pm

ok there is no data being built for the bars... have to checked the settings in the admin section ? also alt location has to be set in the memebrs list config...
also post your sql queries...
Ulminia of Zangarmarsh
Zonous of Zangarmarsh
Author of Roster Gallery
WoWRoster-Profiler Redesigner
User avatar
Ulminia
WoWRoster.net Dev Team
WoWRoster.net Dev Team
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 1223
Joined: Tue Jul 04, 2006 4:41 pm
Location: New Brunswick, Canada
Realm: Zangarmarsh (PvE) - US
gmail/gtalk: ulminia@gmail.com

Re: guildinfo issue

Postby zanix » Sat Sep 10, 2011 6:43 pm

http://php.net/manual/en/function.json-encode.php
Code: Select all
5.3.0 The options parameter was added.


Looks like the second parameter to json_encode() is only for PHP 5.3

Try replacing this line in addons/guildinfo/guild/index.php
Code: Select all
$req = 'bargraphnew.php?data=' . urlencode(json_encode($req,JSON_HEX_TAG|JSON_HEX_APOS|JSON_HEX_QUOT|JSON_HEX_AMP));


With this
Code: Select all
$req = 'bargraphnew.php?data=' . urlencode(json_encode($req));
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: guildinfo issue

Postby zanix » Sat Sep 10, 2011 7:00 pm

Just tested myself and it seems to work, adding to SVN
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: guildinfo issue

Postby Ulminia » Sat Sep 10, 2011 7:44 pm

nice catch..
Ulminia of Zangarmarsh
Zonous of Zangarmarsh
Author of Roster Gallery
WoWRoster-Profiler Redesigner
User avatar
Ulminia
WoWRoster.net Dev Team
WoWRoster.net Dev Team
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 1223
Joined: Tue Jul 04, 2006 4:41 pm
Location: New Brunswick, Canada
Realm: Zangarmarsh (PvE) - US
gmail/gtalk: ulminia@gmail.com

Re: guildinfo issue

Postby Gator81 » Sat Sep 10, 2011 9:58 pm

at first i couldnt get that to work and then i found out that there are 2 of those lines in the file, i went and changed them both and it is now working for me too :)

With the debug on i seem to be still getting some php errors with the index file, please goto the link and look at guild info and scroll at bottom.

http://www.gswamp/roster/index.php

should show this

Code: Select all
PHP Errorsaddons/guildinfo/guild/index.php
  Notice line 364: Undefined index: alt
  Notice line 371: Undefined index: nonalt
  Notice line 364: Undefined index: alt
  Notice line 371: Undefined index: nonalt
  Notice line 371: Undefined index: nonalt
  Notice line 364: Undefined index: alt
  Notice line 371: Undefined index: nonalt
  Notice line 364: Undefined index: alt
  Notice line 371: Undefined index: nonalt
  Notice line 371: Undefined index: nonalt
  Notice line 371: Undefined index: nonalt
  Notice line 371: Undefined index: nonalt
  Notice line 371: Undefined index: nonalt
  Notice line 371: Undefined index: nonalt
  Notice line 423: Undefined index: alt
  Notice line 423: Undefined index: alt
  Notice line 423: Undefined index: alt
  Notice line 423: Undefined index: alt
  Notice line 423: Undefined index: alt
  Notice line 423: Undefined index: alt
Gator81
WR.net Journeyman
WR.net Journeyman
 
Posts: 115
Joined: Fri Jun 01, 2007 4:44 am

Re: guildinfo issue

Postby Ulminia » Sun Sep 11, 2011 2:52 am

yea that has to do with an array with out defaults set.... looking into it now..
Ulminia of Zangarmarsh
Zonous of Zangarmarsh
Author of Roster Gallery
WoWRoster-Profiler Redesigner
User avatar
Ulminia
WoWRoster.net Dev Team
WoWRoster.net Dev Team
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 1223
Joined: Tue Jul 04, 2006 4:41 pm
Location: New Brunswick, Canada
Realm: Zangarmarsh (PvE) - US
gmail/gtalk: ulminia@gmail.com

Re: guildinfo issue

Postby Gator81 » Sun Sep 11, 2011 4:44 am

ok, thanks, i didnt know and wanted to bring it to your attention....
Gator81
WR.net Journeyman
WR.net Journeyman
 
Posts: 115
Joined: Fri Jun 01, 2007 4:44 am

Re: guildinfo issue

Postby Ulminia » Sun Sep 11, 2011 5:14 am

replace row 350 - 357 in guild/index.php with this
Code: Select all
      while ($rowd = $roster->db->fetch($resultd))
      {
         $dat[$rowd['guild_title']]['name']=$rowd['guild_title'];
         $dat[$rowd['guild_title']]['alt']='0';
         $dat[$rowd['guild_title']]['nonalt']='0';   
      }
Ulminia of Zangarmarsh
Zonous of Zangarmarsh
Author of Roster Gallery
WoWRoster-Profiler Redesigner
User avatar
Ulminia
WoWRoster.net Dev Team
WoWRoster.net Dev Team
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 1223
Joined: Tue Jul 04, 2006 4:41 pm
Location: New Brunswick, Canada
Realm: Zangarmarsh (PvE) - US
gmail/gtalk: ulminia@gmail.com

Re: guildinfo issue

Postby Gator81 » Sun Sep 11, 2011 9:32 am

I dont mean to be someone that is causing more work but i did the change you requested and this is what i have:
when i goto guild and click on guildinfo i get the same errors from all the tabs
when i click on guild then members or honor or members log i get:
Code: Select all
cache/tpl_default_memberslist#memberslist.html.inc
  Notice line 52: Undefined index: B_PAGINATION

If i click on stats i get a little more of an error:
Code: Select all
addons/memberslist/guild/statslist.php
  Notice line 333: Undefined variable: current
  Notice line 333: Undefined variable: current
cache/tpl_default_memberslist#memberslist.html.inc
  Notice line 52: Undefined index: B_PAGINATION


the new php looks to be giving you alot of trouble....i am sorry, its what the isp has upgraded to :(

i thank you for looking this over, if i need to i will just wait untill the other stuff comes out...just passing on what i have found.
Gator81
WR.net Journeyman
WR.net Journeyman
 
Posts: 115
Joined: Fri Jun 01, 2007 4:44 am

Re: guildinfo issue

Postby Ulminia » Sun Sep 11, 2011 2:34 pm

roster paganation..... ial see what i can get for a fix
Ulminia of Zangarmarsh
Zonous of Zangarmarsh
Author of Roster Gallery
WoWRoster-Profiler Redesigner
User avatar
Ulminia
WoWRoster.net Dev Team
WoWRoster.net Dev Team
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 1223
Joined: Tue Jul 04, 2006 4:41 pm
Location: New Brunswick, Canada
Realm: Zangarmarsh (PvE) - US
gmail/gtalk: ulminia@gmail.com

Re: guildinfo issue

Postby Gator81 » Sun Sep 11, 2011 6:56 pm

I am sorry for finding all this stuff, i feel that i am keeping you from getting more important stuff done :(
Gator81
WR.net Journeyman
WR.net Journeyman
 
Posts: 115
Joined: Fri Jun 01, 2007 4:44 am

Re: guildinfo issue

Postby zanix » Sun Sep 11, 2011 7:36 pm

Bug reports are good, and I don't think any of them are insignificant.
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

Next

Return to GuildInfo

Who is online

Users browsing this forum: No registered users and 0 guests

cron