EU Realmstatus not working since 1.7.1

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

EU Realmstatus not working since 1.7.1

Postby RiZLA » Wed Oct 25, 2006 3:01 pm

The Realm Status img worked fine in 1.7.0, but since upgrading to 1.7.1, it no longer appears.

US works fine, but when choosing any european Realmstatus URL, there is no picture, just the text "WoW Server Status"

Realmstatus URL: >European English<
Realm: Bronzebeard

I did notice what may be a typo in realmstatus.php > "Maitenence", not sure if that means anything?
RiZLA
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Fri Oct 06, 2006 11:18 pm

EU Realmstatus not working since 1.7.1

Postby zanix » Wed Oct 25, 2006 3:05 pm

Links, we need links
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: EU Realmstatus not working since 1.7.1

Postby shaun.voysey » Wed Oct 25, 2006 3:18 pm

zanix wrote:Links, we need links


Been having the Same Problem. Works fine if I set to US. So I'm assuming it is an HTML parsing error.

Have not had time to parse the files with fput statements like I did with the [1.7.0] version. :)


Diablo Roster
User avatar
shaun.voysey
WR.net Apprentice
WR.net Apprentice
 
Posts: 70
Joined: Thu Aug 10, 2006 12:50 pm
Location: Berkshire, England

EU Realmstatus not working since 1.7.1

Postby zanix » Wed Oct 25, 2006 3:37 pm

view realmstatus.php by itself in a new window
Code: Select all
PHP has encountered a Stack overflow

Nice error, I'm not sure exactly what it means
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: EU Realmstatus not working since 1.7.1

Postby shaun.voysey » Wed Oct 25, 2006 5:26 pm

zanix wrote:view realmstatus.php by itself in a new window
Code: Select all
PHP has encountered a Stack overflow

Nice error, I'm not sure exactly what it means



Zanix, The Problem seems to lie in the Preg_match functions. my 'fwrites()' go up to there, but no further.

Hope this helps. :mrgreen:
Last edited by shaun.voysey on Wed Oct 25, 2006 5:43 pm, edited 1 time in total.
User avatar
shaun.voysey
WR.net Apprentice
WR.net Apprentice
 
Posts: 70
Joined: Thu Aug 10, 2006 12:50 pm
Location: Berkshire, England

EU Realmstatus not working since 1.7.1

Postby [PUPPETS]Gonzo » Wed Oct 25, 2006 8:21 pm

Well, Blizzard has an http 500 error for http://www.wow-europe.com/de/serverstatus/ ATM - this might be the reason ;)
User avatar
[PUPPETS]Gonzo
WR.net Apprentice
WR.net Apprentice
 
Posts: 50
Joined: Tue Aug 22, 2006 12:46 am
Location: Frankfurt, Germany

Re: EU Realmstatus not working since 1.7.1

Postby shaun.voysey » Wed Oct 25, 2006 8:41 pm

Glenmorangie wrote:Well, Blizzard has an http 500 error for http://www.wow-europe.com/de/serverstatus/ ATM - this might be the reason ;)


Nope. It just makes my roster Realm status come up with an Offline image instead of nothing. Already looked at that. :)

It is quite interesting to see what comes up in the $html variable with a few well plaaced fwrite commands in the script. Hence I know it is stalling around the preg_match statements. Could the preg_match have an upper limit for the Searched variable? 170k could be a bit steep for some home grown Web servers.
User avatar
shaun.voysey
WR.net Apprentice
WR.net Apprentice
 
Posts: 70
Joined: Thu Aug 10, 2006 12:50 pm
Location: Berkshire, England

EU Realmstatus not working since 1.7.1

Postby zanix » Wed Oct 25, 2006 10:50 pm

It's possible

Maybe it can be changed to only grab a chunk of the code surrounding the server name

I really wish the EU site would use an xml file, then all our problems would be solved
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: EU Realmstatus not working since 1.7.1

Postby shaun.voysey » Fri Oct 27, 2006 5:11 pm

With a little more Digging (and a bit of Learning on the Regular Expresions). I have tracked this problem to the First preg_match search string. Why the Error? :scratch: I'm not sure. Though the repetative nature of the string could be the main problem.

