Ken, thanks for the fix, there is probably a typo in line 262, a redundant comma character and I get the following error message:
Parse error: syntax error, unexpected ',' in /home/thanos/public_html/mesonet-map-lang-el.txt on line 262$temp = preg_replace_callback('|'.$svrTZ.'|'
,,$timestring);
I removed it and the standalone version runs without any issue from its own directory, but from the root (all files placed and configured in root) I get another error:
http://www.meteothes.gr/mesonet-map.phpWarning: preg_replace_callback() expects at least 3 parameters, 2 given in /home/thanos/public_html/mesonet-map-lang-el.txt on line 262I believe that there's a configuration error here, but I've checked all files many times and look ok...
Another issue is that, although the map appears, the stations don't!
How can I run the file wxmesonetmap.php(or any other template file) not from the root, but from another directory like
/mesonet-map? The standalone version is running fine there! I tried changing the path of common files(top.php, header.php, menu.php, common.php etc) with the absolute path with no luck! It still cannot find some of them and the whole page is messed up...
http://www.meteothes.gr/mesonet-map/mesonet-map.phpMy web server's PHP version: 7.1.17 Checked it also locally in my pc with XAMPP platform (PHP v 7.2) and the script runs without any issues! Upgraded my web server PHP to 7.2 but the problem remains!
Thanos