Need Help Troubleshooting RealmStatus

Requests, feedback, and general discussion about WoWRoster
DO NOT post topics about WoWRoster AddOns here!

Need Help Troubleshooting RealmStatus

Postby Nelinaa » Tue Dec 19, 2006 6:55 pm

I need some help troubleshooting a problem with the RealmStatus plugin for my roster, which can be seen here:

http://www.powerandtheglory.net/roster/index.php

As you can see, it says "No Status" and has not worked since I upgraded the forums to 1.7.1.

In checking the MySQL table, I notice that there is no data in the "roster_realmstatus" table. The structure looks to be correct, but there are no records in the table. My guess is that something is not right with the scrape of Blizzard's XML file, but I'm not sure how to check that.

Any suggestions?

BTW, I have done some searching on the forums, but haven't found much in the way of clues as to my problem. Cenarion Circle is on a US server, and doesn't have any accents or special characters that other folks were having problems with.
Last edited by Nelinaa on Tue Dec 19, 2006 7:07 pm, edited 1 time in total.
Nelinaa
WR.net Apprentice
WR.net Apprentice
 
Posts: 13
Joined: Sat Jul 29, 2006 12:12 am

Need Help Troubleshooting RealmStatus

Postby shaun.voysey » Tue Dec 19, 2006 7:07 pm

Nelinaa,

At this moment in time, If you are on a European Server, I would not try and fix the Status plugin until wow-europe get their act together, and finally fix The RealmStatus page. :) It's been down all week.

If you are on a US Server and running on a Windows Server. There is a known problem with Regular Expressions which contain a lot of recursion.
I have posted on another thread, a version of the Realmstatus page, that I use myself. Though my Roster is on a European Server that currently says down. :)
User avatar
shaun.voysey
WR.net Apprentice
WR.net Apprentice
 
Posts: 70
Joined: Thu Aug 10, 2006 12:50 pm
Location: Berkshire, England

Re: Need Help Troubleshooting RealmStatus

Postby Nelinaa » Tue Dec 19, 2006 7:10 pm

Thanks for the quick reply. I edited my original post, probably while you were typing your reply. A note to those who jump to the last reply in the thread:

My roster is running on a *nix server, not Windows, and is trying to get status from a US realm. ;)
Nelinaa
WR.net Apprentice
WR.net Apprentice
 
Posts: 13
Joined: Sat Jul 29, 2006 12:12 am

Need Help Troubleshooting RealmStatus

Postby Nelinaa » Tue Dec 19, 2006 7:46 pm

Another problem that I am encountering with the upgraded 1.7.1 roster is the following error message that I receive when running the Roster Config Diagnostic:

DB Error, could not list tables
MySQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-1' at line 1


Diagnostics report the following variables relevant to the RealmStatus addon:
Code: Select all
server_name_comp     Off
guild_name            The Power and the Glory
server_name           Cenarion Circle
use_update_triggers    On
realmstatus_url       http://www.worldofwarcraft.com/realmstatus/status.xml
realmstatus           Uses server_name
rs_mode               On
Nelinaa
WR.net Apprentice
WR.net Apprentice
 
Posts: 13
Joined: Sat Jul 29, 2006 12:12 am

Need Help Troubleshooting RealmStatus

Postby zanix » Tue Dec 19, 2006 9:43 pm

Seems to be working for me at the moment
http://cvsroster.homeip.net/roster1x/tr ... status.php

Do me a favor, change the following things in realmstatus, and view it by itself and give me the results

realmstatus.php
Find
Code: Select all
$timer 10

Replace
Code: Select all
$timer 1

This makes the script get status on every refresh

