Cannot access METAR data
| Project: | Weather |
| Version: | 6.x-1.3 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | toddy |
| Status: | closed |
Jump to:
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
Sorry for the long delay. Is your problem solved? If not, can you access other internet sites from your Drupal installation?
Regards,
Tobias
#2
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
No more input, thus closing.
#4
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.