Problem update.php
- ACpower
- Observer
- Posts: 10
- Joined: Fri Mar 03, 2023 3:59 pm
- Location: Cesano Boscone (MI)
- Station model: Ecowit GW1100
- Contact:
Problem update.php
Good morning everyone
I have a problem with the "Server to Server connections", from Altervista assistance they tell me that they are blocked "due to a request loop towards /template/update/update.php", otherwise the site would have gone offline. They ask me to check the scripts, to rule out that something like this could happen again.
What can I do?
Thank you for the help
Alessandro
I have a problem with the "Server to Server connections", from Altervista assistance they tell me that they are blocked "due to a request loop towards /template/update/update.php", otherwise the site would have gone offline. They ask me to check the scripts, to rule out that something like this could happen again.
What can I do?
Thank you for the help
Alessandro
- ACpower
- Observer
- Posts: 10
- Joined: Fri Mar 03, 2023 3:59 pm
- Location: Cesano Boscone (MI)
- Station model: Ecowit GW1100
- Contact:
Re: Problem update.php
Sorry guys no body can help me?
Thank you
Thank you

-
- Advisor
- Posts: 98
- Joined: Thu Aug 02, 2018 11:40 am
- Station model: Davis Vantage Pro2
- Software: Meteobridge
Re: Problem update.php
Sorry, actually no, no idea.
I am using the API, also, what are you naming "server to server connection"?
As far as I have read you need a cron job running for the update.php.
Where do the tech guys see a loop? May be with some more information we can get closer to the problem.
Regards
I am using the API, also, what are you naming "server to server connection"?
As far as I have read you need a cron job running for the update.php.
Where do the tech guys see a loop? May be with some more information we can get closer to the problem.
Regards
- ACpower
- Observer
- Posts: 10
- Joined: Fri Mar 03, 2023 3:59 pm
- Location: Cesano Boscone (MI)
- Station model: Ecowit GW1100
- Contact:
Re: Problem update.php
Thanks for your help
I don't know if it can help this is my site https://meteocesanobisonzo.altervista.o ... esktop.php
as you can see some blocks do not communicate with the servers, the Altervista provider tells me that I should enable the "Server to Server connections" from the resources panel, but it seems that the outward connections have been blocked due to a request loop towards /template/update /update.php, otherwise the site would go offline due to too many requests.
So they tell me to verify the script !!!
Hope is more clear for you... for me no
Grazie mille
I don't know if it can help this is my site https://meteocesanobisonzo.altervista.o ... esktop.php
as you can see some blocks do not communicate with the servers, the Altervista provider tells me that I should enable the "Server to Server connections" from the resources panel, but it seems that the outward connections have been blocked due to a request loop towards /template/update /update.php, otherwise the site would go offline due to too many requests.
So they tell me to verify the script !!!
Hope is more clear for you... for me no

