Hello
I updated the templates as described in another thread and now I get the following errors.. any ideas please?
Warning: Invalid argument supplied for foreach() in /home/xxxx/public_html/weather/get-USNO-sunmoon.php on line 360
Warning: Invalid argument supplied for foreach() in /home/xxxxx/public_html/weather/get-USNO-sunmoon.php on line 371
360
foreach($MoonJSON['sundata'] as $n => $d) {
371
foreach($MoonJSON['moondata'] as $n => $d) {
Cheers
Mark
Welcome to the Cumulus Support forum.
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
get-USNO-sunmoon.php error
Moderator: saratogaWX
- ConligWX
- Posts: 1573
- Joined: Mon 19 May 2014 10:45 pm
- Weather Station: Davis vPro2+ w/DFARS + AirLink
- Operating System: Ubuntu 22.04 LTS
- Location: Bangor, NI
- Contact:
Re: get-USNO-sunmoon.php error
are you running PHP 7.x?
you also are running an older version of the get-USNO-sunmoon.php
http://www.marton-weather.co.uk/check-f ... w=versions.
you also are running an older version of the get-USNO-sunmoon.php
http://www.marton-weather.co.uk/check-f ... w=versions.
Code: Select all
// Version 3.00 - 11-Oct-2017 - use cURL for fetch, provide bypass/calculations for api.usno.navy.mil outages
// Version 3.01 - 20-Oct-2017 - fix date format for calculated date functions
Regards Simon
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •
-
- Posts: 192
- Joined: Sun 04 Jan 2009 5:56 pm
- Weather Station: Vantage Vue
- Operating System: Windows 7
- Location: Middlesbrough, England
Re: get-USNO-sunmoon.php error
I need to check on the php version.. but I went back to an old version of the file due to the errors