Author Topic: web site help  (Read 830 times)

0 Members and 1 Guest are viewing this topic.

Offline Bill714

  • Contributor
  • ***
  • Posts: 121
    • Fall River Weather
web site help
« on: December 10, 2022, 09:15:49 AM »
page will not load all the way help    http://www.fallriverweather.com/wxindex.php

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1314
  • BismarckWeather.net
    • BismarckWeather.net
Re: web site help
« Reply #1 on: December 10, 2022, 10:17:37 AM »
My suspicion is your forecast page.  I've had it in the past where NWS had an issue and my forecast wasn't loading.  That stopped my dashboard from loading.

For a quick test, rename your advforecast2.php to advforecast22.php.  Forecast won't load.  But that'll tell you if that is the issue.

I've had issues with the version 5 of that forecast.  I've stuck on the older version 4 for better reliability.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline SteveFitz1

  • Forecaster
  • *****
  • Posts: 521
    • Tyler Texas Weather
Re: web site help
« Reply #2 on: December 10, 2022, 01:57:00 PM »
Since the last section trying to load is the "Daylight Hours" heading in the left sidebar, I'd start by looking at the code that is supposed to be executing there. Perhaps it's trying to load a resource from another site and the load won't complete.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9297
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: web site help
« Reply #3 on: December 10, 2022, 04:34:52 PM »
There seems to be a couple of issues.

1) your site is running on PHP 5.6 .. you should update to PHP 7.4 or 8.1 soon.  That PHP version has gone off support quite a while ago.
2) in Settings.php, you have
Code: [Select]
$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.
  "BOX|Fall River|https://forecast.weather.gov/MapClick.php?lat=41.69735000000003&lon=-71.14364999999998#.XuuXhecpCM8",
and it should read
Code: [Select]
$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.
  "MAZ020|Fall River|https://forecast.weather.gov/MapClick.php?lat=41.6974&lon=-71.1437&unit=0&lg=english&FcstType=text&TextType=2",
likewise
Code: [Select]
$SITE['fcsturlNWS']        = 'https://forecast.weather.gov/MapClick.php?lat=41.69735000000003&lon=-71.14364999999998#.XuuXhecpCM8';
should read as
Code: [Select]
$SITE['fcsturlNWS']        = 'https://forecast.weather.gov/MapClick.php?lat=41.6974&lon=-71.1437&unit=0&lg=english&FcstType=text&TextType=2';
3) running check-fetch-times.php?show=versions blows up with
Quote
Error 503. Service Unavailable

The server is temporarily unavailable. Please check back shortly. If this problem persists, please contact our Technical Support department.
so something in PHP 5.6 is broken to get that fatal error.  Check the error_log for your website and it should indicate the PHP Fatal error causing that problem.  It's likely why your homepage (and several other pages) refuse to fully load.

Looking at wxnewpage.php on your site shows it does complete execution, so the issue is not in Settings.php, common.php, top.php, menubar.php, flyout-menu.php, footer.php structural files)

Running nws-alerts.php also fails with a 503 error.

I'd suggest contacting tech support for your hoster to update the PHP on your site to PHP 7.4, then run check-fetch-times.php?show=versions to see what scripts may need updates to properly work.
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 Bill714

  • Contributor
  • ***
  • Posts: 121
    • Fall River Weather
Re: web site help
« Reply #4 on: December 10, 2022, 05:23:29 PM »
Thanks Ken I been ignoring the site for awhile  need to fine some time to work on it

 

anything