Closed (fixed)
Project:
Weather
Version:
5.x-6.1
Component:
Miscellaneous
Priority:
Critical
Category:
Support request
Assigned:
Reporter:
Created:
5 May 2008 at 18:46 UTC
Updated:
20 Nov 2008 at 09:09 UTC
I got this when I enable site-wide weather block. Any hints?
* warning: file_get_contents() [function.file-get-contents]: connect() failed: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in D:\xampp\htdocs\drupalsix\sites\all\modules\weather\weather.module on line 1697.
* warning: file_get_contents(ftp://tgftp.nws.noaa.gov/data/observations/metar/stations/WIII.TXT) [function.file-get-contents]: failed to open stream: FTP server reports RETR in D:\xampp\htdocs\drupalsix\sites\all\modules\weather\weather.module on line 1697.
Thanks
Comments
Comment #1
d.sibaud commentedsame problem with stations: LIRZ (Italy/Perugia):
# warning: file_get_contents() [function.file-get-contents]: connect() failed: Connection timed out in /var/www/tourtools-drupal-5/sites/all/modules/weather/weather.module on line 1512.
# warning: file_get_contents(ftp://tgftp.nws.noaa.gov/data/observations/metar/stations/LIRZ.TXT) [function.file-get-contents]: failed to open stream: Success in /var/www/tourtools-drupal-5/sites/all/modules/weather/weather.module on line 1512.
# warning: fsockopen() [function.fsockopen]: unable to connect to weather.noaa.gov:80 (Connection timed out) in /var/www/tourtools-drupal-5/sites/all/modules/weather/weather.module on line 1537.
I tried to contact the ftp://tgftp.nws.noaa.gov/data/observations/metar/stations/LIRZ.TXT via browser and it works fine:
2008/07/29 21:50
LIRZ 292150Z 35007KT CAVOK 23/17 Q1017 RMK VIS MIN9999
and also i tried to contact weather.noaa.gov:80 and obtain the data for this location and it works!!!
thks in advance.
Comment #2
d.sibaud commentedpardon, I was operating with my server ftp port closed :-(, now it works perfectly!
Comment #3
toddy commented