"Station climate" page non-functional after updating to 19.0 and PHP 8.x

Post Reply
T-man
Observer
Observer
Posts: 24
Joined: Fri Mar 02, 2018 7:48 pm
Location: Finland
Station model: Davis Vantage Pro 2
Software: Meteobridge
Contact:

"Station climate" page non-functional after updating to 19.0 and PHP 8.x

Post by T-man » Sun Apr 21, 2024 7:41 am

After update to template 19.0 and PHP 8.x https://veikkola-saa.com/template/pages ... ndices.php shows only white page. I saw some discussion regarding similar failure, however I have normals in config.php

linux150
Observer
Observer
Posts: 21
Joined: Sat May 22, 2021 12:18 pm
Station model: WMR968
Software: SDR -> Weewx -> MT
Contact:

Re: "Station climate" page non-functional after updating to 19.0 and PHP 8.x

Post by linux150 » Mon Apr 29, 2024 5:38 pm

Any help, here the same after update 19 and php 8.3

LG
Martin

User avatar
lemimi
Advisor
Advisor
Posts: 92
Joined: Wed Dec 12, 2018 3:31 pm
Location: France - Normandie
Station model: Brandson 304557
Contact:

Re: "Station climate" page non-functional after updating to 19.0 and PHP 8.x

Post by lemimi » Mon Apr 29, 2024 6:39 pm

Hello,,
Under PHP 8.xx, a fatal error results in a blank page.
See with T-man's link above: https://veikkola-saa.com/template/pages ... ndices.php
which results in a blank page.
Add ?errors to the end of the URL to see the error generated:
https://veikkola-saa.com/template/pages ... php?errors
If it can help you... Michel

enephler
Observer
Observer
Posts: 17
Joined: Mon Sep 04, 2017 9:49 pm
Location: L'Anse, MI USA
Station model: Davis Pro2
Software: Meteobridge
Contact:

Re: "Station climate" page non-functional after updating to 19.0 and PHP 8.x

Post by enephler » Wed May 01, 2024 8:31 pm

Meteotemplate 19 and PHP 8.x do not play well together. If you have the option, go back to PHP 7.x.

User avatar
lemimi
Advisor
Advisor
Posts: 92
Joined: Wed Dec 12, 2018 3:31 pm
Location: France - Normandie
Station model: Brandson 304557
Contact:

Re: "Station climate" page non-functional after updating to 19.0 and PHP 8.x

Post by lemimi » Wed May 01, 2024 9:09 pm

Hello,
Like a few others, I'm still running Papaya version 18.0, but that has been modified here with the help of Davidefa to work under PHP 8.2.
I also found help thanks to ChatGpt and Rector PHP to improve my code.
This is indicated in the footer of my MeteoTemplate.

linux150
Observer
Observer
Posts: 21
Joined: Sat May 22, 2021 12:18 pm
Station model: WMR968
Software: SDR -> Weewx -> MT
Contact:

Re: "Station climate" page non-functional after updating to 19.0 and PHP 8.x

Post by linux150 » Wed May 01, 2024 9:47 pm

Hi!
Such a help would be great....
To stay on php 7 is no longer an option, because too expensive in support from my provider.

I think i will switch probably to 8.3 and check out what isnt working.

First of all i think the steel series is a big problem, ....

Greetings

linux150
Observer
Observer
Posts: 21
Joined: Sat May 22, 2021 12:18 pm
Station model: WMR968
Software: SDR -> Weewx -> MT
Contact:

Re: "Station climate" page non-functional after updating to 19.0 and PHP 8.x

Post by linux150 » Thu May 02, 2024 1:44 am

Now my site is running after a lot of updates on PHP8.3 expecting the climateindicies.php

Code: Select all

