Page 1 of 1

HTML Template not working on new web server

Posted: Sun May 25, 2025 2:44 pm
by ironedge
Hi all,

I've been using for years a graph with a simple HTML template and it worked fine. Now I need to move to a new hosting provider. I placed the same file in the corresponding web hosting folder of the new provider. The file itself is accessible if I open it with the direct link (but the variables are not replaced by the corrsponding values, of course). But when I use it as a template file in the graph definition, I just get a blank page. Unfortunately, it's hard to troubleshoot because I do not get any error message or response.

What am I doing wrong? Any hints?

This is the Meteoplug graph definition:

Code: Select all

template=https://wetter-zunzgen.infy.uk/mydocs/wetter-zunzgen.htm
Thanks!

Re: HTML Template not working on new web server

Posted: Mon May 26, 2025 10:40 am
by ironedge
Hmm, when I activate "debug=1" then I get the following:

error: cannot parse variable: illegal time stamp "" in "["
error: cannot parse variable: illegal time stamp "" in "["
error: cannot parse variable: illegal time stamp "0" in "[0"
error: cannot parse variable: illegal time stamp "0" in "[0"
error: cannot parse variable: illegal time stamp "f" in "[f"
error: cannot parse variable: illegal time stamp "f" in "[f"

Interestingly, I have 3 quite different HTML templates that all worked fine with the old webhoster. And all 3 do not work any more with the new webhoster and all 3 return exactly the same error messages above. With exactly, I mean EXACTLY, which is weird, because they have different code in the template. So something seems to go wrong in general. Not sure what it is. Any hints would be very much appreciated because this is a major blocker for my whole migration process.

Edit:
When I look at the file directly on the web server, it is in plain text, as it should be. And it can be displayed correctly when called directly under the URL (without having the variables replaced with values). So this is really weird. Cannot really be an access issue I think. And the file is properly placed, formatted and should be returned properly. So I do not understand why meteoplug can interpret the file when being on the one webhoster, but not when sitting on the other webhoster.

Edit2:
I compared the files coming back in the Chrome browser with the DevTools, comparing the one coming back from the old webhoster and the one coming back from the new webhoster. They are EXACTLY the same, down to the very last character. So why the heck is meteoplug not correctly parsing the one from the new webhoster?

Re: HTML Template not working on new web server

Posted: Thu Jun 05, 2025 10:10 am
by admin
Can you please tell me your Meteoplug account and which chart definition does not work? Please send to "info(at)meteoplug.com".

Re: HTML Template not working on new web server

Posted: Thu Jun 05, 2025 8:22 pm
by ironedge
Thank you very much for your reply, appreciate the help. Email sent accordingly!