Page 1 of 1

Meteotemplate - API issue

Posted: Mon Feb 19, 2024 11:01 am
by MatteoCarnelos
Hi everybody,
I open this topic because I have a problem with the connection between the meterobridge and meteotemplate: in the website I see the image enclosed.

It worked until three days ago, then, I don't understand why, it stopped to works.
But as you can see, the others connections (WU and Wetather34) work correctly.

Can you help me to solve or give me information how can I understand the problem?

Thank you.
Matteo.

Re: Meteotemplate - API issue

Posted: Wed Feb 21, 2024 12:40 pm
by minoic
Hello Matteo,
I discovered that I have the problem and cannot find any solution.

The steps that I went through:

in Meteobridge:

Do you see any error message at the top of the screen that you included?. Usually there is a message there.
I received initially an error 500. Later the message that the admin password was used. Now I receive only Error: Meteotemplate: with nothing else

in Meteotemplate

Go to ADMIN-Main Setup Screen. Check Server + check SQL. Eventually change update password and use it in the Meteobridge.

My site is hosted externally, I checked the host but there are no errors and the database is ok.

No idea.

Let me know if you find something.

thanks

Georgios

Re: Meteotemplate - API issue

Posted: Wed Feb 21, 2024 2:57 pm
by MatteoCarnelos
Hello Minoic,

in Meteobridge:
I don't understand why there isn't the reason of error in red: see highlighted in yellow in the picture "Empty" enclosed.
So I tried to put a wrong URL or a wrong password and the error reason appears in both the cases: see highlighted in yellow in the pictures "WrongURL" and "WrongPW" enclosed.

in Meteotemplate:
I tried to change password --> no succes
I tried to change API (creating a new one) --> no success
Server check --> OK
PHP version: You are using PHP version 8.0.30, which is OK.
CURL extension: CURL extension is enabled on your server.
url_fopen: The url_fopen is enabled on your server.

Test connection (MySQL Database) --> OK
Success: A proper connection to MySQL was made!
Table already exists.


I don't know what to do more... I'm so sad :'(

Re: Meteotemplate - API issue

Posted: Thu Feb 22, 2024 8:59 pm
by minoic
Hello Matteo,
I resolved the issue by going back to PHP 7xx.
Something must have happened with my installation since the last update of meteotemplate was to upgrade to PHP 8. I will go back to that tomorrow and, if needed, over the weekend. Maybe I'll do a fresh install of the last update.

Anyway, at the moment data is going correctly from meteobridge to meteotemplate.

Will keep you posted.

Re: Meteotemplate - API issue

Posted: Thu Feb 22, 2024 9:44 pm
by MatteoCarnelos
Oh ok.
Can you explain better what you did and how to do it?
I'm not much skilled :roll:

Re: Meteotemplate - API issue

Posted: Fri Feb 23, 2024 5:50 am
by minoic
Matteo,
before you do anything else, please tell me following:

Are you running your own webserver or are you using a hosting service?
Which version of meteotemplate are you running? Are you on version 19 Cranberry?
When did the problems started?

Can you please tell me the complete URL that you enter in Meteobridge to access the meteotemplate API.PHP file?
I do NOT send any passwords.
From the pictures you have included is not clear whether you are accessing the right template directories. I can only see https://simonicco.altervista.org/Meteotem....... I need the rest. Did you try https://www.simonicco.........

Cheers

Re: Meteotemplate - API issue

Posted: Fri Feb 23, 2024 11:07 am
by MatteoCarnelos
Are you running your own webserver or are you using a hosting service?
I'm using altervista.org as hosting service

Which version of meteotemplate are you running? Are you on version 19 Cranberry?
Meteotemplate 19.0 Cranberry, updated few months ago

When did the problems started?
The problems started about on 15 february

Can you please tell me the complete URL that you enter in Meteobridge to access the meteotemplate API.PHP file?
API URL: https://simonicco.altervista.org/Meteot ... te/api.php


Really thank you for your help!

Re: Meteotemplate - API issue

Posted: Fri Feb 23, 2024 2:18 pm
by minoic
Matteo,
please check the Monitor tab and then Update Status.

Do you see an error message? What does it say? Is there an error 500 message? If yes, then the problem is on the server and you have to speak to the your hosting guys. Ask them what errors they see on their side. Most probably they will say that it is a PHP problem. Ask them to tell you which version they are running and which version doesn't create the error.

This is a long shot but this is exactly what happened to me and now my site is running on PHP 7.2!!!! although I upgraded to Cranberry for going to PHP 8. Still don't know what is wrong but I'm still looking.

