Author Topic: wxwuhistory.php  (Read 698 times)

0 Members and 1 Guest are viewing this topic.

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1308
  • BismarckWeather.net
    • BismarckWeather.net
wxwuhistory.php
« on: August 27, 2018, 10:35:05 AM »
I noticed I'm getting these errors at the top of my WUnderground history page.  I'm not seeing them on one other user's website.  It's been about a week since I had tested the page.  I was out of town, so I didn't make any changes to my site that I would have messed it up.  Or at least I think so.  Any ideas?

http://www.bismarckweather.net/wxwuhistory.php


Notice: Use of undefined constant NAME - assumed 'NAME' in /home/bismarckweather/public_html/wxwuhistory.php on line 72

Notice: Use of undefined constant NAME - assumed 'NAME' in /home/bismarckweather/public_html/wxwuhistory.php on line 72
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: wxwuhistory.php
« Reply #1 on: August 27, 2018, 10:46:37 AM »
I noticed I'm getting these errors at the top of my WUnderground history page.  I'm not seeing them on one other user's website.  It's been about a week since I had tested the page.  I was out of town, so I didn't make any changes to my site that I would have messed it up.  Or at least I think so.  Any ideas?

http://www.bismarckweather.net/wxwuhistory.php


Notice: Use of undefined constant NAME - assumed 'NAME' in /home/bismarckweather/public_html/wxwuhistory.php on line 72

Notice: Use of undefined constant NAME - assumed 'NAME' in /home/bismarckweather/public_html/wxwuhistory.php on line 72
The messages are not errors but it are notices to the programmer to change the script. With a notice the script is functioning as it should. Only errors should be displayed as they can affect the correct working of a script.
For a production website the reporting level should be set lower to only display real errors.

Ask your provider why these messages are showing now and not in the past. Probably they moved you to a newer PHP version or they changed the PHP-ini.

Wim
« Last Edit: August 27, 2018, 11:20:41 AM by wvdkuil »

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1308
  • BismarckWeather.net
    • BismarckWeather.net
Re: wxwuhistory.php
« Reply #2 on: August 27, 2018, 11:39:09 AM »
I had my site at V7.0.  I flipped to 7.2.  No change.  I looked at the settings, reporting is off.  Here is that screen.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1308
  • BismarckWeather.net
    • BismarckWeather.net
Re: wxwuhistory.php
« Reply #3 on: August 27, 2018, 03:19:08 PM »
Welp, instead of contacting GoDaddy for "support", I just threw this into the top of my PHP file XWUhistory.php

error_reporting(0); // Turn off all error reporting

Maybe not the right way.  But it works!
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

 

anything