Page 2 of 6
Re: Meteotemplate - process of updating
Posted: Fri Jul 07, 2023 8:20 am
by Julius
Jachym wrote: ↑Sat May 13, 2023 4:28 pm
Then I will update some blocks/plugins which are also affected by PHP8 incompatibility (I do not quite understand some of the changes in PHP8, it is fine to introduce new functions, but I do not get why they deprecated so many functions, replaced them with newer ones and the original ones now throw fatal errors and make pages non-functional, but not much I can do about it).
Great to see you're still there!
I agree, the deprecated functions, and especially the totally useless renaming of many is ridiculous. But then again, I remember decades ago when I worked at a hosting/webdev company many developers really deeply hated php because their lead-creators were truly behaving like selfish *ssholes (sorry, but true), they made decisions in upgrades that seem to exist solely to please themselves and not its users. Arguments like "we liked that name better than the previous one", for much used functionality, forcing all its users to do cumbersome search and replace actions on their php code everywhere. It's always been like that with php, and as it grew larger and larger they had to comply some more to user response and feedback, but the core decider team are still the same people. It's sad that php grew so large. There were other better options.
Anyway, we now work with what we have. Good luck!
Re: Meteotemplate - process of updating
Posted: Tue Jul 11, 2023 4:35 pm
by livefeed
How are we looking on these new files? Happy to help and try out.
Re: Meteotemplate - process of updating
Posted: Wed Jul 12, 2023 4:32 pm
by spd2612
Glad to see this is being updated
Waiting Paitently
Re: Meteotemplate - process of updating
Posted: Tue Jul 18, 2023 10:38 pm
by LOBWX
Sweet!
Re: Meteotemplate - process of updating
Posted: Sun Jul 23, 2023 8:25 am
by Jachym
Hi guys,
within the upcoming days I will be sending the update files to certain users that asked to test it. I assume it will then be soon ready for public release.
Please note: I fixed dozens of bugs and incompatibilities. However, there are still some things that need to be solved, for example the forecast page from Darksky, which no longer works. This is a very time-consuming process and requires not just coding but also trying to find a suitable provider - free (that is the issue).
Given how urgent this update is given PHP8 is now a standard, I will try to fix this in version 20 and release this ASAP.
Re: Meteotemplate - process of updating
Posted: Sun Jul 23, 2023 2:10 pm
by tobydude
Great.
Re: Meteotemplate - process of updating
Posted: Mon Jul 24, 2023 3:29 pm
by livefeed
Thank you!
Can't wait.
Re: Meteotemplate - process of updating
Posted: Thu Jul 27, 2023 4:35 pm
by spd2612
I would love to have the files for Meteotemplate 19.0 Cranberry
I would like to run it in a new vm To be able to test all that I have running on 18
Re: Meteotemplate - process of updating
Posted: Tue Aug 08, 2023 12:38 pm
by alexvanuxem
Any update on this?
Re: Meteotemplate - process of updating
Posted: Tue Aug 08, 2023 4:26 pm
by FSC830
Running the "pre-release" version since abt. 2 weeks, found some minor bugs and informed Jachym.
Latest bug report was last Friday, so my guess he is working at an official release.
My test VM is a 1:1 copy of my website, so all plugins/blocks used at official site are running at the MT19 too.
Please take this as an unofficial note, I do not know anything about Jachyms time schedule.
Regards
Re: Meteotemplate - process of updating
Posted: Wed Aug 09, 2023 7:02 am
by alexvanuxem
THX!!!
Re: Meteotemplate - process of updating
Posted: Sun Aug 13, 2023 5:52 am
by Jachym
Hi guys,
I think the new version is ready. It does not fix everything, this is mostly because the plugins and blocks run separately and thus need to be updated separately too. However, this update should make the template as such work under the most recent PHP (I test with PHP8.2).
I temporarily placed the download file in a separate location on my server so that some of you here can test it (once I officially release the update the link below will no longer work).
If you want, you can try it, I would appreciate more users testing it. The advantage for you is that you will be able to run version 19 before official release, downside is that it needs to be updated manually (via FTP) if it is not officially released yet. Please make a backup of all files before proceeding.
Once you download the file linked below, unzip it and inside you will see the same structure of folders as in your template. What you need to do is replace the equivalent files via FTP on your server in the template folder. Make sure to overwrite the individual files, never replace folders because the folders in the update file only contain the updated files, not the entire folder so replacing entire folders would delete many files in the template. A few changes are also related to the fact meteotemplate.com domain is now https (http previously).
This should be the most recent version of the update with fixed issues that were discovered by some of you during testing already (thanks!).
https://meteotemplate.com/update_19.0.zip
Any feedback is highly appreciated.
Re: Meteotemplate - process of updating
Posted: Sun Aug 13, 2023 7:31 am
by Oli
Thanks, I'll try not using my main provider.
Under php 8.1 I see so far only the header of the homepage (the logo with the name of my place and the values in the bottom left and the dynamic background set by the current weather).

