weather GK4 shows old weather

Easy to use and free Joomla module to display weather with forecast from Yahoo.
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Tue Mar 29, 2016 3:11 pm
On my both websites http://www.silvarium.cz and http://www.lemsedium.sk (Joomla 2.5) shows module Weather GK4 old weather. This problem is probably from 24.3.2016.

File modules/mod_weather_gk4/cache/mod_weather.bxml has this content:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><yahoo:error xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" xml:lang="en-US" yahoo:uri="http://yahoo.com"><yahoo:description>Please provide valid credentials. OAuth oauth_problem=&quot;OST_OAUTH_PARAMETER_ABSENT_ERROR&quot;, realm=&quot;yahooapis.com&quot;</yahoo:description><yahoo:detail>Please provide valid credentials. OAuth oauth_problem=&quot;OST_OAUTH_PARAMETER_ABSENT_ERROR&quot;, realm=&quot;yahooapis.com&quot;</yahoo:detail></yahoo:error>

Is problem in Yahoo API?
User avatar
Senior Boarder

GK User
Tue Mar 29, 2016 3:43 pm
Here is the problem solution with Yahoo API from previous post :

Workaround for weather modul:
You must edit the "helper.php" at the modul direction ("/modules/mod_weather_gk4/helper.php").
You will find this line entries and change them:

Old Version:
"curl_setopt($curl, CURLOPT_URL, 'http://weather.yahooapis.com/forecastrss?w='.$this->config['WOEID']."&u=".$this->config['tempUnit']);"

New Version:
"curl_setopt($curl, CURLOPT_URL, 'http://xml.weather.yahoo.com/forecastrss?w='.$this->config['WOEID']."&u=".$this->config['tempUnit']);"

Old Version:
"$this->content = file_get_contents('http://weather.yahooapis.com/forecastrss?w='.$this->config['WOEID']."&u=".$this->config['tempUnit']);"

New Version:
"$this->content = file_get_contents('http://xml.weather.yahoo.com/forecastrss?w='.$this->config['WOEID']."&u=".$this->config['tempUnit']);"
User avatar
Senior Boarder

teitbite
Fri Apr 01, 2016 6:54 pm
Hi

Thank You for this solution. I'm gonna forward it to programmers.
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.