Author Topic: WUGraphs not working....  (Read 814 times)

0 Members and 1 Guest are viewing this topic.

Offline DW7240

  • Senior Contributor
  • ****
  • Posts: 225
    • The Vicarage Weather Feed
WUGraphs not working....
« on: June 19, 2014, 07:30:08 PM »
Anybody else noticed about the WUGraphs script not working since the WU Site upgrade, WUHistory works fine.  Check my site under the graphs page and see what I mean.  All it does is display a small menu, then another larger menu on a new page, then a page not found error.

Any clues or ET on update to script ?

Thanks for any assistance as ever.

Nick.


Offline CamarilloWX

  • CamarilloWX
  • Senior Contributor
  • ****
  • Posts: 184
    • Camarillo Weather
Re: WUGraphs not working....
« Reply #1 on: June 19, 2014, 11:30:28 PM »
I was having an issue although I can't remember if it was exactly the same as you describe.  When I first noticed it I launched the page and had some warnings load at the top but I did not note what they were. After that I would try the page and it wouldn't load anything other then the standard banner, menu, etc. I almost posted a similar question to yours when it just suddenly started working but a little slower then it had been.  I looked at my page and your page with ?debug=y and I am still getting warnings and so are you.  One of your warnings is regarding the style switcher which I normally have disabled.  I enabled it to see if that might be related but it didn't make any difference.  We are both running the same version of the script so I am not sure why mine works and yours does not.  PHP version?  Sorry I don't have a solution or any ideas but I wanted to let you know that you are not the only one that saw an issue.
Eric

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: WUGraphs not working....
« Reply #2 on: June 20, 2014, 03:25:38 AM »
Anybody else noticed about the WUGraphs script not working since the WU Site upgrade, WUHistory works fine.  Check my site under the graphs page and see what I mean.  All it does is display a small menu, then another larger menu on a new page, then a page not found error.
Any clues or ET on update to script ?
Thanks for any assistance as ever.
Nick.
The WU changes do not affect this script of the WU history pages (so far).

You can check the javascript errors by "inspect"-ing the offending page, example: right click in Chrome and choose inspect.

Code: [Select]
Uncaught TypeError: undefined is not a function dw7240.com/Base-Canada/wxwugraphs.php:145
It is little bit difficult to debug your page as the original "stand-alone" script is missing from the download. But one can call each graph on its own:
http://dw7240.com/Base-Canada/wxwugraphs/graphm1a.php
and then select all graphs from the drop-down menu and they all work as advertised.

So the error is NOT in the wxwugraphs but in the code on the page for the Saratoga template.

Probably a missing $(document).ready or another missing javascript.

Succes, Wim

PS These errors should also be removed:
Code: [Select]
Failed to load resource: the server responded with a status of 404 (Not Found) http://dw7240.com/Base-Canada/mp/audio-player3.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://dw7240.com/realtime.txt
GET http://dw7240.com/realtime.txt?1403248825450 404 (Not Found) ajaxCUwx.js:948
The realtime text and the ajax cu javascript is continuasly loaded every 3 seconds? but never found

 

anything