Cannot access METAR data

shezzski - June 6, 2007 - 17:17
Project:Weather
Version:6.x-1.3
Component:Code
Category:support request
Priority:normal
Assigned:toddy
Status:closed
Description

I am getting the following errors when trying to use the Weather module, I am using a proxy server, which i believe is causing the problems

* warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: host/servname not known in /home/mshelley/public_html/drupal/sites/all/modules/weather/weather.module on line 1119.
* warning: file_get_contents(ftp://tgftp.nws.noaa.gov/data/observations/metar/stations/YSCB.TXT): failed to open stream: Error 0 in /home/mshelley/public_html/drupal/sites/all/modules/weather/weather.module on line 1119.
* warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: host/servname not known in /home/mshelley/public_html/drupal/sites/all/modules/weather/weather.module on line 1142.
* warning: fsockopen(): unable to connect to weather.noaa.gov:80 in /home/mshelley/public_html/drupal/sites/all/modules/weather/weather.module on line 1142.
* Download location for METAR data is not accessible.
* warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: host/servname not known in /home/mshelley/public_html/drupal/sites/all/modules/weather/weather.module on line 1119.
* warning: file_get_contents(ftp://tgftp.nws.noaa.gov/data/observations/metar/stations/YPAD.TXT): failed to open stream: Error 0 in /home/mshelley/public_html/drupal/sites/all/modules/weather/weather.module on line 1119.
* warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: host/servname not known in /home/mshelley/public_html/drupal/sites/all/modules/weather/weather.module on line 1142.
* warning: fsockopen(): unable to connect to weather.noaa.gov:80 in /home/mshelley/public_html/drupal/sites/all/modules/weather/weather.module on line 1142.
* Download location for METAR data is not accessible.

#1

toddy - September 10, 2007 - 16:29
Assigned to:Anonymous» toddy
Status:active» postponed (maintainer needs more info)

Sorry for the long delay. Is your problem solved? If not, can you access other internet sites from your Drupal installation?

Regards,
Tobias

#2

gr8fulbishop - March 24, 2008 - 15:01
Version:5.x-2.2» 6.x-1.3

When I go to configure the weather module through "Site Configuration", I get

* warning: Invalid argument supplied for foreach() in /home/mysctfco/public_html/mysctf_live/includes/common.inc on line 1489.
* warning: Invalid argument supplied for foreach() in /home/mysctfco/public_html/mysctf_live/includes/form.inc on line 1394.

How do I resolve this problem? Please feel free to contact me at http://www.jonathanmickles.com/jm_live/contact.

#3

toddy - November 20, 2008 - 09:46
Status:postponed (maintainer needs more info)» closed

No more input, thus closing.

#4

granttoth - January 16, 2009 - 22:02

I am having the same issue. Our server is a windows server. I spoke with the guy who maintains it and he believes that it could be related to the firewall on the server. Is is going to check it out then get back to me.

edit - My issue has been resolved. It was the firewall on the server. Here is what my guy wrote to me.

----
where the site tries to ftp/http get files from outside world... the firewall was probably the issue as it was blocking it, but we allowed it now.

 
 

Drupal is a registered trademark of Dries Buytaert.