Find
Code: Select all
        if( $xml_parse->parse($url) )
        { 

Replace
Code: Select all
        if( $xml_parse->parse($url) )
        {
            
print_r($xml_parse->output);die(); 

This will cause realmstatus to spit out the contents of the xml feed
Attatch the output as a text file, if any
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: Need Help Troubleshooting RealmStatus

Postby Nelinaa » Wed Dec 20, 2006 5:57 pm

I've made the suggested edits to a renamed file:

http://www.powerandtheglory.net/roster/realmstatus2.php

As you can see, it does not produce a text file, which makes me suspect that the program is not actually able to get to the XML feed for some reason... :scratch:
Nelinaa
WR.net Apprentice
WR.net Apprentice
 
Posts: 13
Joined: Sat Jul 29, 2006 12:12 am

Need Help Troubleshooting RealmStatus

Postby zanix » Thu Dec 21, 2006 12:13 am

allow_url_fopen is on for your server
This is the only setting that I would think is restricting realmstatus
Unless you have CURL on your server and it's not working correctly

Realmstatus tries curl first before fopen
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: Need Help Troubleshooting RealmStatus

Postby Nelinaa » Thu Dec 21, 2006 1:19 am

Here's the thing: it was working on this server before upgrading to 1.7.2. What changed in RealmStatus between .1 and .2? Anything?

After doing some more "debugging" I've discovered that "$realmData" appears to be unset or empty. I tested this a variety of ways, eventually leading me back to find that "$url" was empty as well.

Code: Select all
// URL for status page
   $url = $roster_conf['realmstatus_url'];
        print_r ($url->output);die();


The above gets a blank page. It's possible that I'm not using the debug code correctly, because I'm relatively new to PHP, but something's not right...
Nelinaa
WR.net Apprentice
WR.net Apprentice
 
Posts: 13
Joined: Sat Jul 29, 2006 12:12 am

Need Help Troubleshooting RealmStatus

Postby zanix » Thu Dec 21, 2006 2:50 am

Try this
Code: Select all
// URL for status page
   
$url $roster_conf['realmstatus_url'];
        
print_r ($url);die(); 

$url is a variable, not a class so it doesn't have methods

Usually something like $url->output means that $url would be an instance of a class and output would be a function (method) of that class
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

Need Help Troubleshooting RealmStatus

Postby Nelinaa » Thu Dec 21, 2006 1:16 pm

Further investigation pinpoints where my RealmStatus is failing:

Code: Select all
$xml_parse =& new xmlParser();
$err = 1;

if( $xml_parse->parse($url) )  <---fails here


For some reason, it never makes it past that first IF statement. If I'm reading the code right, this sets $err = 1, which executes the rest of the code, but writing nothing to the database.

How would I go about troubleshooting the XML parser?

BTW, I did discover that curl was not enabled in PHP. I enabled it, with no change. I also went into the MySQL table and manually added some data to see if the image generation was working properly. It is, as the original code now produces a server status equivalent to the data I entered manually, but no timestamp.
Last edited by Nelinaa on Thu Dec 21, 2006 1:18 pm, edited 1 time in total.
Nelinaa
WR.net Apprentice
WR.net Apprentice
 
Posts: 13
Joined: Sat Jul 29, 2006 12:12 am

Need Help Troubleshooting RealmStatus

Postby zanix » Thu Dec 21, 2006 10:10 pm

The xml parser seems to be failing

Change that part of the code
Code: Select all
$xml_parse =& new xmlParser();
$err 1;
if( 
$xml_parse->parse($url) )

To this
Code: Select all
$xml_parse =& new xmlParser();
$err 1;
$xml_parse->parse($url);
print 
$xml_parse->message;
die();
if( 
$xml_parse->parse($url) )
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: Need Help Troubleshooting RealmStatus

Postby Nelinaa » Fri Dec 22, 2006 12:07 am

Nothing prints out... :(
Nelinaa
WR.net Apprentice
WR.net Apprentice
 
Posts: 13
Joined: Sat Jul 29, 2006 12:12 am

Need Help Troubleshooting RealmStatus

Postby zanix » Fri Dec 22, 2006 5:19 am

Well crap then....
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

Need Help Troubleshooting RealmStatus

Postby Nelinaa » Fri Dec 22, 2006 12:45 pm

Ack! Don't give up! We're soooo close, I can smell the updated RealmStatus! Perhaps something's changed in the xmlparser from .1 to .2?
Nelinaa
WR.net Apprentice
WR.net Apprentice
 
Posts: 13
Joined: Sat Jul 29, 2006 12:12 am

Need Help Troubleshooting RealmStatus

Postby zanix » Fri Dec 22, 2006 11:39 pm

I'm not giving up yet...
I am just out of ideas for the moment
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 General Support & Feedback

Who is online

Users browsing this forum: No registered users and 1 guest

cron