Author Topic: Scripts broken./Has the NWS made a change lately or having issues?  (Read 317 times)

0 Members and 1 Guest are viewing this topic.

Offline sam2004gp

  • Mount Crawford, Virginia
  • Forecaster
  • *****
  • Posts: 2862
  • Weeeeeeeee!!!!
    • Mount Crawford Weather, VA
A few of my scripts from SaratogaWX, have stopped working in the last 3 days.  I have called my webhost and they are not showing any changes on their end.  But appears that the scripts that are puling a "503 Service Unavailable" error all seem to reference something at the NWS.  My scripts that are getting the errors are my "refresh" script for "AtomFeed" aka AtomAlerts and my use of his script for NWS forcast script: advforcast2.  That can be found on my page here: http://www.mountcrawfordweather.org/forecast.php5

If anyone has insight I would appreciate it.  Keeping up with the changes that happen between webhosts, the NWS, and the fact I have such a low following for my small town, I am thinking of just killing the website all together as it is an expense for me.
SAM --->>> http://www.mountcrawfordweather.org
OS WMR-968 with a Dedicated PWS Weather Computer running VWS v13.01 p09


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 8758
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Scripts broken./Has the NWS made a change lately or having issues?
« Reply #1 on: January 21, 2023, 12:30:31 PM »
I think the issue is your PHP version.  I suspect it is less than PHP 5.6 and that is causing the issue.  I recommend PHP 7 or 8 for sites.
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 sam2004gp

  • Mount Crawford, Virginia
  • Forecaster
  • *****
  • Posts: 2862
  • Weeeeeeeee!!!!
    • Mount Crawford Weather, VA
Re: Scripts broken./Has the NWS made a change lately or having issues?
« Reply #2 on: January 21, 2023, 04:20:41 PM »
So I checked my host control Panel and this script on my website.

http://www.mountcrawfordweather.org/test.php

They both said PHP 5.6.4, so I changed it to 8.1 waited until the host implemented the change, and still things are broken.  At this point I went back 5.6.4.  I have not made any script or other settings changes in over a year.

Again other PHP scripts on the site work, just not the ones that access stuff at the NWS??????
SAM --->>> http://www.mountcrawfordweather.org
OS WMR-968 with a Dedicated PWS Weather Computer running VWS v13.01 p09


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 8758
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Scripts broken./Has the NWS made a change lately or having issues?
« Reply #3 on: January 21, 2023, 04:37:15 PM »
One  thing you could do is to change your NWSforecastScript.php5 near the top from
Code: [Select]
<?php
// error_reporting(E_ALL);
to
Code: [Select]
<?php
error_reporting
(E_ALL);
ini_set("display_errors","1");
so we can see what PHP is really griping about to blow up with a 500-Server Error.

Since you aren't running my template set, my diagnostic ability on your site is limited.
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 sam2004gp

  • Mount Crawford, Virginia
  • Forecaster
  • *****
  • Posts: 2862
  • Weeeeeeeee!!!!
    • Mount Crawford Weather, VA
Re: Scripts broken./Has the NWS made a change lately or having issues?
« Reply #4 on: January 21, 2023, 04:49:33 PM »
Ok edited and that is done still getting the same report in the window.
SAM --->>> http://www.mountcrawfordweather.org
OS WMR-968 with a Dedicated PWS Weather Computer running VWS v13.01 p09


Offline sam2004gp

  • Mount Crawford, Virginia
  • Forecaster
  • *****
  • Posts: 2862
  • Weeeeeeeee!!!!
    • Mount Crawford Weather, VA
SAM --->>> http://www.mountcrawfordweather.org
OS WMR-968 with a Dedicated PWS Weather Computer running VWS v13.01 p09


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 8758
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Scripts broken./Has the NWS made a change lately or having issues?
« Reply #6 on: January 21, 2023, 05:13:17 PM »
Ok, still insufficient info.  Try uploading the attached as php-check.php5 to your site.  It checks for availability of PHP key parts required to run the scripts.
And.. it's likely NOT an NWS issue, but an issue specific to your webserver that's causing the problems.
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 sam2004gp

  • Mount Crawford, Virginia
  • Forecaster
  • *****
  • Posts: 2862
  • Weeeeeeeee!!!!
    • Mount Crawford Weather, VA
