[Trac] Problem with Schedule detail page on 700 and beta

Hi

I’ve got an issue on the Schedule Details page in both the 700 and beta versions, with an IE error saying:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; FDM)

Timestamp: Sat, 31 Oct 2009 19:21:51 UTC

Message: ‘weatherObservation’ is null or not an object

Line: 45

Char: 5

Code: 0

URI: phpvms.js

Message: Object doesn’t support this property or method

Line: 1

Char: 1

Code: 0

URI: http://ws.geonames.org/weatherIcaoJSON?ICAO=EGHQ&callback=jsonp1257016818479&_=1257016818650

The page is then displaced to the left, but is less noticable on the default skin than on my custom skin.  It appears there was a </div> missing in schedule_details.tpl, but that hasn’t solved the whole solution.

Has anyone come across this?

Thanks

Hmm, looks like they changed their format.

Hi Nabeel

I’ve made another discovery - this error message also happens on the Schedule Briefing page, but it doesn’t affect the page moving to the left of the screen.  So I made 2 blank templates, one for route_map.tpl and one for schedule_details.tpl, so that nothing would show on the page, and it is still moving the details page to the left.  Now I would be prompted to take a look into the header.tpl, however the header is working fine on all other pages.  If it helps to show what I’m on about, I can give you a login to my beta site which has the same issue.

Can you see if it’s happening on the dev site?

http://dev.phpvms.net

I’m assuming you mean where the metar shows - there’s a div with the class “metar”, if you remove that div (or rename the class), then it won’t try to load the weather. See if that works

I’ve removed the metar information from the briefing page as it’s US only, but I still get the error.  Its not really a problem as it doesnt show unless you “view error details”, but obviously it may be affecting others.

I’ve signed up to the dev site - just waiting for approval and I’ll check the schedule details page.

Yes it does the same thing on the dev site as well - the whole page shifts to the left so there’s no white bar down the left like on the other pages.

I see the shifting on the route page, I’ll fix that. But I don’t see any javascript errors on either page?

Thanks, and no there’s no errors - looks like that part is fixed in the latest beta - the error only shows on version 700.

Hmm, I think I have it fixed now on the dev site. Forced IE out of quirks mode with

<meta http-equiv=“x-ua-compatible” content="IE=7

I’ll leave it open still for now, let me know. The shifting seems to be a CSS thing

Was the fix for the error or the shifting, as I’m still getting the shifting on IE8.  Not got IE7 or before to test on.

Shifting. I’m not seeing the other error

Yup ok - still getting the shifting.

Refer to http://bugs.phpvms.net/ticket/1

Thanks will do

Can someone help me fix this? I don’t have the time right now to sit with IE8 and figure out what the deal is.

IE 8 (and 7 and 6 etc.) all have CSS problems…

See if any of the problems your having has something to do with the ones found here:

http://www.positioniseverything.net/explorer.html

Yeah, I was hoping someone would be able to check it out for me if they’ve fixed those issues for their own site, I’m bogged down. Cool site, though, thanks

Hi all

This is still happening on this page only, and appears to be worst on IE, but I’ve just checked Chrome and theres a big white bar down the bottom of the page in the footer, again only on this page, so it looks like there’s a problem with this page in that browser too.  I’m checking over the files as well.  The 2 templates aren’t at fault because you can disable them in the Schedules.php file and the problem remains.  I don’t think it’s a CSS problem otherwise the other pages would act the same.

Will keep you posted on what I find.

EDIT: Ok it also doesn’t appear to be the function either.  Am stumped on this one.