Grazie mille
-
- Advisor
- Posts: 98
- Joined: Thu Aug 02, 2018 11:40 am
- Station model: Davis Vantage Pro2
- Software: Meteobridge
Re: Problem update.php
Which PHP version are you running at your host? PHP 8.x?
Did the blocks (i.e. meteogram) ever worked with current PHP version?
What is the origin file name (download name) of the blocks at left site: Previsione, Aria?
Regards
Did the blocks (i.e. meteogram) ever worked with current PHP version?
What is the origin file name (download name) of the blocks at left site: Previsione, Aria?
Regards
- ACpower
- Observer
- Posts: 10
- Joined: Fri Mar 03, 2023 3:59 pm
- Location: Cesano Boscone (MI)
- Station model: Ecowit GW1100
- Contact:
Re: Problem update.php
PHP 7.3.33 I don't know if is the correct info but I foud it in /Controll Pannel /Info Template
For me is the first time that use all so I don't know if the blocks works before
Previsione: myForecast but this block is ok I shoul only compilate it
Aria: Air Quality Index World 3.0
other blocks that don't work are:
ForecastIT and partially forecast that works only for meteoblue
For me is the first time that use all so I don't know if the blocks works before
Previsione: myForecast but this block is ok I shoul only compilate it
Aria: Air Quality Index World 3.0
other blocks that don't work are:
ForecastIT and partially forecast that works only for meteoblue
-
- Advisor
- Posts: 98
- Joined: Thu Aug 02, 2018 11:40 am
- Station model: Davis Vantage Pro2
- Software: Meteobridge
Re: Problem update.php
Ok, a new installation. That makes some things more easy, others more difficult
.
First thing which is may be difficult: as far as I understand the template is hosted by a provider named Altervista.
So please check if you can set the PHP version to 8.0 or 8.1.
v7.3 is really really outdated and a lot of provides (mine too) have already canceled support for PHP 7.4 (one version above yours!)
Again: this is the first you should take care about. Most providers allow to set the PHP version by a control menu in customer section.
I do not know Altervista, so I cant you guide for that.
Next, which is may be easier: you will find several archives with updated versions in this thread: meteotemplate php 8.0/8.1.
Read the thread carefully there is no single point where you can pickup all archives at once
The most important are here:
http://www.meteotemplate.com/forum/view ... 170#p11828
http://www.meteotemplate.com/forum/view ... 362#p12173
http://www.meteotemplate.com/forum/view ... =50#p12130
If you like:
http://www.meteotemplate.com/forum/view ... =25#p12212
With these archives at least the basic installation should run. Currently not all blocks/plugins are running with PHP 8.x, but PHP7 is like riding a dead horse...
So my recommendation is the start install again with the files from archives.
Do a backup of your files, easiest way is to rename your current template directory to template.old, create a new template directory and put files there. Then start from scratch.
or as an alternative: always rename the current files prior copying the files from archive to the template folder.
I.e. if you replace the header.php, rename the current file header.php to header.php.old and cp the header.php from archive to director.
In case of any error, you can step back by renaming the old file.
Regards
Edit: Just checked the Air Quality and the forecastIT blocks.
For forecastIT you will find a newer version here: viewtopic.php?f=56&t=2358&p=12187&hilit ... tIT#p12116.
At least the local data works.
The Air Quality block needs an update too, seems, that the site https://aqicn.org have changed a bit, so the data is not any longer found correct.

First thing which is may be difficult: as far as I understand the template is hosted by a provider named Altervista.
So please check if you can set the PHP version to 8.0 or 8.1.
v7.3 is really really outdated and a lot of provides (mine too) have already canceled support for PHP 7.4 (one version above yours!)
Again: this is the first you should take care about. Most providers allow to set the PHP version by a control menu in customer section.
I do not know Altervista, so I cant you guide for that.
Next, which is may be easier: you will find several archives with updated versions in this thread: meteotemplate php 8.0/8.1.
Read the thread carefully there is no single point where you can pickup all archives at once

The most important are here:
http://www.meteotemplate.com/forum/view ... 170#p11828
http://www.meteotemplate.com/forum/view ... 362#p12173
http://www.meteotemplate.com/forum/view ... =50#p12130
If you like:
http://www.meteotemplate.com/forum/view ... =25#p12212
With these archives at least the basic installation should run. Currently not all blocks/plugins are running with PHP 8.x, but PHP7 is like riding a dead horse...

So my recommendation is the start install again with the files from archives.
Do a backup of your files, easiest way is to rename your current template directory to template.old, create a new template directory and put files there. Then start from scratch.
or as an alternative: always rename the current files prior copying the files from archive to the template folder.
I.e. if you replace the header.php, rename the current file header.php to header.php.old and cp the header.php from archive to director.
In case of any error, you can step back by renaming the old file.
Regards
Edit: Just checked the Air Quality and the forecastIT blocks.
For forecastIT you will find a newer version here: viewtopic.php?f=56&t=2358&p=12187&hilit ... tIT#p12116.
At least the local data works.
The Air Quality block needs an update too, seems, that the site https://aqicn.org have changed a bit, so the data is not any longer found correct.
- ACpower
- Observer
- Posts: 10
- Joined: Fri Mar 03, 2023 3:59 pm
- Location: Cesano Boscone (MI)
- Station model: Ecowit GW1100
- Contact:
Re: Problem update.php
Wow too many thing to do
I'm not sure I can do everything
, if I understand correctly the first thing to do is rename copy the template dir and then rename it I work on the new right?
Really thank you to all time you spend!
I'm not sure I can do everything

