Posted on: 08/28/02 07:18pm
By: Anonymous (erimar77)
I installed the weather phpblock, following the instructions very carefully. Everything went very well, until I created the block and went to the Home page. I was greeted with this error:
Warning: Failed opening 'phpweather.inc' for inclusion (include_path='.:/usr/share/php') in /home/e-smith/files/primary/html/geeklog/public_html/weather/display_weather.php on line 6
Warning: Failed opening 'locale_en.inc' for inclusion (include_path='.:/usr/share/php') in /home/e-smith/files/primary/html/geeklog/public_html/weather/display_weather.php on line 7
Fatal error: Call to undefined function: get_metar() in /home/e-smith/files/primary/html/geeklog/public_html/weather/display_weather.php on line 11
I have searched the help board here with minimal success. The only page I found with a similar problem was:
http://www.geeklog.net/article.php?story=20020813060214498
The solution:
http://www.geeklog.net/comment.php?mode=display&sid=20020813060214498&title=NEW+Weather+Block+Released&type=article&order=&pid=3065
Did nothing for me. Any ideas or comments would be greatly appreciated...
Thanks, eric
http://ericmartin.homelinux.com
Weather Block Help
Posted on: 08/29/02 04:58am
By: squatty
This problem has been reported
here[*1] . The recommended solution is to simply add the full path to the to the file listed in ALL include statements (both .php and .inc files):
include (/full/path/to/weather/phpweather.inc');
include (/full/path/to/weather/locale_en.inc');
-Squatty
Weather Block Help
Posted on: 08/29/02 03:05pm
By: Kybla
I have other problem with weather block - it seems to show different values from the one on Squatty's page at the same time - like this:
My detailed weather:
Washington DC, VA - United States
73 °F
Clouds: Cloud coverage at a height of 1050 meter (3500 feet) and at
a height of 1650 meter (5500 feet). Visibility: The visibility is
10.0 kilometers (10.0 miles).
Wind: Winds calm.
Pressure: 0 hpa (30.21 inHg)
Dew Point: 66 °F
Humidity: 78.2%
Squatty's detailed weather at the same time:
Washington DC, VA - United States
73 °F
Clouds: Cloud coverage at a height of 1067 meter (3500 feet) and at
a height of 1676 meter (5500 feet). Visibility: The visibility is
16.1 kilometers (10.0 miles).
Wind: Winds blowing at a speed of 2.6 meters per second (5.8 miles
per hour). Pressure: 1,023 hpa (30.21 inHg)
Dew Point: 66 °F
Humidity: 78.2%
Any ideas what can be wrong? Thanks.
P.S.: It shows Winds calm at all times