Author Topic: AWNTags.php - fatal error  (Read 853 times)

0 Members and 1 Guest are viewing this topic.

Offline JesseLikesWeather

  • Contributor
  • ***
  • Posts: 108
  • CWOP Observer, Developer, Weather Enthusiast
    • Milton Weather Ranch
AWNTags.php - fatal error
« on: January 04, 2025, 12:42:49 PM »
After getting a new Ambient Weather WS-2000 Weatherstation, I was going to switch from the Weather Display Plugin to the Ambient Weather plugin, but after doing so, I got this error:
Code: [Select]
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array,
null given in /membri/panhandlewx/wp-content/AWNtags.php:1365 Stack trace: #0 /membri/panhandle
wx/wp-content/AWNtags.php(256): AWN_getMinMax(NULL, '2025-01-04') #1 /membri/panhandlewx/wp
-content/top.php(81): include_once('/membri/panhand...') #2 /membri/panhandlewx/wp-content/wxind
ex.php(40): include('/membri/panhand...') #3 {main} thrown in /membri/panhandlewx/wp-content/AW
Ntags.php on line 1365

I tried reuploading the files, but nothing changed. I also deleted the old WD files, still, nothing changed. What might be the issue?
JesseLikesWeather
Owner of a WS-2000 Ambient Weather Station.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9690
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: AWNTags.php - fatal error
« Reply #1 on: January 04, 2025, 12:51:57 PM »
The problem is with your proxy service connection to ambientweather.net
Quote
<!-- AWNtags.php - Version 1.09 - 06-May-2022 -->
<!-- AWNtags.php - fetching current data JSON -->
<!-- curl fetching 'https://api.ambientweather.net/v1/devices/?applicationKey=*****&apiKey=05738aaee7844947a1b1d8293ed950bef5763595dea6469ea1efbb98e709c33a' -->
<!-- curl Error: Received HTTP code 403 from proxy after CONNECT -->

due to the 403 Forbidden response, no data was received and thus the Fatal Error.

Contact ambientweather.net and ask to have your proxy server address removed from a block-list.
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 JesseLikesWeather

  • Contributor
  • ***
  • Posts: 108
  • CWOP Observer, Developer, Weather Enthusiast
    • Milton Weather Ranch
Re: AWNTags.php - fatal error
« Reply #2 on: January 04, 2025, 12:54:00 PM »
Ah, thanks Ken! I will try to do that.
JesseLikesWeather
Owner of a WS-2000 Ambient Weather Station.

Offline JesseLikesWeather

  • Contributor
  • ***
  • Posts: 108
  • CWOP Observer, Developer, Weather Enthusiast
    • Milton Weather Ranch
Re: AWNTags.php - fatal error
« Reply #3 on: January 04, 2025, 01:13:11 PM »
Reached out to them, we'll see if they do anything about this.
JesseLikesWeather
Owner of a WS-2000 Ambient Weather Station.