Author Topic: Atom-top-warning error  (Read 721 times)

0 Members and 1 Guest are viewing this topic.

Offline ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 956
    • North Bend Weather
Atom-top-warning error
« on: November 02, 2019, 08:56:32 PM »
Getting this error showing up on the main page of my parents site, but when you refresh the page is goes away till you come back.

Warning: A non-numeric value encountered in /homepages/14/d347616009/htdocs/atom-top-warning.php on line 876

Line 876.…  $total_time += ($time_stop - $time_start);

Thanks

"Nature can do without man, but man cannot do without nature."


Software: WeatherDisplay
Hardware: Davis VP2 + VP2 Solar + VP2 UV + Lightning Detector + Reolink Webcam + Soil temp + Soil Moisture

Offline Jasiu / JJ

  • Forecaster
  • *****
  • Posts: 1030
    • LexMAWeather
Re: Atom-top-warning error
« Reply #1 on: November 02, 2019, 10:45:10 PM »
Link to site please...

https://lexmaweather.info
Mastodon: @LexMAWeather@toot.community
Bluesky: @LexMAWeather.toot.community.ap.brid.gy

Offline ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 956
    • North Bend Weather
Re: Atom-top-warning error
« Reply #2 on: November 02, 2019, 10:57:35 PM »
"Nature can do without man, but man cannot do without nature."


Software: WeatherDisplay
Hardware: Davis VP2 + VP2 Solar + VP2 UV + Lightning Detector + Reolink Webcam + Soil temp + Soil Moisture

Offline Jasiu / JJ

  • Forecaster
  • *****
  • Posts: 1030
    • LexMAWeather
Re: Atom-top-warning error
« Reply #3 on: November 03, 2019, 10:03:52 AM »
I think it has to do with $total_time being set to a string before the line in question tries to add a float value to it.

In any case, $total_time is never used.  You should be able to safely comment out these two lines and get rid of the problem:

Code: [Select]
//  $total_time = '';
//  $total_time += ($time_stop - $time_start);
https://lexmaweather.info
Mastodon: @LexMAWeather@toot.community
Bluesky: @LexMAWeather.toot.community.ap.brid.gy

 

anything