Author Topic: Warning: Undefined array key "properties" in advforecast2.php on line 2412  (Read 385 times)

0 Members and 1 Guest are viewing this topic.

Offline staze

  • Member
  • *
  • Posts: 21
    • Everybody Staze...
Title kind of says it all. I'm seeing:

Warning: Undefined array key "properties" in advforecast2.php on line 2412

and for the life of me I can't track down the issue. That section of advforecast2.php seems to deal with zone info? My zone info is pretty straight forward. Googling "advforecast2.php on line 2412" just shows a few pages, mine included, that are throwing that error. So we all clearly have something misconfigured. =(

Here's my page: https://www.staze.org/weather/

Running wxtemplates from I believe Jan 19th, 2024. But updates since then don't have anything to do with advforecast2.php. I assume there's something misconfigured in my Settings.php, but I can't find it. =(
Davis Vantage Vue, Weather Envoy, Meteobridge Nano SD

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9300
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
You do have a few updates to do from 30-Jan-2024, but like you say, it doesn't impact advforecast2.php V5.19 which is current.

Your Settings.php has
Quote
$SITE['NWSforecasts']   = array( // for the advforecast2.php V3.xx version script
// use "Zone|Location|Point-printableURL",  as entries .. first one will be the default forecast.
  "ORZ008|Springfield|http://forecast.weather.gov/MapClick.php?CityName=Springfield&state=OR&site=PQR&lat=44.058&lon=-123.006"
);
and the Zone has recently changed for your selected location to be ORZ118 so that should appear as
Quote
$SITE['NWSforecasts']   = array( // for the advforecast2.php V3.xx version script
// use "Zone|Location|Point-printableURL",  as entries .. first one will be the default forecast.
  "ORZ118|Springfield|http://forecast.weather.gov/MapClick.php?CityName=Springfield&state=OR&site=PQR&lat=44.058&lon=-123.006"
);

Also change
Quote
$SITE['noaazone']         = 'ORZ008';
to
Quote
$SITE['noaazone']         = 'ORZ118';

Hopefully, that will fix the issue...
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 staze

  • Member
  • *
  • Posts: 21
    • Everybody Staze...
Hey @saratogaWX,

Thank you! I thought I confirmed it was still 008 yesterday, but maybe I looked in wrong place.

Can confirm that fixes the error!

Thank you again!
Davis Vantage Vue, Weather Envoy, Meteobridge Nano SD

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9300
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Good... also change ORZ008 to ORZ118 and KEC42 to ORC039 for the NWS alerts too in Settings.php
Quote
$SITE['NWSalertsCodes'] = array(
    "Southern Willamette Valley|ORZ008|KEC42"
//  "Santa Clara Valley|CAZ513|CAC085",
//  "Santa Cruz Mtns|CAZ512|CAC081|CAC085|CAC087",
//  "Santa Cruz|CAZ529|CAC087",
//  "Monterey|CAZ530|CAC053",
//  "South/East Bay|CAZ508|CAC081",
//  "San Mateo Coast|CAZ509|CAC081",
//  "San Francisco|CAZ006|CAC075"
);
to
Quote
$SITE['NWSalertsCodes'] = array(
    "Southern Willamette Valley|ORZ118|ORC039"
//  "Santa Clara Valley|CAZ513|CAC085",
//  "Santa Cruz Mtns|CAZ512|CAC081|CAC085|CAC087",
//  "Santa Cruz|CAZ529|CAC087",
//  "Monterey|CAZ530|CAC053",
//  "South/East Bay|CAZ508|CAC081",
//  "San Mateo Coast|CAZ509|CAC081",
//  "San Francisco|CAZ006|CAC075"
);
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 staze

  • Member
  • *
  • Posts: 21
    • Everybody Staze...
Done!

I'm curious, though. How are you able to see my Settings.php file?

Going to go grab updates now.
Davis Vantage Vue, Weather Envoy, Meteobridge Nano SD

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9300
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
The ability to (safely) see the Settings is built-in to the check-fetch-times.php diagnostic script using ?show=settings
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 staze

  • Member
  • *
  • Posts: 21
    • Everybody Staze...
Did update and it interestingly didn't fix issue with missing icons. Somehow my images folder in forecast is gone. =(

So rebuilding it, I'm not seeing the animated icons hosted at http://www.meteotreviglio.com/ anymore. =(
Davis Vantage Vue, Weather Envoy, Meteobridge Nano SD

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9300
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
You don't have the Meteotriviglo icons installed in /weather/forecast/images directory.  I'd suggest you use the standard .jpg icons instead (plus, the DualImage icons will show if the NWS does a split 12hr forecast -- it won't show if the Meteotriviglio icons are used).

Change Settings.php from
Quote
$SITE['fcsticonstype']= '.gif'; // default type='.jpg' -- use '.gif' for animated icons from http://www.meteotreviglio.com/
to
Quote
$SITE['fcsticonstype']= '.jpg'; // default type='.jpg' -- use '.gif' for animated icons from http://www.meteotreviglio.com/
to re-enable the NWS standard icons.
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 saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9300
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
So, I'm seeing some partial icons (from DualImage), but the bulk are still missing.

Download https://saratoga-weather.org/saratoga-icons2.zip and unzip (preserving the directory structure) into your /weather directory, then upload to your site.  It should then work correctly.

When you've finished, there should be the following directories on your site:

weather/forecast
weather/forecast/images
weather/forecast/icon-templates

DualImage is not quite working correctly.. it seems that weather/forecast/icon-templates/fradmcn.ttf is missing on your site.

« Last Edit: April 22, 2024, 02:22:12 PM by saratogaWX »
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 staze

  • Member
  • *
  • Posts: 21
    • Everybody Staze...
Yup, just did that. That seems to have fixed most of it.

Was missing bkn.jpg in ajax-images, so got that fixed.

Do we know what
Retrieving "b5x-stateful-inline-icon" flag errored: timed out - falling back

In console for browser would be referring to?
Davis Vantage Vue, Weather Envoy, Meteobridge Nano SD

Offline staze

  • Member
  • *
  • Posts: 21
    • Everybody Staze...
nevermind, that's an error related to 1password. Thanks!!!
Davis Vantage Vue, Weather Envoy, Meteobridge Nano SD

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9300
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
So, I'm seeing some partial icons (from DualImage), but the bulk are still missing.

Download https://saratoga-weather.org/saratoga-icons2.zip and unzip (preserving the directory structure) into your /weather directory, then upload to your site.  It should then work correctly.

When you've finished, there should be the following directories on your site:

weather/forecast
weather/forecast/images
weather/forecast/icon-templates

DualImage is not quite working correctly.. it seems that weather/forecast/icon-templates/fradmcn.ttf is missing on your site.

You need to upload that file .. the fradmcn.ttf file is used to 'print' the PoP on the DualImage graphics.
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 staze

  • Member
  • *
  • Posts: 21
    • Everybody Staze...
Fixed, I think. The ttf is there now, though I didn't see/notice what wasn't working.
Davis Vantage Vue, Weather Envoy, Meteobridge Nano SD

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9300
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Yes, fixed now.. the Thursday and Wednesday Night icons now show PoP now that the fradmcn.ttf file is in the right place.
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 staze

  • Member
  • *
  • Posts: 21
    • Everybody Staze...
oh, on forecast, got it!

Thank you so much for your help! Sorry this drifted off from the initial request so much. =)
Davis Vantage Vue, Weather Envoy, Meteobridge Nano SD