SAM --->>> http://www.mountcrawfordweather.org
OS WMR-968 with a Dedicated PWS Weather Computer running VWS v13.01 p09


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 8758
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Scripts broken./Has the NWS made a change lately or having issues?
« Reply #8 on: January 21, 2023, 05:26:45 PM »
Ok, looks like missing functions in PHP extensions isn't the problem.

You'll need to check the Apache error_log for your site to see what it says about NWSforecastScript.php5 .. there would be a PHP Fatal Error message or two to further the diagnosis.  BTW PHP 5.6.40 is very old, and your NWSforecastScript.php5 is an older copy of advforecast2.php (which should work on PHP 5.6.40)

You can update it to V4.05 at https://saratoga-weather.org/advforecast2-V4.05.php?sce=view

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 sam2004gp

  • Mount Crawford, Virginia
  • Forecaster
  • *****
  • Posts: 2862
  • Weeeeeeeee!!!!
    • Mount Crawford Weather, VA
Re: Scripts broken./Has the NWS made a change lately or having issues?
« Reply #9 on: January 21, 2023, 05:45:35 PM »
I looked via ftp for any error log type files saw none.  My hosting is Godaddy.  In there Control Panel I did find this, but again no help there.

SAM --->>> http://www.mountcrawfordweather.org
OS WMR-968 with a Dedicated PWS Weather Computer running VWS v13.01 p09


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 8758
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Scripts broken./Has the NWS made a change lately or having issues?
« Reply #10 on: January 21, 2023, 06:09:53 PM »
I'm out of remote diagnostic ideas.. this is something your GoDaddy tech support will have to solve.  Sorry...
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 sam2004gp

  • Mount Crawford, Virginia
  • Forecaster
  • *****
  • Posts: 2862
  • Weeeeeeeee!!!!
    • Mount Crawford Weather, VA
Re: Scripts broken./Has the NWS made a change lately or having issues?
« Reply #11 on: January 21, 2023, 06:26:23 PM »
Thank You for all your assistance.  I am going to give it a few days to see if it clears up on it's own.  I called Godaddy today and they claimed all was working well.  If it does not clear up, I will beat them over a rock.  Like I said all has been working for over a year and then all just went kaput.  My first indication was a cron error report on Wednesday for the weather warning scripts.
SAM --->>> http://www.mountcrawfordweather.org
OS WMR-968 with a Dedicated PWS Weather Computer running VWS v13.01 p09


Offline Bunty

  • Forecaster
  • *****
  • Posts: 2368
  • Stillwater, home of Oklahoma State University
    • Welcome to Stillwater Weather
Re: Scripts broken./Has the NWS made a change lately or having issues?
« Reply #12 on: January 21, 2023, 11:34:32 PM »
If you haven't already tried, try it with the 7.4 php, if available.

Also the 2nd home page using modified AltDashboard 6.95 at http://stillwaterweather.com/2ndhome.php

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1173
  • BismarckWeather.net
    • BismarckWeather.net
Re: Scripts broken./Has the NWS made a change lately or having issues?
« Reply #13 on: January 22, 2023, 11:37:36 AM »
I have GoDaddy and I'm running 8.1 PHP with no issues.

FTP into the root/home your site.  Look for a file named error_log .  That should contain the error messages.

Haven't looked at mine in a long time.  My WxStory page is working, but I'm seeing these:

[06-Jan-2023 16:15:12 America/Chicago] PHP Warning:  Undefined array key "" in /home/bismarckweather/public_html/wxStory_inc.php on line 554
[06-Jan-2023 16:15:12 America/Chicago] PHP Warning:  Trying to access array offset on value of type null in /home/bismarckweather/public_html/wxStory_inc.php on line 554
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI