Hi
Recently me weather home page suddenly started showing an error (actually 3)
Warning: Invalid argument supplied for foreach() in /home/jworks/public_html/weather/WU-forecast.php on line 540
Warning: Invalid argument supplied for foreach() in /home/jworks/public_html/weather/WU-forecast.php on line 550
Warning: Division by zero in /home/jworks/public_html/weather/WU-forecast.php on line 612
A check of the error log shows
[31-May-2015 22:59:21 Pacific/Auckland] PHP Warning: PHP Startup: interbase: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
[31-May-2015 22:59:21 Pacific/Auckland] PHP Warning: PHP Startup: PDO: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
[31-May-2015 22:59:21 Pacific/Auckland] PHP Warning: PHP Startup: pdo_sqlite: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
[31-May-2015 22:59:21 Pacific/Auckland] PHP Warning: PHP Startup: pdo_mysql: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
Now I assume this is a problem with later? version of php... Any hints would be greatly appreciated
www.jointworks.co.nz/weather/wxindex.php
Thanks
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 4019) - 03 April 2024
Legacy Cumulus 1 release 1.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 4019) - 03 April 2024
Legacy Cumulus 1 release 1.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
Index page now has a 'invalid argument' error
Moderator: saratogaWX
-
- Posts: 13
- Joined: Wed 17 Dec 2014 6:44 am
- Weather Station: Fine Offset
- Operating System: Win 7
- Location: Tasman
- saratogaWX
- Posts: 1185
- Joined: Wed 06 May 2009 5:02 am
- Weather Station: Davis Vantage Pro Plus
- Operating System: Windows 10 Professional
- Location: Saratoga, CA, USA
- Contact:
Re: Index page now has a 'invalid argument' error
Running wxforecast.php?force=1 and doing a view-source on the page shows and that first entry is missing the name and the delimiter. It should read and that should fix it up.
Best regards,
Ken
The Raw URL shouldn't be blank... Looking at your Settings.php shows<!-- WU-forecast.php (ML) Version 3.02 - 01-Nov-2014 on PHP 5.5.25 -->
<!-- temps in C -->
<!-- autoSetTemplate using narrow aspect. -->
<!-- WU_API Raw URL='' -->
<!-- loading from . -->
<!-- Network error: php_network_getaddresses: getaddrinfo failed: Name or service not known (0) -->
<!-- RC=, bytes=0 -->
<!-- saved cache to ./cache/WU-forecast-json-0-en.txt (0 bytes) -->
<!-- using charsetInput='UTF-8' charsetOutput='ISO-8859-1' doIconv='1' doRTL='' -->
<!-- processing JSON entries for forecast -->
<!-- rawJSON size is 0 bytes -->
Code: Select all
$SITE['WUforecasts'] = array(
// Location|forecast-URL (separated by | characters
'http://www.wunderground.com/q/zmw:00000.9.93546', // Mapua, New Zealand
'Auckland|http://www.wunderground.com/global/stations/93119.html', // Awhitu, Waiuku New Zealand
);
Code: Select all
$SITE['WUforecasts'] = array(
// Location|forecast-URL (separated by | characters
'Mapua|http://www.wunderground.com/q/zmw:00000.9.93546', // Mapua, New Zealand
'Auckland|http://www.wunderground.com/global/stations/93119.html', // Awhitu, Waiuku New Zealand
);
Best regards,
Ken
-
- Posts: 13
- Joined: Wed 17 Dec 2014 6:44 am
- Weather Station: Fine Offset
- Operating System: Win 7
- Location: Tasman
Re: Index page now has a 'invalid argument' error
Hi Ken
Many thanks, superb. Once I corrected that error, found I didnt have the icon set either. Now all solved.
Thanks
tony
Many thanks, superb. Once I corrected that error, found I didnt have the icon set either. Now all solved.
Thanks
tony