weather GK4 shows old weather
Easy to use and free Joomla module to display weather with forecast from Yahoo.
Rate this topic:
- 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="OST_OAUTH_PARAMETER_ABSENT_ERROR", realm="yahooapis.com"</yahoo:description><yahoo:detail>Please provide valid credentials. OAuth oauth_problem="OST_OAUTH_PARAMETER_ABSENT_ERROR", realm="yahooapis.com"</yahoo:detail></yahoo:error>
Is problem in Yahoo API?
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="OST_OAUTH_PARAMETER_ABSENT_ERROR", realm="yahooapis.com"</yahoo:description><yahoo:detail>Please provide valid credentials. OAuth oauth_problem="OST_OAUTH_PARAMETER_ABSENT_ERROR", realm="yahooapis.com"</yahoo:detail></yahoo:error>
Is problem in Yahoo API?
-
- 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']);"
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']);"
-
- Senior Boarder
- teitbite
- Fri Apr 01, 2016 6:54 pm
Hi
Thank You for this solution. I'm gonna forward it to programmers.
Thank You for this solution. I'm gonna forward it to programmers.
-
- Moderator
3 posts
• Page 1 of 1