Welcome to Geeklog, Anonymous Sunday, August 14 2022 @ 08:10 pm EDT

Geeklog Forums

Weather Block Help


erimar77

Anonymous
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
 Quote

Status: offline

squatty

Forum User
Full Member
Registered: 01/21/02
Posts: 269
This problem has been reported here. 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


In a world without walls and fences, who needs Windows and Gates?
 Quote

Status: offline

Kybla

Forum User
Newbie
Registered: 05/15/02
Posts: 9
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 Frown
 Quote

All times are EDT. The time is now 08:10 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content