Author Topic: ajax-dashboard.php issue  (Read 741 times)

0 Members and 1 Guest are viewing this topic.

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1043
    • GosportWx.com
ajax-dashboard.php issue
« on: May 19, 2018, 12:22:41 PM »
Notice: Undefined offset: 1 in /home/hj2ke8lfpx43/public_html/ajax-dashboard.php on line 948

Notice: Undefined offset: 1 in /home/hj2ke8lfpx43/public_html/ajax-dashboard.php on line 953

Notice: Undefined offset: 1 in /home/hj2ke8lfpx43/public_html/ajax-dashboard.php on line 954

here is line 948:<?php echo $UVfcstDate[$UVptr]; ?>

Line 953: <b><a href="<?php echo htmlspecialchars($UV_URL); ?>" title="<?php echo strip_tags($requiredNote); ?>"><?php echo $UVfcstUVI[$UVptr]; ?></a></b>

and line 954: <?php echo get_UVrange($UVfcstUVI[$UVptr]); ?>

Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: ajax-dashboard.php issue
« Reply #1 on: May 19, 2018, 12:59:25 PM »
It looks like the UV forecast from temis.nl is getting stale
Quote
<!-- get-UV-forecast-inc.php V1.08 - 11-Nov-2017 -->
<!-- UV forecast courtesy of and Copyright &copy; KNMI/ESA (http://www.temis.nl/). Used with permission. -->
<!-- UV data load from from cache ./cache/uv-forecast.txt -->
<!-- Date='14-May-2018', UV='9.4' DOW='Monday' YMD='20180514' -->
<!-- Date='15-May-2018', UV='9.6' DOW='Tuesday' YMD='20180515' -->
<!-- Date='16-May-2018', UV='8.1' DOW='Wednesday' YMD='20180516' -->
<!-- Date='17-May-2018', UV='8.5' DOW='Thursday' YMD='20180517' -->
<!-- Date='18-May-2018', UV='8.6' DOW='Friday' YMD='20180518' -->
<!-- Date='19-May-2018', UV='9.0' DOW='Saturday' YMD='20180519' -->
<!-- after date=20180519 processing, shifted 5 entries -->
<!-- Date='19-May-2018', UV='9.0' DOW='Saturday' YMD='20180519' -->
-- there is no forecast for tomorrow (20-May-2018) and that's why the Notice errata show up.

You can turn off those Notice type errata with an entry in your php.ini
Code: [Select]
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
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 mkutche

  • Forecaster
  • *****
  • Posts: 1043
    • GosportWx.com
Re: ajax-dashboard.php issue
« Reply #2 on: May 19, 2018, 01:09:58 PM »
It looks like the UV forecast from temis.nl is getting stale
Quote
<!-- get-UV-forecast-inc.php V1.08 - 11-Nov-2017 -->
<!-- UV forecast courtesy of and Copyright &copy; KNMI/ESA (http://www.temis.nl/). Used with permission. -->
<!-- UV data load from from cache ./cache/uv-forecast.txt -->
<!-- Date='14-May-2018', UV='9.4' DOW='Monday' YMD='20180514' -->
<!-- Date='15-May-2018', UV='9.6' DOW='Tuesday' YMD='20180515' -->
<!-- Date='16-May-2018', UV='8.1' DOW='Wednesday' YMD='20180516' -->
<!-- Date='17-May-2018', UV='8.5' DOW='Thursday' YMD='20180517' -->
<!-- Date='18-May-2018', UV='8.6' DOW='Friday' YMD='20180518' -->
<!-- Date='19-May-2018', UV='9.0' DOW='Saturday' YMD='20180519' -->
<!-- after date=20180519 processing, shifted 5 entries -->
<!-- Date='19-May-2018', UV='9.0' DOW='Saturday' YMD='20180519' -->
-- there is no forecast for tomorrow (20-May-2018) and that's why the Notice errata show up.

You can turn off those Notice type errata with an entry in your php.ini
Code: [Select]
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED

i have this in php.ini but it still shows up
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------