Author Topic: Daily Records Script from Murry at Wildwood Weather.  (Read 1162 times)

0 Members and 1 Guest are viewing this topic.

Offline andro700

  • Chuck
  • Forecaster
  • *****
  • Posts: 420
    • Gobles Weather Page
Daily Records Script from Murry at Wildwood Weather.
« on: May 03, 2022, 12:48:53 PM »
CNYweather and myself are having issues with this script. I can see that both of our pages are blank. I have attached the script. Any help would be greatly appreciated. Also the link to my page.

https://www.goblesweather.com/wxnoaarecords.php

Chuck

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Daily Records Script from Murry at Wildwood Weather.
« Reply #1 on: May 03, 2022, 02:57:26 PM »
So the problem appears to be multiple instances of Fatal error -- undefined constant causing the page to abort.

The strings to change are (do global replacement) in wxnoaarecords-include.php :

date(n)   to date('n')
date(Y)   to date('Y')
date(j)    to date('j')
date(m)   to date('m')

I found the fatal errors on lines 419,441,610,611,613.   

Leave the settings at the top of the script to
Code: [Select]
ini_set('display_errors', 0);
error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING ^ E_DEPRECATED);
otherwise your error_log will be FLOODED with Warning and Notice errata .. I'd not fixed any of those.
« Last Edit: May 03, 2022, 03:45:47 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 andro700

  • Chuck
  • Forecaster
  • *****
  • Posts: 420
    • Gobles Weather Page
Re: Daily Records Script from Murry at Wildwood Weather.
« Reply #2 on: May 03, 2022, 03:28:08 PM »
Thanks Ken, that did the trick. Thanks again for your assistance. CNYweather the changes are in the include page.

https://www.goblesweather.com/wxnoaarecords.php

Chuck

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2297
    • CNYWeather
Re: Daily Records Script from Murry at Wildwood Weather.
« Reply #3 on: May 03, 2022, 04:18:59 PM »
Awesome!!!

I will change this tonight after work. THANK YOU BOTH!!
Tony




Offline hcorrin

  • Contributor
  • ***
  • Posts: 128
    • Ballaugh Weather
Re: Daily Records Script from Murry at Wildwood Weather.
« Reply #4 on: July 12, 2022, 03:02:22 PM »
i amended the include file as per thread and changed my local Synology unit to php 8 but it aborted http://ballaugh.no-ip.biz:59202/WD-AJAX/wxnoaarecords.php the menu still works
sadly i am useless at php so need a little guidence