Really thank you to all time you spend!
-
- Advisor
- Posts: 98
- Joined: Thu Aug 02, 2018 11:40 am
- Station model: Davis Vantage Pro2
- Software: Meteobridge
Re: Problem update.php
No, the first thing is moving away from PHP 7.x.
If the customer control panel for your provider has not an option for setting PHP version ask the providers support for change to PHP 8.0 (or 8.1).
If PHP 8.x is active, then next steps are to be done.
Regards
If the customer control panel for your provider has not an option for setting PHP version ask the providers support for change to PHP 8.0 (or 8.1).
If PHP 8.x is active, then next steps are to be done.
Regards
- ACpower
- Observer
- Posts: 10
- Joined: Fri Mar 03, 2023 3:59 pm
- Location: Cesano Boscone (MI)
- Station model: Ecowit GW1100
- Contact:
Re: Problem update.php
no ok the provider has the possibility and in fact I had already tried but when I changed from 7 to 8 the connections with the station were not working.
Now it's clear to me I have to proceed as described in the posts you have indicated to me then download andp php8_1.1 and the others
Now it's clear to me I have to proceed as described in the posts you have indicated to me then download andp php8_1.1 and the others
- ACpower
- Observer
- Posts: 10
- Joined: Fri Mar 03, 2023 3:59 pm
- Location: Cesano Boscone (MI)
- Station model: Ecowit GW1100
- Contact:
Re: Problem update.php
Hello again
I did some tests during the weekend, I created the template1 dir as suggested, uploaded the php8_1.1 file, updated the Ecowitt 3.3 plugin, all with php 8.0 sets (I didn't try with 8.2), so however the station does offline.
With this set in the Meteotemplate control panel I no longer have access to the block setup (blank page) while for the plugin I can finally also update and check the versions.
I noticed that in the root there are .zip files like: distributions_3.1.zip, evapoTransp_1.2a.zip, indoorData_4.3.zip etc, should I do anything with these?
Thanks again
Alessandro
I did some tests during the weekend, I created the template1 dir as suggested, uploaded the php8_1.1 file, updated the Ecowitt 3.3 plugin, all with php 8.0 sets (I didn't try with 8.2), so however the station does offline.
With this set in the Meteotemplate control panel I no longer have access to the block setup (blank page) while for the plugin I can finally also update and check the versions.
I noticed that in the root there are .zip files like: distributions_3.1.zip, evapoTransp_1.2a.zip, indoorData_4.3.zip etc, should I do anything with these?
Thanks again
Alessandro
-
- Advisor
- Posts: 98
- Joined: Thu Aug 02, 2018 11:40 am
- Station model: Davis Vantage Pro2
- Software: Meteobridge
Re: Problem update.php
Its sometimes a mess with PHP 8.x
...
And in most cases the cause is individual, sometimes some server settings are wrong, sometimes mysql.
And sometimes its still a page that will not work.
Dont know anything about the zip files, they are may be EcoWitt?
Regards

And in most cases the cause is individual, sometimes some server settings are wrong, sometimes mysql.
And sometimes its still a page that will not work.

Dont know anything about the zip files, they are may be EcoWitt?
Regards
Last edited by FSC830 on Wed Mar 29, 2023 3:23 pm, edited 1 time in total.
- ACpower
- Observer
- Posts: 10
- Joined: Fri Mar 03, 2023 3:59 pm
- Location: Cesano Boscone (MI)
- Station model: Ecowit GW1100
- Contact:
Re: Problem update.php
I try again all
when I change from php7.3 to pHp8 or 8.2 (the only two possibility) the trasmission of my Ecowitt goes offline, I verify the parameter in the app on DIY upload in Customize I changed the paht with the new one but nothing changed.
I don't think the .zip files are from the station they only appeared after installing the php8 update
I'm sorry I'm sure the problems are due to my mistakes, I reset everything to php7.3 at least almost everything works.
Thanks for the effort
Ale
when I change from php7.3 to pHp8 or 8.2 (the only two possibility) the trasmission of my Ecowitt goes offline, I verify the parameter in the app on DIY upload in Customize I changed the paht with the new one but nothing changed.
I don't think the .zip files are from the station they only appeared after installing the php8 update
I'm sorry I'm sure the problems are due to my mistakes, I reset everything to php7.3 at least almost everything works.
Thanks for the effort
Ale