Country and Place dropdowns are blank, and I get this error:

* warning: Invalid argument supplied for foreach() in /usr/home/hoslo/public_html/includes/common.inc on line 1503.
* warning: Invalid argument supplied for foreach() in /usr/home/hoslo/public_html/includes/form.inc on line 1417.

Comments

toddy’s picture

Assigned: Unassigned » toddy
Status: Active » Postponed (maintainer needs more info)

This sounds like your installation is not complete. Does the table "weather_icao" contain any data?

Starminder’s picture

I just checked - 0 rows.

Starminder’s picture

Status: Postponed (maintainer needs more info) » Active

Also, I updated to 5.x and ran update.php but am still in the same boat.

sarmiluv’s picture

Same with me in 5x too.

toddy’s picture

Could you uninstall the module and reinstall again? That should solve your error, however, your custom settings for the module will be deleted.

sarmiluv’s picture

I just did a clean install. When I try to edit location or setup the default configuration, the country and Place drop down does not have any value. It gives me following error on the page.

warning: Invalid argument supplied for foreach() in /home/penepal/public_html/zdrupal/includes/common.inc on line 1499.
warning: Invalid argument supplied for foreach() in /home/penepal/public_html/zdrupal/includes/form.inc on line 1417.

toddy’s picture

Did you uninstall (i.e. delete the module's tables) and install version 6.x-5.0 of the module?

Starminder’s picture

Status: Active » Fixed

I deactivated, uninstalled, reinstalled, reactivated and now all is well - thanks.

sarmiluv’s picture

Removed

sarmiluv’s picture

I deleted the modules table and reinstalled it. Its working fine.

However, I did not find Kathmandu, Nepal listed in the list of locations. Is there any way we can add that location to the list. The ICAO for the airport location in Kathmandu is VNKT.

toddy’s picture

Title: Edit Location Error » Kathmandu is missing
Status: Fixed » Active

Thanks for telling me, I'll add Kathmandu to the next release which is due in a few days.

Regards,
Tobias

toddy’s picture

Status: Active » Fixed

Committed to CVS

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.