I have modified the Realmstatus.php on my site with a little of the old and new mixed together.

By using substr and strpos to strip out 800 characters out of $html and using the preg_match_all statement. I have, at this moment a working European Realmststus. Will need to wait for Wednesday to see if it will show up with an Offline Image though.

I have attached the File (Use at your own risk). I would suggest you back up the old realmstatus.php first. :mrgreen:

By the way. for those interested. I'm running a Win2003 Server.
Attachments
eu (html) realmstatus fix.zip
Fix for the European Realmstatus problem.
(4.21 KiB) Downloaded 220 times
Last edited by shaun.voysey on Fri Oct 27, 2006 6:01 pm, edited 1 time in total.
User avatar
shaun.voysey
WR.net Apprentice
WR.net Apprentice
 
Posts: 70
Joined: Thu Aug 10, 2006 12:50 pm
Location: Berkshire, England

Re: EU Realmstatus not working since 1.7.1

Postby lithanos » Sat Oct 28, 2006 12:32 am

question for ya shaun.voysey.

I too run on eonar. Thought maybe your modded realmstatus.php would solve the problem for me. Seems it didnt. causes a "no ststus" for me.
I notice your eonar tag is working. Any ideas?
i am Playing on a US server

GhostRoster
Last edited by lithanos on Sun Oct 29, 2006 2:32 am, edited 1 time in total.
lithanos
WR.net Apprentice
WR.net Apprentice
 
Posts: 18
Joined: Tue Jul 04, 2006 7:34 pm

Re: EU Realmstatus not working since 1.7.1

Postby shaun.voysey » Sun Oct 29, 2006 1:16 pm

lithanos wrote: I too run on eonar. Thought maybe your modded realmstatus.php would solve the problem for me. Seems it didnt. causes a "no ststus" for me.
I notice your eonar tag is working. Any ideas?

i am Playing on a US server


The US uses the .XML system. my fix is for the European side which still uses .html.

Double check you database setup, especially the <prefix>_Realmstatus table. Make sure you are using the Correct table for 1.7.1.
User avatar
shaun.voysey
WR.net Apprentice
WR.net Apprentice
 
Posts: 70
Joined: Thu Aug 10, 2006 12:50 pm
Location: Berkshire, England

EU Realmstatus not working since 1.7.1

Postby RiZLA » Sun Oct 29, 2006 4:18 pm

Thanks for the fix!

It does appear to be working. :)
RiZLA
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Fri Oct 06, 2006 11:18 pm

Re: EU Realmstatus not working since 1.7.1

Postby zanix » Sun Oct 29, 2006 6:03 pm

lithanos wrote:question for ya shaun.voysey.

I too run on eonar. Thought maybe your modded realmstatus.php would solve the problem for me. Seems it didnt. causes a "no ststus" for me.
I notice your eonar tag is working. Any ideas?
i am Playing on a US server

GhostRoster

allow_url_fopen is Off on your server
So your server cannot get the info from blizz's site

This is a setting in php's config and is set by the web host
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: EU Realmstatus not working since 1.7.1

Postby lithanos » Mon Oct 30, 2006 12:27 am

shaun.voysey wrote:Double check you database setup, especially the <prefix>_Realmstatus table. Make sure you are using the Correct table for 1.7.1.


Ok i think that one is a bit over my head. I did a fresh install so unless it was packed wrong which i REALLY doubt. I dont know of zanix ever packing anything wrong. Its the right version im sure of it. lol im just a NuB when it comes to web design. I learn the hard way of trial and error and still not a clue on wth i did 8)

allow_url_fopen is Off on your server
So your server cannot get the info from blizz's site

This is a setting in php's config and is set by the web host


If this was set by the web host will i have to talk with them to get it fixed?
Is the realmstatus different in 1.71 then it was in 1.70? Im 1.70 it worked only stopped working when i did a fresh install of 1.71.

Thank you guys i appreciate your time and your help
lithanos
WR.net Apprentice
WR.net Apprentice
 
Posts: 18
Joined: Tue Jul 04, 2006 7:34 pm


Return to General Support & Feedback

Who is online

Users browsing this forum: No registered users and 1 guest

cron