GKHandheld.php error

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
Mon Mar 23, 2015 3:34 pm
Reply with quote
Report this post
My website is www.casino-online.bz

After updating joomla to 3.4 and modules to the last version I get on error_log under the public_html home these kind of errors:

[23-Mar-2015 11:07:50 Europe/Berlin] PHP Notice: Undefined property: stdClass::$content in /home/..../public_html/templates/gk_news2/lib/menu/GKHandheld.php on line 176
[23-Mar-2015 11:07:50 Europe/Berlin] PHP Notice: Undefined property: stdClass::$content in /home/..../public_html/templates/gk_news2/lib/menu/GKHandheld.php on line 123

I think I get this couple of error every time someone visit a page. Can you help me to solve such php errors?
User avatar
Expert Boarder

GK User
Thu Mar 26, 2015 8:01 am
Reply with quote
Report this post
Hello,

In the first case plase try to replace in the GKHandheld.php file:

Code: Select all
if(stripos($mitem->content, '<jdoc') === FALSE) {


to:

Code: Select all
if(isset($mitem->content) && stripos($mitem->content, '<jdoc') === FALSE) {


In the second case plase make sure that you have the following line on line 123.:

Code: Select all
if(!isset($tmp->content) || (isset($tmp->content) && stripos($tmp->content, '<jdoc') === FALSE)) {
User avatar
Administrator


cron