Author Topic: Check fetch error common.php & WU Radar error  (Read 447 times)

0 Members and 1 Guest are viewing this topic.

Offline Jumpin Joe

  • Forecaster
  • *****
  • Posts: 1073
    • Joe’s Weather
Check fetch error common.php & WU Radar error
« on: January 01, 2023, 09:00:21 AM »
I just updated my scripts using check fetch and now have an error message.
Notice: Undefined offset: 14 in /home/joes/www/www/common.php on line 334

Notice: Undefined offset: 15 in /home/joes/www/www/common.php on line 334

Also, WU Radar has an error
 Warning: include_once(WU-radar-inc.php): failed to open stream: No such file or directory in /home/joes/www/www/wxradar.php on line 77

Warning: include_once(): Failed opening 'WU-radar-inc.php' for inclusion (include_path='.:/usr/local/php73/lib/php') in /home/joes/www/www/wxradar.php on line 77

Can anyone help me resolve these?

Thanks,
Joe
https://joesweather.info
Davis Vantage Pro 2 Plus 24-FARS Wireless
WeatherLink Live

Online saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Check fetch error common.php & WU Radar error
« Reply #1 on: January 01, 2023, 10:00:18 AM »
The 2 Notice errata are caused by your language-en.js file which has
Code: [Select]
var langHeatWords = new Array ( /* used for Heat Color Word */
 'Unknown', 'Extreme Heat Danger', 'Heat Danger', 'Extreme Heat Caution', 'Extremely Hot', 'Uncomfortably Hot',
    'Hot', 'Warm', 'Comfortable', 'Chilly', 'Cool', 'Cold', 'Very Cold', 'Extremely Cold', 'Dangerously Cold', 'Extreme Cold Danger' );
which has more entries than the standard one in ajaxWDwx.js of
Code: [Select]
var langHeatWords = new Array (
 'Unknown', 'Extreme Heat Danger', 'Heat Danger', 'Extreme Heat Caution', 'Extremely Hot', 'Uncomfortably Hot',
 'Hot', 'Warm', 'Comfortable', 'Cool', 'Cold', 'Uncomfortably Cold', 'Very Cold', 'Extreme Cold' );
Those extra 2 entries used by ajaxWDwx3.js for the alternative dashboard are what is causing the messages in common.php.

The WU-radar scripts have been discontinued as WU stopped publishing the radar images and maps used by the script.
Replace wxradar.php with one from the Base-USA.zip distribution.
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 Jumpin Joe

  • Forecaster
  • *****
  • Posts: 1073
    • Joe’s Weather
Re: Check fetch error common.php & WU Radar error
« Reply #2 on: January 01, 2023, 01:33:52 PM »
The 2 Notice errata are caused by your language-en.js file which has
Code: [Select]
var langHeatWords = new Array ( /* used for Heat Color Word */
 'Unknown', 'Extreme Heat Danger', 'Heat Danger', 'Extreme Heat Caution', 'Extremely Hot', 'Uncomfortably Hot',
    'Hot', 'Warm', 'Comfortable', 'Chilly', 'Cool', 'Cold', 'Very Cold', 'Extremely Cold', 'Dangerously Cold', 'Extreme Cold Danger' );
which has more entries than the standard one in ajaxWDwx.js of
Code: [Select]
var langHeatWords = new Array (
 'Unknown', 'Extreme Heat Danger', 'Heat Danger', 'Extreme Heat Caution', 'Extremely Hot', 'Uncomfortably Hot',
 'Hot', 'Warm', 'Comfortable', 'Cool', 'Cold', 'Uncomfortably Cold', 'Very Cold', 'Extreme Cold' );
Those extra 2 entries used by ajaxWDwx3.js for the alternative dashboard are what is causing the messages in common.php.

The WU-radar scripts have been discontinued as WU stopped publishing the radar images and maps used by the script.
Replace wxradar.php with one from the Base-USA.zip distribution.

Is the correct radar to use wxnwsradar.php?


Thank you for your help, Ken.
https://joesweather.info
Davis Vantage Pro 2 Plus 24-FARS Wireless
WeatherLink Live

Online saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Check fetch error common.php & WU Radar error
« Reply #3 on: January 01, 2023, 04:40:42 PM »
Yes, wxnwsradar.php is the correct radar for the Base-USA template.
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 Jumpin Joe

  • Forecaster
  • *****
  • Posts: 1073
    • Joe’s Weather
Re: Check fetch error common.php & WU Radar error
« Reply #4 on: January 01, 2023, 06:31:25 PM »
Thank you.
https://joesweather.info
Davis Vantage Pro 2 Plus 24-FARS Wireless
WeatherLink Live