- Screenshot 2023-08-13 at 09.29.jpg (35.05 KiB) Viewed 78033 times
Re: Meteotemplate - process of updating
Posted: Sun Aug 13, 2023 3:15 pm
by spd2612
Jachym wrote: ↑Sun Aug 13, 2023 5:52 am
Hi guys,
I think the new version is ready. It does not fix everything, this is mostly because the plugins and blocks run separately and thus need to be updated separately too. However, this update should make the template as such work under the most recent PHP (I test with PHP8.2).
I temporarily placed the download file in a separate location on my server so that some of you here can test it (once I officially release the update the link below will no longer work).
If you want, you can try it, I would appreciate more users testing it. The advantage for you is that you will be able to run version 19 before official release, downside is that it needs to be updated manually (via FTP) if it is not officially released yet. Please make a backup of all files before proceeding.
Once you download the file linked below, unzip it and inside you will see the same structure of folders as in your template. What you need to do is replace the equivalent files via FTP on your server in the template folder. Make sure to overwrite the individual files, never replace folders because the folders in the update file only contain the updated files, not the entire folder so replacing entire folders would delete many files in the template. A few changes are also related to the fact meteotemplate.com domain is now https (http previously).
This should be the most recent version of the update with fixed issues that were discovered by some of you during testing already (thanks!).
https://meteotemplate.com/update_19.0.zip
Any feedback is highly appreciated.
Thank You Jachym
I will start testing this week
Re: Meteotemplate - process of updating
Posted: Mon Aug 14, 2023 12:10 pm
by Jachym
Oli wrote: ↑Sun Aug 13, 2023 7:31 am
Thanks, I'll try not using my main provider.
Under php 8.1 I see so far only the header of the homepage (the logo with the name of my place and the values in the bottom left and the dynamic background set by the current weather).
Screenshot 2023-08-13 at 09.29.jpg
Can you please send me a link to your test environment? You can email it to me if you do not want to post it here publicly.
Re: Meteotemplate - process of updating
Posted: Mon Aug 14, 2023 2:05 pm
by spd2612
@jachym
I could set you up a VM for all your testing
You could connect that to my weather Station
It would take me a few days to build it from scratch and I could install PHP of your choice
PM me if you are intrested
Re: Meteotemplate - process of updating
Posted: Mon Aug 14, 2023 3:57 pm
by alexvanuxem
i can confirm a privious post : only the banner is shown after update

Re: Meteotemplate - process of updating
Posted: Mon Aug 14, 2023 5:43 pm
by micjon
It is something with language, when you set "us" as lang in config.php, then it is working.
Re: Meteotemplate - process of updating
Posted: Mon Aug 14, 2023 5:47 pm
by micjon
Error in log:
[php:error] [pid 8481] [client :42498] PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /var/www/html/meteotemplate/scripts/functions.php:114\nStack trace:\n#0 /var/www/html/meteotemplate/menu.php(482): lang()\n#1 /var/www/html/meteotemplate/indexDesktop.php(374): include('...')\n#2 {main}\n thrown in /var/www/html/meteotemplate/scripts/functions.php on line 114,
Re: Meteotemplate - process of updating
Posted: Tue Aug 15, 2023 7:39 am
by Jachym
Hi all,
please try replacing the scripts/functions.php with an updated version, I think I know what the problem is.
Re: Meteotemplate - process of updating
Posted: Tue Aug 15, 2023 8:01 am
by micjon
yes, it is working again
Re: Meteotemplate - process of updating
Posted: Tue Aug 15, 2023 9:55 am
by beaumariswx
Hi Jachym,
Installed, all 19.0 seems good, though I'm still using PHP version : 7.3.33.
https://beaumaris-weather.com/meteobeau ... esktop.php
Kind Regards,
Tony
Re: Meteotemplate - process of updating
Posted: Tue Aug 15, 2023 2:38 pm
by Oli
Jachym wrote: ↑Tue Aug 15, 2023 7:39 am
please try replacing the scripts/functions.php with an updated version, I think I know what the problem is.
I can confirm that it now works for me too.
edit: run it on my mainpage now and everything seems to run fine, at first under php 7.4 and now I switched to php 8.2.8

Re: Meteotemplate - process of updating
Posted: Tue Aug 15, 2023 5:26 pm
by spd2612
I updated my site to Cranberry and all seems well running on PHP version 8.1.21
Should I still replace the the scripts/functions.php with an updated version?
I am using Ecowitt version 3.2 with a WS-5000 and a GW-1000 seems to be updating just fine every 6 sec thanks to FOSHKplugin Software
Spoke to soon Summary Block is not loading
Lots of errors in summary block 5.8 Not sure if this can be fixed easy
https://hurricanepub.com/template/homep ... php?errors
Re: Meteotemplate - process of updating
Posted: Tue Aug 15, 2023 6:04 pm
by tobydude
I tried to upgrade php on my web hotel to 8.2. Meteotemplate did´nt work.
8.0 and 8.1, some blocs didn´t show.
Set php back to 7.4 and all worked again.
