Search Form and Social Buttons

HotThemes Logo and Top Menu

To request a forum account, please login here and open support ticket. Only customers with active order(s) can open forum account!

× Discussion about "Wellness" Joomla template.

Topic-icon Notice: Trying to get property of non-object

More
6 years 1 month ago #6443 by fernando
fernando created the topic: Notice: Trying to get property of non-object
Hi, I just installed the template and opened the site and i´m receiving this message

Notice: Trying to get property of non-object in F:\wamp\www\pibarraial\components\com_content\router.php on line 49


apache 2.2.11
php 5.2.9
mysql 5.1.36

Please Log in to join the conversation.

More
6 years 1 month ago #6447 by ivan.milic
ivan.milic replied the topic: Re: Notice: Trying to get property of non-object
Turn off debugging in joomla.

Please Log in to join the conversation.

More
6 years 1 month ago #6448 by fernando
fernando replied the topic: Re: Notice: Trying to get property of non-object
Debug option was already off.
I just install the template and acess the site.
the problem continue.
thanks for help

Please Log in to join the conversation.

More
6 years 1 month ago #6462 by ivan.milic
ivan.milic replied the topic: Re: Notice: Trying to get property of non-object
Hi,

You can then try to clean that message by changing code. Apparently this should do the trick:
Open router.php and around the 49th line you will see this:

if ($menuItem->query == $query && isset($query) && $menuItem->query == intval($query)) {
unset($query);

if (isset($query)) {
unset($query);
}

unset($query);

return $segments;
}

surround hat with "if" that will check $menuItem variable:

if(isset($menuItem)){
if ($menuItem->query == $query && isset($query) && $menuItem->query == intval($query)) {
unset($query);

if (isset($query)) {
unset($query);
}

unset($query);

return $segments;
}

}

Please Log in to join the conversation.

Time to create page: 0.111 seconds

Links, Partners and Social Media