Author Topic: PHP 8.1 and ajax-dashboard6.php - new deprecated notices  (Read 5539 times)

0 Members and 1 Guest are viewing this topic.

Offline cirrus

  • Kevin Hough
  • Member
  • *
  • Posts: 48
  • Davis Vantage Pro2 Plus
    • Gorge-East Weather
PHP 8.1 and ajax-dashboard6.php - new deprecated notices
« on: January 19, 2022, 12:39:26 AM »
I just started seeing these notices, after doing todays Saratoga script updates:

Deprecated: Function strftime() is deprecated in /home/thedalle/public_html/altdash6/ajax-dashboard6.php on line 419

Deprecated: Function strftime() is deprecated in /home/thedalle/public_html/altdash6/ajax-dashboard6.php on line 420

Deprecated: Function strftime() is deprecated in /home/thedalle/public_html/altdash6/ajax-dashboard6.php on line 421

Deprecated: Function strftime() is deprecated in /home/thedalle/public_html/altdash6/ajax-dashboard6.php on line 425


ajax-dashboard6.php
lines 418 - 425:
strftime() is now deprecated with PHP 8.1 and will not work at all in a future PHP 9

I'm using @ for now to suppress those deprecated notices

if (!isset($avgmonthrain1) or $avgmonthrain1 == '') {
    $avgmonthrain1 = ${'avrain' . @strtolower(strftime("%b"))};
      if(isset(${'avsnow' . @strtolower(strftime("%b"))}) ) {
      $avgmonthsnow1 = ${'avsnow' . @strtolower(strftime("%b"))};
      } else {
         $avgmonthsno1  = 0;
      }
    $avgmonthtemp1 = ${'avtemp' . @strtolower(strftime("%b"))};


Regards, Kevin

« Last Edit: January 19, 2022, 12:42:47 AM by cirrus »
Regards, --Kevin


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PHP 8.1 and ajax-dashboard6.php - new deprecated notices
« Reply #1 on: January 19, 2022, 11:50:28 AM »
Yes, I spotted that deprecation also as I'm rummaging through the scripts doing fixups for PHP 8.1.

I'm doing all my currently released standard scripts first, then I'll move on to the legacy ones I distribute from my site.

The strftime() issue will also happen on the mesonet-map and global-map scripts, and I'll have updates for them soon.
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 cirrus

  • Kevin Hough
  • Member
  • *
  • Posts: 48
  • Davis Vantage Pro2 Plus
    • Gorge-East Weather
Re: PHP 8.1 and ajax-dashboard6.php - new deprecated notices
« Reply #2 on: January 19, 2022, 05:16:55 PM »
Yes, I spotted that deprecation also as I'm rummaging through the scripts doing fixups for PHP 8.1.

I'm doing all my currently released standard scripts first, then I'll move on to the legacy ones I distribute from my site.

The strftime() issue will also happen on the mesonet-map and global-map scripts, and I'll have updates for them soon.

Sounds good, Ken.. Thank You [tup]

Best Regards, Kevin
Regards, --Kevin


Offline andro700

  • Chuck
  • Forecaster
  • *****
  • Posts: 420
    • Gobles Weather Page
Re: PHP 8.1 and ajax-dashboard6.php - new deprecated notices
« Reply #3 on: March 28, 2022, 02:43:29 PM »
Here is the errors I am getting since I updated to PHP 8.1. I have updated all of my saratoga  pages. I am running ajax-dashboard.

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

Quote
Fatal error: Uncaught Error: Undefined constant "month" in /home/goblesweather/www/www/AltAjaxDashboardConfig6.php:187 Stack trace: #0 /home/goblesweather/www/www/ajax-dashboard6.php(78): include_once() #1 /home/goblesweather/www/www/index.php(89): include_once('/home/gobleswea...') #2 {main} thrown in /home/goblesweather/www/www/AltAjaxDashboardConfig6.php on line 187

Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PHP 8.1 and ajax-dashboard6.php - new deprecated notices
« Reply #4 on: March 28, 2022, 02:51:41 PM »
Please post your AltAjaxDashboardConfig6.php as AltAjaxDashboardConfig6.txt here.. the errors are in that file.
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: PHP 8.1 and ajax-dashboard6.php - new deprecated notices
« Reply #5 on: March 28, 2022, 02:55:26 PM »
Here you go Ken. I have several errors on different pages I have to look into as well.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PHP 8.1 and ajax-dashboard6.php - new deprecated notices
« Reply #6 on: March 28, 2022, 03:26:51 PM »
Change
Code: [Select]
$month = $today[month];
$day = $today[mday];
to
Code: [Select]
$month = $today['month'];
$day = $today['mday'];

For the
Quote
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0
.. that may be in another script (as an ini_set('allow_url_include','1'); ) or may be lurking in your .htaccess file .. I suspect the latter since loading https://www.goblesweather.com/Settings.php shows the error message (and it shouldn't show anything but a blank/zero content page).  Check .htaccess file for that.
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: PHP 8.1 and ajax-dashboard6.php - new deprecated notices
« Reply #7 on: March 28, 2022, 05:29:09 PM »
Looks like I have some work to do to get my pages php 8.1 compliant. Thanks for the fix.

Chuck

Offline andro700

  • Chuck
  • Forecaster
  • *****
  • Posts: 420
    • Gobles Weather Page
Re: PHP 8.1 and ajax-dashboard6.php - new deprecated notices
« Reply #8 on: March 29, 2022, 04:06:17 PM »
Here are the errors on my ajax-dashboard6.php that are showing up on my main page.
Quote
Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/goblesweather/www/www/ajax-dashboard6.php on line 240

Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/goblesweather/www/www/ajax-dashboard6.php on line 289

Deprecated: Function strftime() is deprecated in /home/goblesweather/www/www/ajax-dashboard6.php on line 327

Deprecated: Function strftime() is deprecated in /home/goblesweather/www/www/ajax-dashboard6.php on line 328

Deprecated: Function strftime() is deprecated in /home/goblesweather/www/www/ajax-dashboard6.php on line 329

Here is another fatal error on the page.
Quote
Fatal error: Uncaught Error: Attempt to assign property "date" on null in /home/goblesweather/www/www/ajax-dashboard6.php:3238 Stack trace: #0 /home/goblesweather/www/www/ajax-dashboard6.php(1212): getMoonInfo() #1 /home/goblesweather/www/www/index.php(89): include_once('/home/gobleswea...') #2 {main} thrown in /home/goblesweather/www/www/ajax-dashboard6.php on line 3238

Wish I knew how to fix the errors. I hate to keep on asking for help.

Chuck

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PHP 8.1 and ajax-dashboard6.php - new deprecated notices
« Reply #9 on: March 29, 2022, 04:20:03 PM »
You seem to be running Version 6.95c - 19-Apr-2019 of the alt-ajaxdashboard6.php.

Try downloading 6.95e which is fixed for PHP8.1 (https://saratoga-weather.org/legacy-scripts/AltAjaxDashboard695e.zip)

It's likely easier to install and customize the new version than to find all the errors I'd fixed in the old version :)
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: PHP 8.1 and ajax-dashboard6.php - new deprecated notices
« Reply #10 on: March 29, 2022, 05:02:16 PM »
Sorry did not realize there was a new version of the dashboard. I will download it and edit it it as needed.

Thanks,
Chuck


Sent from my iPhone using Tapatalk

Offline andro700

  • Chuck
  • Forecaster
  • *****
  • Posts: 420
    • Gobles Weather Page
Re: PHP 8.1 and ajax-dashboard6.php - new deprecated notices
« Reply #11 on: March 30, 2022, 03:13:55 PM »
I updated to 6.95e. I have a couple of issues. First trying to find the current conditions. It is showing png as my image but should be jpg. Cannot find where to change that setting.

The next thing is deprecated errors under in my tides section under ajaxdashboard6.php script.
Quote
Warning: Undefined array key 2 in /home/goblesweather/www/www/ajax-dashboard6.php on line 3592

Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/goblesweather/www/www/ajax-dashboard6.php on line 3592

Warning: Undefined array key 2 in /home/goblesweather/www/www/ajax-dashboard6.php on line 3593

Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/goblesweather/www/www/ajax-dashboard6.php on line 3593

Warning: Undefined array key 2 in /home/goblesweather/www/www/ajax-dashboard6.php on line 3592

Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/goblesweather/www/www/ajax-dashboard6.php on line 3592

Warning: Undefined array key 2 in /home/goblesweather/www/www/ajax-dashboard6.php on line 3593

Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/goblesweather/www/www/ajax-dashboard6.php on line 3593

Warning: Undefined variable $string in /home/goblesweather/www/www/ajax-dashboard6.php on line 3649

Here is the link to my homepage.

https://goblesweather.com/

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PHP 8.1 and ajax-dashboard6.php - new deprecated notices
« Reply #12 on: March 30, 2022, 06:42:06 PM »
It's likely that the tide data is not being found and that's why the messages about 3592/3593 lines are happening.  I don't use/have the tide data, so I can't help with that other than to have you shut off the messages by changing
Code: [Select]
#error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);
error_reporting(E_ALL);
ini_set('display_errors','1');
to
Code: [Select]
error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING ^ E_DEPRECATED);
#error_reporting(E_ALL);
ini_set('display_errors','1');

