minor problems with php 8.1

Post Reply
User avatar
meteoesine
Forecaster
Forecaster
Posts: 166
Joined: Sun Aug 20, 2017 4:08 pm
Location: Esine, Valcamonica (BS) - Italy
Station model: Davis Pro2+
Software: Meteobridge nano
Contact:

minor problems with php 8.1

Post by meteoesine » Thu Aug 25, 2022 12:35 pm

found the following:

if you modify a field in the Database Editing - Extra Sensors, when you reload the page the previous data is shown (modification not made). ok instead if you delete the entire record.
*********************
plugin stationExtremes:
https://meteoesine.it/template/plugins/ ... onthly.php
Deprecated: number_format(): Passing null to parameter #1 ($num) of type float is deprecated in /home/cldvlwax/public_html/template/plugins/stationExtremes/monthly.php on line 44
Deprecated: number_format(): Passing null to parameter #1 ($num) of type float is deprecated in /home/cldvlwax/public_html/template/plugins/stationExtremes/monthly.php on line 62

https://meteoesine.it/template/plugins/ ... /daily.php
Deprecated: number_format(): Passing null to parameter #1 ($num) of type float is deprecated in /home/cldvlwax/public_html/template/plugins/stationExtremes/daily.php on line 56
Deprecated: number_format(): Passing null to parameter #1 ($num) of type float is deprecated in /home/cldvlwax/public_html/template/plugins/stationExtremes/daily.php on line 75
*******************************
plugin: windDirection
https://meteoesine.it/template/plugins/ ... lector.php
periodic graph (both wind and gust) when selecting a period greater than 1 day it freezes
*********************************
https://meteoesine.it/template/pages/st ... ndices.php
does not work (blank page)
:arrow: https://meteoesine.it
ham wx aprs/cwop: IW2LAO-13

Image

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: minor problems with php 8.1

Post by davidefa » Thu Aug 25, 2022 8:46 pm

I've updated your pages.
Regarding the database editing that fails, I noticed that too, it should fail when editing a line with null values ( I should have corrected in this admin mod: viewtopic.php?f=51&t=2298#p11653, did not install in your server )
Image

User avatar
meteoesine
Forecaster
Forecaster
Posts: 166
Joined: Sun Aug 20, 2017 4:08 pm
Location: Esine, Valcamonica (BS) - Italy
Station model: Davis Pro2+
Software: Meteobridge nano
Contact:

Re: minor problems with php 8.1

Post by meteoesine » Fri Aug 26, 2022 5:37 am

tnx u very much
:arrow: https://meteoesine.it
ham wx aprs/cwop: IW2LAO-13

Image

User avatar
meteoesine
Forecaster
Forecaster
Posts: 166
Joined: Sun Aug 20, 2017 4:08 pm
Location: Esine, Valcamonica (BS) - Italy
Station model: Davis Pro2+
Software: Meteobridge nano
Contact:

Re: minor problems with php 8.1

Post by meteoesine » Thu Sep 01, 2022 5:53 pm

It's not a problem, but just a clarification:
my alldataExtra database was created in May,
in the statistics .../template/pages/station/climate.php?var=xxx it displays 0 although it should be null
there are no 0 values, is that correct?
tnx
Attachments
ScreenShot01141.jpg
ScreenShot01141.jpg (29.15 KiB) Viewed 1118 times
ScreenShot01139.jpg
ScreenShot01139.jpg (37.96 KiB) Viewed 1118 times
ScreenShot01142.jpg
ScreenShot01142.jpg (22.73 KiB) Viewed 1118 times
:arrow: https://meteoesine.it
ham wx aprs/cwop: IW2LAO-13

Image

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: minor problems with php 8.1

Post by davidefa » Thu Sep 01, 2022 8:59 pm

Yes, null values should not be treated as 0 values ( noticed this even in other blocks pages ).
Image

User avatar
meteoesine
Forecaster
Forecaster
Posts: 166
Joined: Sun Aug 20, 2017 4:08 pm
Location: Esine, Valcamonica (BS) - Italy
Station model: Davis Pro2+
Software: Meteobridge nano
Contact:

Re: minor problems with php 8.1

Post by meteoesine » Sun Jan 08, 2023 7:42 am

happy new year to all the forum
I noticed that in the rain statistics (only that), selecting by year, it displays only that of 2014 while all the others (all months) are displayed correctly,

https://meteoesine.it/template/pages/st ... .php?var=R

some idea?
thank you
Attachments
2023-01-08_083244.png
2023-01-08_083244.png (21.01 KiB) Viewed 685 times
:arrow: https://meteoesine.it
ham wx aprs/cwop: IW2LAO-13

Image

User avatar
Jolumarali
Forecaster
Forecaster
Posts: 240
Joined: Sun Aug 20, 2017 2:06 pm
Location: Lignerolles
Station model: Vantage Vue
Software: WlIP
Contact:

Re: minor problems with php 8.1

Post by Jolumarali » Sun Jan 08, 2023 10:22 am

good morning
No problem for me, I'm still on PHP 7.4 !

José Luis
Image
Station météo amateur Lignerolles
OS : Windows 10 Famille
Vantage Vue
Weatherlink 2.0 (WlIP)
Meteotemplate 18.0 Papaya

https://meteo-lignerolles.fr

José Luis

FSC830
Forecaster
Forecaster
Posts: 139
Joined: Thu Aug 02, 2018 11:40 am
Station model: Davis Vantage Pro2
Software: Meteobridge

Re: minor problems with php 8.1

Post by FSC830 » Sat Jan 21, 2023 11:20 pm

meteoesine wrote: Sun Jan 08, 2023 7:42 am happy new year to all the forum
I noticed that in the rain statistics (only that), selecting by year, it displays only that of 2014 while all the others (all months) are displayed correctly,

https://meteoesine.it/template/pages/st ... .php?var=R

some idea?
thank you
Hi,
how did you fix that?
Having the same issue here :shock: , only an empty 1970 is displayed.

Regards

Edit: Forget the question, just checked again and now all years are displayed. When I called this page earlier this day only 1970 was showed up. Strange... self healing mystery of data :D (or it did take some time).
Image

User avatar
meteoesine
Forecaster
Forecaster
Posts: 166
Joined: Sun Aug 20, 2017 4:08 pm
Location: Esine, Valcamonica (BS) - Italy
Station model: Davis Pro2+
Software: Meteobridge nano
Contact:

Re: minor problems with php 8.1

Post by meteoesine » Mon Jan 23, 2023 3:51 pm

as far as I'm concerned it's a matter of php 8.1 ... putting back 7.4 it works correctly (so while it still goes, I keep that ;) )
:arrow: https://meteoesine.it
ham wx aprs/cwop: IW2LAO-13

Image

FSC830
Forecaster
Forecaster
Posts: 139
Joined: Thu Aug 02, 2018 11:40 am
Station model: Davis Vantage Pro2
Software: Meteobridge

Re: minor problems with php 8.1

Post by FSC830 » Mon Jan 23, 2023 8:35 pm

Ah, thats why it actually shows all years, you are back to 7.4 :D .
But as written above in my edit, it was fixed after some hours.

I am still running now at PHP 8.1.14.

Regards
Image

Post Reply