Realm name not appearing correctly in all places

Posts from previous Beta sessions

Realm name not appearing correctly in all places

Postby Gaxme » Wed Oct 10, 2007 1:14 am

I apologize if this is addressed anywhere else. I did a few searches, and couldn't find anyone with the same problem.

If I use the addon for viewing memberlists, everything works correctly after upload, whether from characterprofiler.lua or armorysync. I've tried both. For example: http://www.vestramater.com/roster_20b/i ... emberslist

However, the main pages, realm status, and everything else appear to be pulling a truncated version of our server name, Azjol-Nerub, as just Azjol.

Example, clicking on Realm Guilds, or Realm Members:
http://www.vestramater.com/roster_20b/i ... m=US-Azjol

Going to the homepage works fine, so long as it's set to default to Guild-Memberlist. Anything server related fails in the same way, with a truncated name.

I am running all the latest addon versions as of today (9 Oct), and can give server stats, though I am fairly certain there are no blocked ports, and no other issues.

I've had this for the last few SVN builds I've installed, and am currently running 1389. I have wiped out the database and filesystem, reinstalled and reuploaded data a few times, that's never fixed it, so I can be fairly certain it is not an incremental-upgrade bug.

Any help would be appreciated.

Gax
Gaxme
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 74
Joined: Mon Jul 10, 2006 3:54 am

Realm name not appearing correctly in all places

Postby zanix » Wed Oct 10, 2007 1:44 am

Can you do me a favor
Open lib/roster.php
Find line 273
Code: Select all
list($region$realm) = explode('-',$realm); 

Add After
Code: Select all
print $realm
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

Realm name not appearing correctly in all places

Postby PleegWat » Wed Oct 10, 2007 1:48 am

Problem found, fixed, and committed.

This is related to the fact - is used as a separator between region identifier and realm name. Replace every occurrance of
Code: Select all
explode('-',$realm)

in lib/roster.php by
Code: Select all
explode('-',$realm,2)
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: Realm name not appearing correctly in all places

Postby Gaxme » Wed Oct 10, 2007 1:56 am

Massively fast response. Thank you! Committing the changes now, will get back to you momentarily.

G.
Gaxme
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 74
Joined: Mon Jul 10, 2006 3:54 am

Re: Realm name not appearing correctly in all places

Postby Gaxme » Wed Oct 10, 2007 1:59 am

I'm assuming I also need to change:

Code: Select all
list($region, $realm) = explode('-',$_GET['realm']);


as well?

G.
Gaxme
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 74
Joined: Mon Jul 10, 2006 3:54 am

Re: Realm name not appearing correctly in all places

Postby Gaxme » Wed Oct 10, 2007 2:03 am

All replaced, including $_GET explodes, working as intended.

Thank you.

G.
Gaxme
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 74
Joined: Mon Jul 10, 2006 3:54 am

Re: Realm name not appearing correctly in all places

Postby Gaxme » Wed Oct 10, 2007 2:07 am

Whoops, one exception. The realm status is still not loading correctly. I'll hunt around for explodes.

I replaced the two explode lines in realmstatus.php, and a direct interaction with the file gives correct information:

http://www.vestramater.com/roster_20b/r ... zjol-Nerub

Now to find the update.

G.
Last edited by Gaxme on Wed Oct 10, 2007 2:12 am, edited 1 time in total.
Gaxme
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 74
Joined: Mon Jul 10, 2006 3:54 am


Return to Archived

Who is online

Users browsing this forum: No registered users and 1 guest

cron