Re: Meteotemplate - API issue

Posted: Sat Feb 24, 2024 8:10 am
by minoic
Hey Matteo,
it seems that the problem is not with Meteobridge but with the Cranberry 19.0 and PHP after version 8.

Please have a look at topic Meteotemplate - Process of updating in the forum.

My bad that I had not checked deeper in the forum. Obviously there is something strange happening and many people get different problems at different time points. My problems started around mid January and yours later but other had problems since september 2023 as you can see in the topic I mention above.

Anyway, if your hosting allows you to run on an older PHP version i.e. 7.4 then do so until Jachym comes up with a solution. I cannot stay on an old PHP because my hoster activates older version only with additional charges that I don't want to pay.

There are some other things that people have tried like deleting cache/apiCache.txt file, which I have not tried yet. Maybe will do over the weekend.

At the moment i run on PHP 8.0.3 but not all blocks and plugins are updating as they should.

cheers

Re: Meteotemplate - API issue

Posted: Sat Feb 24, 2024 4:55 pm
by MatteoCarnelos
Hi Minoc,
I'm not at home so I give just a small update:
- tried to delete the apiCache.txt file but doesn't work
- I see in my profile of Altervista that the current PHP is 7.3 (see image enclosed), now I try with 8.0 version, but it seams not work.
So I'll take contact with the host provider somehow.

Re: Meteotemplate - API issue

Posted: Sun Feb 25, 2024 10:06 am
by MatteoCarnelos
New update

About the "Monitor tab - Update" status see the pic enclosed.

As in my Altervista profile there is the possibility to try different PHP I tried al of them
- PMH 5.6: Cannot be used because I got this message "Your server is running PHP version 5.6.40 but WordPress 6.4.3 requires at least 7.0.0.
Fatal error: Call to undefined function get_option() in /membri/.dummy/apps/wordpress/wp-content/plugins/altervista/main.php on line 33"
- PMH 7.3: same problem
- PHP 8: same problem
- PHP 8.3: same problem

Re: Meteotemplate - API issue

Posted: Wed Mar 06, 2024 1:52 pm
by MatteoCarnelos
Hi, any ideas/news to solve?

Finest Сasual Dating - Genuine Damsels

Posted: Sat May 04, 2024 11:06 am
by joiresende
Discover the ultimate in relaxed romance with the best casual dating platform!
True Females
Prime casual Dating

Re: Meteotemplate - API issue

Posted: Wed Jun 05, 2024 5:02 pm
by MatteoCarnelos
Hi everybody,
is here someone can help me?

It re-started to work but now it is stopped again.

Re: Meteotemplate - API issue

Posted: Thu Jun 06, 2024 5:20 am
by meteoesine

Re: Meteotemplate - API issue

Posted: Thu Jun 06, 2024 7:21 am
by MatteoCarnelos
Hi,
I tried it but without result.
My error is different from the one in the other topic.
To be clear, in my case the error is not clearly shown :? See highlighted in yellow in the pics

Re: Meteotemplate - API issue

Posted: Tue Sep 10, 2024 2:01 pm
by MatteoCarnelos
Hi all,
I tried to solve the problem creating a new tempkate from zero.
It worked from saturday 7/9 to the last night (toward 2AM).

New link is https://simonicco.altervista.org/Meteot ... esktop.php.

Anyone has some idea to help me?

Thank you.

Re: Meteotemplate - API issue

Posted: Sun Apr 20, 2025 12:38 pm
by T-man
Same issue started to me few days ago. No matter what I try (php version downgraded to 7.4, countless discussions with hosting provider, deleting cache etc) api does not update webpage. Meteobridge shows internal server error 500, so is hosting. But customer service just say issue is not at their end...

Any ideas to moving forward?

I'm in Cranberry

Re: Meteotemplate - API issue

Posted: Sun Apr 20, 2025 6:50 pm
by MatteoCarnelos
Hello, just for let you know, I continued the discussion in this thread.
I hope it can help you.

https://forum.meteohub.de/viewtopic.php ... 5&start=15

Re: Meteotemplate - API issue

Posted: Mon Apr 21, 2025 5:25 pm
by T-man
Thnx, deleted meteotemplateLive.txt files (both in ./cache and template folder.) Sticky error 500 remains.

Re: Meteotemplate - API issue

Posted: Fri May 23, 2025 4:38 pm
by T-man
Problem solved after one month "trial and error". I found api.php version 3.2b and deleted these meteotemplateLive.txt files. Now database is updated again. Server is in PHP 8.1