Author Topic: Notice: Undefined offset: 3 in /home/rogersci/public_html/cwopstats.php on line  (Read 187 times)

0 Members and 1 Guest are viewing this topic.

Offline miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 4117
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
I am getting the entry at the top of the wxcwopstats.php page:

Notice: Undefined offset: 3 in /home/rogersci/public_html/cwopstats.php on line 195

I'm not sure when this started, I may have only recently checked the page and noticed it.

I think that some of the charts have gone missing. This used to work. Did I miss an update for the script?

Greg H.



Blitzortung Stations #706 and #1682
CoCoRaHS: MI-PI-1
CWOP: CW4114 and KE8DAF-13
WU: KMIROGER7
Amateur Radio Callsign: KE8DAF

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9317
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
That is truly an ancient script by Michael of the former relayweather.. the last version I have was from 2011.

I think the issue is your quality data page from gladstone has a missing icon for a check mark about wind data and that causes the script to emit the Notice errata.

You can change cwopstats.php to have
Quote
<?php
error_reporting(E_ALL & ~E_NOTICE);
at the top of of the page (replacing the opening <?php

 
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 4117
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
That is truly an ancient script by Michael of the former relayweather.. the last version I have was from 2011.

I think the issue is your quality data page from gladstone has a missing icon for a check mark about wind data and that causes the script to emit the Notice errata.

You can change cwopstats.php to have
Quote
<?php
error_reporting(E_ALL & ~E_NOTICE);
at the top of of the page (replacing the opening <?php

Thanks, Ken. That got rid of the error message.

Greg H.


Blitzortung Stations #706 and #1682
CoCoRaHS: MI-PI-1
CWOP: CW4114 and KE8DAF-13
WU: KMIROGER7
Amateur Radio Callsign: KE8DAF