cloudy

Author Topic: 404 error running WDL  (Read 2074 times)

0 Members and 1 Guest are viewing this topic.

Offline Weather Display

  • Posts: 69,315
  • Davis VP1
  • New Zealand
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 12.0
    • Weather Display
Re: 404 error running WDL
« Reply #30 on: June 01, 2012, 12:40:39 AM »
its always been like this obviously
and this is the first time anyone has noticed or reported the problem
Julian needs the icon in the premium version style sheets  that is causing the problem to be isolated, and then he will see if he can narrow it down
otherwise if its that much conern for you, which it seems that it is,  then I suggest removing it form your web site for now

Offline broadstairs

  • Stuart
  • Posts: 6,407
  • Broadstairs, Kent, UK
  • OS/Browser:
  • (Linux Mint)
  • Firefox 12.0
    • Broadstairs
Re: 404 error running WDL
« Reply #31 on: June 01, 2012, 06:29:20 AM »
Thanks Brian, for now I have left the icons out but left the style sheet in and all seems well.

Stuart

Offline Weather Display

  • Posts: 69,315
  • Davis VP1
  • New Zealand
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 12.0
    • Weather Display
Re: 404 error running WDL
« Reply #32 on: June 01, 2012, 07:02:54 AM »
it would help if the specific Icon that is causing the problem could be found

Offline broadstairs

  • Stuart
  • Posts: 6,407
  • Broadstairs, Kent, UK
  • OS/Browser:
  • (Linux Mint)
  • Firefox 12.0
    • Broadstairs
Re: 404 error running WDL
« Reply #33 on: June 01, 2012, 07:17:38 AM »
it would help if the specific Icon that is causing the problem could be found

Later today I'll have a play and see but from what I've done it would seem that any icon does it, just the mere fact of an icon statement but I'll try to prove that.

Stuart

Offline broadstairs

  • Stuart
  • Posts: 6,407
  • Broadstairs, Kent, UK
  • OS/Browser:
  • (Linux Mint)
  • Firefox 13.0
    • Broadstairs
Re: 404 error running WDL
« Reply #34 on: June 06, 2012, 06:53:30 AM »
Finally found time to do some testing on this. It seems that the problem happens when you define more than two copies of the icon image as different icons so this works

Code: [Select]
<iconRain>http://www.stella-maris.org.uk/forecast/images/ra.jpg</iconRain>
<iconWindyRain>http://www.stella-maris.org.uk/forecast/images/ra.jpg</iconWindyRain>

but this does not

Code: [Select]
<iconRain>http://www.stella-maris.org.uk/forecast/images/ra.jpg</iconRain>
<iconWindyRain>http://www.stella-maris.org.uk/forecast/images/ra.jpg</iconWindyRain>
<iconDrizzle>http://www.stella-maris.org.uk/forecast/images/ra.jpg</iconDrizzle>

It does not seem to matter which icon statements are used or the actual jpeg name. The problem is to do with the number of times the same URL is repeated within the icon statements, so twice works but thrice does not and gives the 404 error. Note to see the error you need to run something like HTTPFox extension in Firefox which traces the calls from the browser and collates that with the response.

Stuart

Offline Weather Display

  • Posts: 69,315
  • Davis VP1
  • New Zealand
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 12.0
    • Weather Display
Re: 404 error running WDL
« Reply #35 on: June 06, 2012, 06:42:47 PM »
so the solution would be to name the 3rd icon different name (eg ra2.jpg)

Offline broadstairs

  • Stuart
  • Posts: 6,407
  • Broadstairs, Kent, UK
  • OS/Browser:
  • (Linux Mint)
  • Firefox 13.0
    • Broadstairs
Re: 404 error running WDL
« Reply #36 on: June 07, 2012, 07:53:55 AM »
Brian I have a perfectly operational bypass - not to use the icons. Not everyone has a complete set of icons available and multiple use of some like rain makes sense, plus of course it only affects premium users anyway.

I agree that this is not a high priority thing to fix but I do feel that it should be fixed in the next update to WDL as there is obviously a minor code bug in there somewhere.

Stuart

Offline Weather Display

  • Posts: 69,315
  • Davis VP1
  • New Zealand
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 12.0
    • Weather Display
Re: 404 error running WDL
« Reply #37 on: June 07, 2012, 06:08:04 PM »
could you not at least try that icon name change?

yes it will be on the list of things to look into for a future WDL version


Offline broadstairs

  • Stuart
  • Posts: 6,407
  • Broadstairs, Kent, UK
  • OS/Browser:
  • (Linux Mint)
  • Firefox 13.0
    • Broadstairs
Re: 404 error running WDL
« Reply #38 on: June 08, 2012, 08:27:51 AM »
Brian I have found a bit of time to do some more testing. There is more than one scenario which fails. Naming the 3rd icon to ra2.jpg obviously gives a 404 error as that icon does not exist but I still get the undefined request and a 404 response from it. If I change the 3rd icon to ra1.jpg which does exist it gets the icon OK but still does the undefined request and gets the 404 error. There must be some kind of table/list built containing the icons and then the HTTP requests issued so my guess is that the way this table/list is built must be the issue, I can only see one HTTP request being issued for each unique icon name no matter how many times that name is used.

Stuart

Offline Weather Display

  • Posts: 69,315
  • Davis VP1
  • New Zealand
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 14.0.1
    • Weather Display
Re: 404 error running WDL
« Reply #39 on: July 22, 2012, 09:14:55 AM »
try the latest update

Offline broadstairs

  • Stuart
  • Posts: 6,407
  • Broadstairs, Kent, UK
  • OS/Browser:
  • (Linux Mint)
  • Firefox 14.0.1
    • Broadstairs
Re: 404 error running WDL
« Reply #40 on: July 22, 2012, 04:25:15 PM »
Will do Brian when I get a chance later....

Stuart

Offline Weather Display

  • Posts: 69,315
  • Davis VP1
  • New Zealand
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 14.0.1
    • Weather Display
Re: 404 error running WDL
« Reply #41 on: August 10, 2012, 12:35:11 AM »
any news?
been a while...
sure seemed like something important

Offline broadstairs

  • Stuart
  • Posts: 6,407
  • Broadstairs, Kent, UK
  • OS/Browser:
  • (Linux Mint)
  • Firefox 14.0.1
    • Broadstairs
Re: 404 error running WDL
« Reply #42 on: August 10, 2012, 06:17:31 AM »
Sorry Brian, been ill, had main PC go bad and in repair shop etc etc so just not had a chance. Now I have a backup PC working I'll have a go in the next day or so - all things being equal.

Stuart

Offline broadstairs

  • Stuart
  • Posts: 6,407
  • Broadstairs, Kent, UK
  • OS/Browser:
  • (Linux Mint)
  • Firefox 15.0.1
    • Broadstairs
Re: 404 error running WDL
« Reply #43 on: September 22, 2012, 08:05:28 AM »
Well I finally found some time to try this out. Initially I had not realised the only version of WDL download which had the fix was the full .exe which I dont use as I do all my development and site building on Linux so having extract the updated file it now seems that you have indeed resolved this error and the 404 now no longer happens. Be helpful if you could now update the .zip package as well with the new version.

Stuart