... shortened . . .
I've got one problem you - or anyone else who has installed the template - will hopefully be able to help me with.
The inc/astronomy.php page (Sun/Moon/Earth > Sun and moon) at http://dunchurchweather.co.uk/weather28/index.php?p=astronomy&lang=en#data-area shows the rise and set times as 1am, and the log throws up lots of errors as follows:
[23-Dec-2015 12:35:22 Europe/London] PHP Notice: Undefined index: moonrise in ...weather28/inc/astronomy.php on line 427
[23-Dec-2015 12:35:22 Europe/London] PHP Notice: Undefined index: moonset in ...weather28/inc/astronomy.php on line 428
[23-Dec-2015 12:39:26 Europe/London] PHP Notice: Undefined index: moonrise in ...weather28/inc/astronomy.php on line 427
. . .
I've installed the updated inc/astronomy.php file from http://support.leuven-template.eu/problems28.php?lang=en but suspect I've entered something incorrectly in the settings file that may be causing the problem. Might that be the case?
. . .
John
The USNO website from which the "moon" data is loaded seems to be incompatible in talking to your webserver/hosting company.
There is no DNS-error => that is good
No IP blockade => that is good
But an error during exchanging information:
<!-- module astronomy.php (374) last error = Recv failure: Connection reset by peer-->
I attach a test program to further test this on your server.
1. Unzip attachement
2. Place the test_usno.php script on your webserver in the root
3. Test in your browser dunchurchweather.co.uk/test_usno.php
The script contains a correct URL to retrieve the USNO information.
First it tries the standard PHP function CURL. That is the one which fails at your server now.
It then uses the file_get-contents function.
If the second one works, I can adapt the script. If that fails also you should contact your provider as they are the only ones to correct their server scripts which handles the CURL function.
This problem is occurring with other sites/scripts/template also, as most scripts loading information form external sources are moving away from low-level calls and file-get-contents type instructions towards CURL.
Please post a message when you installed the script, so I can check,
Wim