Author Topic: PHP 7.4 to 8.3  (Read 692 times)

0 Members and 1 Guest are viewing this topic.

Offline ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 946
    • North Bend Weather
PHP 7.4 to 8.3
« on: December 29, 2024, 04:50:59 PM »
Took the big jump today and updated all of my files. My site is working on 8.3, except for the ALtdashboard. Will that dashboard still work with 8.3 with some mods to it?

https://www.northbendweather.com/

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


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

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9672
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PHP 7.4 to 8.3
« Reply #1 on: December 29, 2024, 05:05:40 PM »
Yes, but you need to have all the scripts associated with the alt-dashboard updated to current releases.

I think some old files with your current installation is the cause of the problems:

Quote
Contents of Website Alt-Dashboard files
Name   Size   Updated
AltAjaxDashboardConfig6.php   17784   Sun, 29 Dec 2024 21:41:39 +0000
raintodate.php   3930   Wed, 22 Oct 2014 01:43:58 +0000
get-aqi-rss.php   4690   Sun, 12 Aug 2018 03:00:30 +0000
heavens.php   (not found)
ajax-dashboard6.php   191787   Sun, 29 Dec 2024 21:41:35 +0000
cloud-base.php   87450   Tue, 14 Nov 2023 02:28:26 +0000
index.php   3586   Sun, 29 Dec 2024 22:01:56 +0000
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 ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 946
    • North Bend Weather
Re: PHP 7.4 to 8.3
« Reply #2 on: December 29, 2024, 05:09:22 PM »
Thanks Ken. I'll get those updated and see what happens.
"Nature can do without man, but man cannot do without nature."


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

Offline ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 946
    • North Bend Weather
Re: PHP 7.4 to 8.3
« Reply #3 on: December 29, 2024, 05:44:21 PM »
Getting there. Just 1 error, and cant find much info on it..

Warning: Undefined variable $showSLPLegend in /homepages/8/d252567151/htdocs/ajax-dashboard6.php on line 1383

Line 1383... <?php if ($showSLPLegend) { ?>
"Nature can do without man, but man cannot do without nature."


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

Offline ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 946
    • North Bend Weather
Re: PHP 7.4 to 8.3
« Reply #4 on: December 29, 2024, 07:46:40 PM »
More errors popped up on their own after working fine for a few hours. I have my own AQI sensor, so I did not update that script. I wonder if that's part of the issue.

Deprecated: round(): Passing null to parameter #1 ($num) of type int|float is deprecated in /homepages/8/d252567151/htdocs/ajax-dashboard6.php on line 2028

line 2028... <?php $VPuv2 = round($UVfcstUVI[$UVptr - $evening], 0);


eprecated: round(): Passing null to parameter #1 ($num) of type int|float is deprecated in /homepages/8/d252567151/htdocs/ajax-dashboard6.php on line 2042

Line 2042... $VPuv2 = round($UVfcstUVI[$UVptr - $evening], 0);

Deprecated: round(): Passing null to parameter #1 ($num) of type int|float is deprecated in /homepages/8/d252567151/htdocs/ajax-dashboard6.php on line 2056

Line 2056... $VPuv2 = round($UVfcstUVI[$UVptr - $evening], 0);


Warning: Undefined array key 2 in /homepages/8/d252567151/htdocs/ajax-dashboard6.php on line 2064

Line 2064... <b><a href="<?php echo htmlspecialchars($UV_URL); ?>" title="<?php echo strip_tags($requiredNote); ?>"><?php echo $UVfcstUVI[$UVptr - $evening]; ?></a></b>


Warning: Undefined array key 1 in /homepages/8/d252567151/htdocs/ajax-dashboard6.php on line 2050

Line 2050... <b><a href="<?php echo htmlspecialchars($UV_URL); ?>" title="<?php echo strip_tags($requiredNote); ?>"><?php echo $UVfcstUVI[$UVptr - $evening]; ?></a></b>
« Last Edit: December 29, 2024, 08:10:09 PM by ALITTLEweird1 »
"Nature can do without man, but man cannot do without nature."


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

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9672
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PHP 7.4 to 8.3
« Reply #5 on: December 29, 2024, 09:42:12 PM »
Those were caused by having missing data for the UV forecast from temis.nl.

I ran check-fetch-times.php and it got the forecast ok, now your homepage dashboard is showing normally.
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 saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9672
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PHP 7.4 to 8.3
« Reply #6 on: December 29, 2024, 09:46:53 PM »
The
Quote
Warning: Undefined variable $showSLPLegend in /homepages/8/d252567151/htdocs/ajax-dashboard6.php on line 1383
is likely caused by using an older AltAjaxDashboardConfig6.php so it is missing the line
Quote
$showSLPLegend = true;         // show the Sunpie legend
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 ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 946
    • North Bend Weather
Re: PHP 7.4 to 8.3
« Reply #7 on: December 29, 2024, 11:11:36 PM »
Those were caused by having missing data for the UV forecast from temis.nl.

I ran check-fetch-times.php and it got the forecast ok, now your homepage dashboard is showing normally.

I fixed the AltAjaxDashboardConfig6.php issue, but the UV forecast is still causing a problem on my site. Like you said, if you run the check-fetch-times.php it does fix it, but after awhile it goes back to the same errors. You have any idea why it keeps doing this?
"Nature can do without man, but man cannot do without nature."


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

Offline ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 946
    • North Bend Weather
Re: PHP 7.4 to 8.3
« Reply #8 on: December 30, 2024, 06:20:08 PM »
The UV issue only happens when it goes into night mode so to speak, because I have a UV sensor the dashboard changes from a Live UV reading to a forecast.
"Nature can do without man, but man cannot do without nature."


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

Offline ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 946
    • North Bend Weather
Re: PHP 7.4 to 8.3
« Reply #9 on: January 01, 2025, 06:29:36 PM »
Any ideas on what could be causing this issue?

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


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

 

anything