weather module
Rate this topic: 




1.00 out of 6 based on 1 vote(s)






- GK User
- Mon Jul 29, 2013 11:23 am
- Reply with quote
- Report this post
hi
Running Joomla! 2.5.11, weather mod version GK4 1.6.6 . A couple of days ago started getting this error popping up on various menus.
Fatal error: Call to a member function attributes() on a non-object in /mnt/data/vhosts/casite-374675.cloudaccess.net/httpdocs/modules/mod_weather_gk4/helper.php on line 363
Please advise of solution.
Thanks
ShoppeSoft
Running Joomla! 2.5.11, weather mod version GK4 1.6.6 . A couple of days ago started getting this error popping up on various menus.
Fatal error: Call to a member function attributes() on a non-object in /mnt/data/vhosts/casite-374675.cloudaccess.net/httpdocs/modules/mod_weather_gk4/helper.php on line 363
Please advise of solution.
Thanks
ShoppeSoft
-
- Fresh Boarder
- teitbite
- Mon Jul 29, 2013 2:15 pm
- Reply with quote
- Report this post
Hi
Please try edit file modules/mod_weather_gk4/helper.php on line 363
and add "@" sign at the beginning of attribute function call.
Please try edit file modules/mod_weather_gk4/helper.php on line 363
and add "@" sign at the beginning of attribute function call.
-
- Moderator
- GK User
- Mon Jul 29, 2013 7:27 pm
- Reply with quote
- Report this post
Hi teitbite
Just to make sure I did this right.
I opened: httpdocs\modules\mod_weather_gk4\helper.php
And edited line 363
from
if(strpos($xml->document->channel[0]->description[0]->attributes('date'), "Error") == FALSE) {
To
if(strpos(@$xml->document->channel[0]->description[0]->attributes('date'), "Error") == FALSE) {
If not correct please advise!
Thanks
ShoppeSoft
Just to make sure I did this right.
I opened: httpdocs\modules\mod_weather_gk4\helper.php
And edited line 363
from
if(strpos($xml->document->channel[0]->description[0]->attributes('date'), "Error") == FALSE) {
To
if(strpos(@$xml->document->channel[0]->description[0]->attributes('date'), "Error") == FALSE) {
If not correct please advise!
Thanks
ShoppeSoft
-
- Fresh Boarder
- teitbite
- Wed Jul 31, 2013 1:07 am
- Reply with quote
- Report this post
Hi
Yes it's correct. Now please just observe the site and let me know if this helped.
Yes it's correct. Now please just observe the site and let me know if this helped.
-
- Moderator
4 posts
• Page 1 of 1