Deprecated: Function utf8_encode() is deprecated in /home/.sites/50/site8222718/web/template/scripts/functions.php on line 44 Deprecated: Function utf8_decode() is deprecated in /home/.sites/50/site8222718/web/template/scripts/functions.php on line 47 Deprecated: Function utf8_encode() is deprecated in /home/.sites/50/site8222718/web/template/scripts/functions.php on line 47 Deprecated: Function utf8_decode() is deprecated in /home/.sites/50/site8222718/web/template/scripts/functions.php on line 119 Deprecated: Function utf8_encode() is deprecated in /home/.sites/50/site8222718/web/template/scripts/functions.php on line 44 Deprecated: Function utf8_decode() is deprecated in /home/.sites/50/site8222718/web/template/scripts/functions.php on line 47 Deprecated: Function utf8_encode() is deprecated in /home/.sites/50/site8222718/web/template/scripts/functions.php on line 47 Deprecated: Function utf8_decode() is deprecated in /home/.sites/50/site8222718/web/template/scripts/functions.php on line 119 Deprecated: Function utf8_encode() is deprecated in /home/.sites/50/site8222718/web/template/scripts/functions.php on line 44 Deprecated: Function utf8_decode() is deprecated in /home/.sites/50/site8222718/web/template/scripts/functions.php on line 119 Deprecated: Function date_sunrise() is deprecated in /home/.sites/50/site8222718/web/template/header.php on line 141 Deprecated: Function date_sunset() is deprecated in /home/.sites/50/site8222718/web/template/header.php on line 142 Fatal error: Uncaught Error: Call to a member function format() on false in /home/.sites/50/site8222718/web/template/pages/station/climateIndices.php:368 Stack trace: #0 {main} thrown in /home/.sites/50/site8222718/web/template/pages/station/climateIndices.php on line 368
Any help ?

User avatar
lemimi
Advisor
Advisor
Posts: 92
Joined: Wed Dec 12, 2018 3:31 pm
Location: France - Normandie
Station model: Brandson 304557
Contact:

Re: "Station climate" page non-functional after updating to 19.0 and PHP 8.x

Post by lemimi » Thu May 02, 2024 8:21 pm

Hello,
Here is the file, climateIndices.php, to decompress which works for me.
https://www.lemimi.fr/chargements/templ ... ndices.zip
Maybe he will do the same for you?
Michel

linux150
Observer
Observer
Posts: 21
Joined: Sat May 22, 2021 12:18 pm
Station model: WMR968
Software: SDR -> Weewx -> MT
Contact:

Re: "Station climate" page non-functional after updating to 19.0 and PHP 8.x

Post by linux150 » Thu May 02, 2024 9:55 pm

Many thanks, you made my day. Now the last part of my site working again.

Greetings Martin

T-man
Observer
Observer
Posts: 24
Joined: Fri Mar 02, 2018 7:48 pm
Location: Finland
Station model: Davis Vantage Pro 2
Software: Meteobridge
Contact:

Re: "Station climate" page non-functional after updating to 19.0 and PHP 8.x

Post by T-man » Thu May 09, 2024 5:22 pm

lemimi wrote: Thu May 02, 2024 8:21 pm Hello,
Here is the file, climateIndices.php, to decompress which works for me.
https://www.lemimi.fr/chargements/templ ... ndices.zip
Maybe he will do the same for you?
Michel
Thank you! Works like a charm.
-Timo

alexvanuxem
Forecaster
Forecaster
Posts: 184
Joined: Mon Jan 31, 2022 4:41 pm
Location: Sint-Katelijne-Waver, Belgium
Station model: Davis Vantage Pro 2
Software: Meteobridge
Contact:

Re: "Station climate" page non-functional after updating to 19.0 and PHP 8.x

Post by alexvanuxem » Mon May 13, 2024 4:13 pm

for which plugin is this for?

grtz

alex
Image

User avatar
lemimi
Advisor
Advisor
Posts: 92
Joined: Wed Dec 12, 2018 3:31 pm
Location: France - Normandie
Station model: Brandson 304557
Contact:

Re: "Station climate" page non-functional after updating to 19.0 and PHP 8.x

Post by lemimi » Mon May 13, 2024 6:13 pm

Good morning,
If you open this page of your site:
https://www.sint-katelijne-waver-meteo. ... ndices.php
This displays a blank page, and if you add ?errors to the end of this url, you will see that you have a Fatal Error.
The file I provided for download above works well for me and has also solved the problem for a few people who had this problem.
Good luck... Michel

alexvanuxem
Forecaster
Forecaster
Posts: 184
Joined: Mon Jan 31, 2022 4:41 pm
Location: Sint-Katelijne-Waver, Belgium
Station model: Davis Vantage Pro 2
Software: Meteobridge
Contact:

Re: "Station climate" page non-functional after updating to 19.0 and PHP 8.x

Post by alexvanuxem » Tue May 14, 2024 3:58 pm

hi,
thx found it, i was looking under 'plugins', and i'ts under 'pages' lol

grtz

a
Image

User avatar
lemimi
Advisor
Advisor
Posts: 92
Joined: Wed Dec 12, 2018 3:31 pm
Location: France - Normandie
Station model: Brandson 304557
Contact:

Re: "Station climate" page non-functional after updating to 19.0 and PHP 8.x

Post by lemimi » Tue May 14, 2024 5:27 pm

Glad to have been able to help you...
Michel

Post Reply