Thanks for you pm
It works now almost, but there is a problem with the translations. Highcharts needs those. I tested with the standard languages.
For now, check the generated source of your script: http://meteohila2.esy.es/wxsim1/forecast.php nearly at the bottom
<script>
name="Xert, Valenciana",lang="en",tzabb = "Europe/Madrid",version=2017.03,ewnpath="./wxsim/",latitude=40.52;
var days = null,months = null;
var temptxt="TEMP",barotxt="BARO",prectxt="PRECIP",windtxt="WIND",dewtxt="DEWP",snowtxt="SNOB",feeltxt="FEELS",tstxt="TSPROB",humtxt="HUMIDITY",gusttxt="GUST",rratetxt="RRATE",txtgust="GUST",txtmidnightsun="MIDNIGHTSUN",txtpolarnight="POLARNIGHT";
var snowset="cm",baroset="hPa",wiset="kmh",piset="mm",tiset="c";
</script>
it is missing essential translated texts, this is how it should look
<script>
name="Xert, Valenciana",lang="en",tzabb = "Europe/Madrid",version=2017.03,ewnpath="./wxsim/",latitude=40.52;
var days = ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],months = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];
var temptxt="Temperature",barotxt="Pressure",prectxt="Precipitation",windtxt="Wind",dewtxt="Dewpoint",snowtxt="SNOB",feeltxt="Feels like",tstxt="TS-prob.",humtxt="Humidity",gusttxt="Gust",rratetxt="RRATE",txtgust="Gust",txtmidnightsun="Midnight Sun",txtpolarnight="Polar Night";
var snowset="cm",baroset="hPa",wiset="kmh",piset="mm",tiset="c";
</script>
Highcharts can not draw the graphs as the array for day-names is empty. These are the errors on the inspect console
ncaught TypeError: Cannot read property '2' of null
at qa (highcharts-custom-4.2.0.js:29)
at ra (highcharts-custom-4.2.0.js:18)
at Object.defaultLabelFormatter (highcharts-custom-4.2.0.js:111)
at Xa.addLabel (highcharts-custom-4.2.0.js:96)
at new Xa (highcharts-custom-4.2.0.js:21)
at highcharts-custom-4.2.0.js:136
at Array.forEach (<anonymous>)
at t (highcharts-custom-4.2.0.js:32)
at L.Axis.getOffset (highcharts-custom-4.2.0.js:136)
at highcharts-custom-4.2.0.js:209
This is related to the empty names arrays.
{a:q[g].substr(0,3),A:q[g],d:Ta(h),e:h,w:g,b:m.shortMonths[k],B:m.months[k],m:Ta(k+1),y:l.toString().substr(2,2),Y
It is getting late so i will check tomorrow. Somewhere the link tothe correct langs is lost, need a clear head to find it.
SUCCES: I think I found it.
Your webserver is set to probably Es as language.
The script detects that and set the language to whatever the server has in config.php
$query=$_SERVER["QUERY_STRING"];
$q=explode("|",$query);
if(preg_match("|\||",$query)){
$lang=$q[0];
}
But that language is not supported in the rest of the script lines 71-280, so the arrays are not filled with the month-names as they are for fi, sv,se,da,dk,de,nl,it and en.
So add the following text at the empty line 70 and test for the next problem, if there is any.
$lang= "en" ;
Wim