For the 3649 error, change
Code: [Select]
function time_till_tide($time) {
    // takes a time diff like 6740 secs and formats to '1 hour, 52 minutes'
    $hrs = (int) intval($time / 3600);
to
Code: [Select]
function time_till_tide($time) {
    // takes a time diff like 6740 secs and formats to '1 hour, 52 minutes'
    $string = '';
    $hrs = (int) intval($time / 3600);

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 hcorrin

  • Contributor
  • ***
  • Posts: 126
    • Ballaugh Weather
Re: PHP 8.1 and ajax-dashboard6.php - new deprecated notices
« Reply #13 on: March 31, 2022, 06:33:33 PM »
hi
just tried a test version https://www.hc-iom.co.uk/WD-AJAX3/index.php and got these errors note still using 7.4 PHP

at top of page
Notice: A non well formed numeric value encountered in /home/storage/129/3316129/user/htdocs/WD-AJAX3/ajax-dashboard6.php on line 480

Notice: A non well formed numeric value encountered in /home/storage/129/3316129/user/htdocs/WD-AJAX3/ajax-dashboard6.php on line 481

Tide section gives similar numbers as already posted


i have added the amendment already posted so the other error went

 


Daytime Records
 Notice: Undefined variable: rtemp in /home/storage/129/3316129/user/htdocs/WD-AJAX3/ajax-dashboard6.php on line 3003

Notice: Undefined variable: rtfdate in /home/storage/129/3316129/user/htdocs/WD-AJAX3/ajax-dashboard6.php on line 3003
NaNC
 
Notice: Undefined variable: rtemp in /home/storage/129/3316129/user/htdocs/WD-AJAX3/ajax-dashboard6.php on line 3003

Notice: Undefined variable: rtfdate in /home/storage/129/3316129/user/htdocs/WD-AJAX3/ajax-dashboard6.php on line 3003
NaNC
Nitetime Records
 
Notice: Undefined variable: rtemp in /home/storage/129/3316129/user/htdocs/WD-AJAX3/ajax-dashboard6.php on line 3003

Notice: Undefined variable: rtfdate in /home/storage/129/3316129/user/htdocs/WD-AJAX3/ajax-dashboard6.php on line 3003
NaNC
 
Notice: Undefined variable: rtemp in /home/storage/129/3316129/user/htdocs/WD-AJAX3/ajax-dashboard6.php on line 3003

Notice: Undefined variable: rtfdate in /home/storage/129/3316129/user/htdocs/WD-AJAX3/ajax-dashboard6.php on line 3003
NaNC


if the error lines are swapped the errors disappear but the daytime nighttime records give NaNC
have left with full errors for time being

« Last Edit: March 31, 2022, 06:36:25 PM by hcorrin »

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PHP 8.1 and ajax-dashboard6.php - new deprecated notices
« Reply #14 on: March 31, 2022, 09:13:39 PM »
hi
just tried a test version https://www.hc-iom.co.uk/WD-AJAX3/index.php and got these errors note still using 7.4 PHP

at top of page
Notice: A non well formed numeric value encountered in /home/storage/129/3316129/user/htdocs/WD-AJAX3/ajax-dashboard6.php on line 480

Notice: A non well formed numeric value encountered in /home/storage/129/3316129/user/htdocs/WD-AJAX3/ajax-dashboard6.php on line 481

Tide section gives similar numbers as already posted


i have added the amendment already posted so the other error went

 


Daytime Records
 Notice: Undefined variable: rtemp in /home/storage/129/3316129/user/htdocs/WD-AJAX3/ajax-dashboard6.php on line 3003

Notice: Undefined variable: rtfdate in /home/storage/129/3316129/user/htdocs/WD-AJAX3/ajax-dashboard6.php on line 3003
NaNC
 
Notice: Undefined variable: rtemp in /home/storage/129/3316129/user/htdocs/WD-AJAX3/ajax-dashboard6.php on line 3003

Notice: Undefined variable: rtfdate in /home/storage/129/3316129/user/htdocs/WD-AJAX3/ajax-dashboard6.php on line 3003
NaNC
Nitetime Records
 
Notice: Undefined variable: rtemp in /home/storage/129/3316129/user/htdocs/WD-AJAX3/ajax-dashboard6.php on line 3003

Notice: Undefined variable: rtfdate in /home/storage/129/3316129/user/htdocs/WD-AJAX3/ajax-dashboard6.php on line 3003
NaNC
 
Notice: Undefined variable: rtemp in /home/storage/129/3316129/user/htdocs/WD-AJAX3/ajax-dashboard6.php on line 3003

Notice: Undefined variable: rtfdate in /home/storage/129/3316129/user/htdocs/WD-AJAX3/ajax-dashboard6.php on line 3003
NaNC


if the error lines are swapped the errors disappear but the daytime nighttime records give NaNC
have left with full errors for time being


I think the 480/481 errata are caused by having the units be in testtags.php for
Code: [Select]
$dayrn =  '  0.0 mm';    // today's rain
$monthrn =  '0.0 mm';    // rain so far this month
$yearrn =  '215.8 mm';    // rain so far this year
  you can fix that by either turning off the units in WD or changing the lines from
Code: [Select]
  $rndiff = $monthrn - $avgmonthrain1; // calculate difference in rain vs avg
  $rndiff_mtd = $monthrn - $avg_mtd_rain; // calculate difference in rain vs avg month-to-date
to
Code: [Select]
  $rndiff = strip_units($monthrn) - $avgmonthrain1; // calculate difference in rain vs avg
  $rndiff_mtd = strip_units($monthrn) - $avg_mtd_rain; // calculate difference in rain vs avg month-to-date

The ones for 3003 are likely a failure of the regex to parse your data from testtags.  The regex
Code: [Select]
    if(preg_match('!^([\-\.\d]+)\s*([F|C])\s+on:\s+(.*)$!',$rtfdata,$M)) { is expecting something like mine:
Code: [Select]
$mcoldestdayonrecord = '50.9F  on: Mar 05 2022';
$mcoldestnightonrecord = '41.5F  on: Mar 06 2022';
and what it is getting from your testtags.php is
Code: [Select]
$mcoldestdayonrecord = '50.0°C  on: 31 Mar 2022';
$mcoldestnightonrecord = '50.0°C  on: 06 Mar 2022';
which fails the parsing due to the (unexpected) '°'.

Change the regex to be
Code: [Select]
    if(preg_match('!^([\-\.\d]+).*([F|C])\s+on:\s+(.*)$!',$rtfdata,$M)) { and it will likely work with your data.
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: PHP 8.1 and ajax-dashboard6.php - new deprecated notices
« Reply #15 on: April 01, 2022, 01:27:28 PM »
My condition icon is pointing to png. All the settings I see are jpg. Trying to figure out where to find why it is showing png. Also my temps have decimal points on my main page.

Chuck

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PHP 8.1 and ajax-dashboard6.php - new deprecated notices
« Reply #16 on: April 01, 2022, 03:20:43 PM »
In your Settings.php, you have
Code: [Select]
$SITE['fcsticonstype']= '.png'; and that is also set for the conditions icon.
Change it back to
Code: [Select]
$SITE['fcsticonstype']= '.jpg'; or, if you want to keep the large icons for the forecast, then change ajax-dashboard6.php
Code: [Select]
if (isset($SITE['fcsticonstype']))  { $condIconType = $SITE['fcsticonstype']; }
to
Code: [Select]
# if (isset($SITE['fcsticonstype']))  { $condIconType = $SITE['fcsticonstype']; }
to avoid the override by Settings.php.

The temperature data from testtags.php has one decimal point -- you need to leave that so the Metric/Imperial display switch with JavaScript will correctly change the values as appropriate.
« Last Edit: April 01, 2022, 03:23:27 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 hcorrin

  • Contributor
  • ***
  • Posts: 126
    • Ballaugh Weather
Re: PHP 8.1 and ajax-dashboard6.php - new deprecated notices
« Reply #17 on: April 01, 2022, 05:10:59 PM »
Hi
thanks Ken those mods have sorted the errors described

Harold

Offline andro700

  • Chuck
  • Forecaster
  • *****
  • Posts: 420
    • Gobles Weather Page
Re: PHP 8.1 and ajax-dashboard6.php - new deprecated notices
« Reply #18 on: April 06, 2022, 12:44:45 PM »
Seems like the DualImage I am getting intermittent issue with the icons. You can see it on my main page and my NOAA forecast page.

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

When you right click on the broken icon and open in a new tab here is what it shows.
Quote
Deprecated: Implicit conversion from float 21.5 to int loses precision in /home/goblesweather/www/www/DualImage.php on line 498

Warning: Cannot modify header information - headers already sent by (output started at /home/goblesweather/www/www/DualImage.php:498) in /home/goblesweather/www/www/DualImage.php on line 345
P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 Y-ۂ留KhR p0|1 &dB8f?߬bUȤ)($T慩5I8rO65Ba ]v J G^WSl<V㤳^՘">vOhCF/j=J'(Dzz6供Uje`.MZ̋R{nd`8:+ei,mV- Z ] ˄f`lW ڢk]zp0F-u ):)7|˓̕\ɮ{ث?8-QKkATHdѤo}|8!#o˻9:RשƛlvH;%Z\RANr bNV $9X5.]HzRڭ=i>9;wt:rPFw;kXTۇi!NZuUg5anV /5ޑ̓87V AIENDB`

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PHP 8.1 and ajax-dashboard6.php - new deprecated notices
« Reply #19 on: April 06, 2022, 01:29:17 PM »
Ahh.. PHP 8.1 is a gift that keeps on giving (Deprecated errata).

Download from here and try it (V1.04)
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: PHP 8.1 and ajax-dashboard6.php - new deprecated notices
« Reply #20 on: April 06, 2022, 01:41:55 PM »
It worked. Will keep an eye on it. Yea 8.1 is a constant work in progress. JPgraph is half working with PHP 8.1. There is a version 10 of JPgraph out there. I have it running on my server. Mostly the Rain, Windspeed, Barometer graphs are not working. Will post it on JPgraph thread.

Chuck


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PHP 8.1 and ajax-dashboard6.php - new deprecated notices
« Reply #21 on: April 06, 2022, 01:50:39 PM »
Great.. I've pushed the change to the Base-USA distribution.  Keep me posted if more strangeness shows up :)
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 ed2kayak

  • Ed
  • Forecaster
  • *****
  • Posts: 613
  • Davis Vantage Pro2 w/12 hr FARS, solar/uv
    • Cumberland Valley Weather
Re: PHP 8.1 and ajax-dashboard6.php - new deprecated notices
« Reply #22 on: April 06, 2022, 01:59:02 PM »
What version of JPGraph are you using?
I have  v4.3.1.
http://cvweather.org/wxgraphs/wxgraphs_test.html and http://cvweather.org/wxastronomy.php
do not work with PHP 8.1
I reverted back to PHP 7.4 to test and they run OK.
Ed
CoCoRaHS PA-CD-6,  Weather Underground KPAMECHA7, CWOP DW5425

Offline andro700

  • Chuck
  • Forecaster
  • *****
  • Posts: 420
    • Gobles Weather Page
Re: PHP 8.1 and ajax-dashboard6.php - new deprecated notices
« Reply #23 on: April 06, 2022, 02:16:37 PM »
I have version 10.4. Here is the link. https://github.com/mitoteam/jpgraph. I am starting a thread on Weather-Watch. But here is a link to my jpgraph test page and you can see the Windspeed, Barometer, and Rain graphs are broken.

Chuck

Offline ed2kayak

  • Ed
  • Forecaster
  • *****
  • Posts: 613
  • Davis Vantage Pro2 w/12 hr FARS, solar/uv
    • Cumberland Valley Weather
Re: PHP 8.1 and ajax-dashboard6.php - new deprecated notices
« Reply #24 on: April 06, 2022, 02:18:24 PM »
Thanks, I'll check it out.
Ed
CoCoRaHS PA-CD-6,  Weather Underground KPAMECHA7, CWOP DW5425