Page 1 of 1

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

Posted: Sun Apr 21, 2024 7:41 am
by T-man
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

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

Posted: Mon Apr 29, 2024 5:38 pm
by linux150
Any help, here the same after update 19 and php 8.3

LG
Martin

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

Posted: Mon Apr 29, 2024 6:39 pm
by lemimi
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

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

Posted: Wed May 01, 2024 8:31 pm
by enephler
Meteotemplate 19 and PHP 8.x do not play well together. If you have the option, go back to PHP 7.x.

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

Posted: Wed May 01, 2024 9:09 pm
by lemimi
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.

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

Posted: Wed May 01, 2024 9:47 pm
by linux150
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

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

Posted: Thu May 02, 2024 1:44 am
by linux150
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 ?

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

Posted: Thu May 02, 2024 8:21 pm
by lemimi
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

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

Posted: Thu May 02, 2024 9:55 pm
by linux150
Many thanks, you made my day. Now the last part of my site working again.

Greetings Martin

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

Posted: Thu May 09, 2024 5:22 pm
by T-man
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

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

Posted: Mon May 13, 2024 4:13 pm
by alexvanuxem
for which plugin is this for?

grtz

alex

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

Posted: Mon May 13, 2024 6:13 pm
by lemimi
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

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

Posted: Tue May 14, 2024 3:58 pm
by alexvanuxem
hi,
thx found it, i was looking under 'plugins', and i'ts under 'pages' lol

grtz

a

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

Posted: Tue May 14, 2024 5:27 pm
by lemimi
Glad to have been able to help you...
Michel

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

Posted: Wed Jun 26, 2024 8:01 am
by meteolopik
Thank you Michel!

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

Posted: Fri Jul 05, 2024 12:19 am
by milesb
enephler wrote: 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.
This is not an option with some hosting companies. I have the option to revert to PHP 7.x, but they will charge a "PHP7 support fee" that is greater than my monthly hosting fee.