This post left anonymously
I keep getting this error on the main page:
Fatal error: Call to a member function getActive(); on a non-object in C:\wamp\www\Joomla_EN\templates\yoo_seasons\lib\php\yootools.php on line 113
I have successfully installed Joomla template .
function getActiveMenuItemNumber($menu, $level) {
$jmenu = &JMenu::getInstance();
$active = $jmenu->getActive();
$menutype = isset($active) ? $active->menutype : null;
$path = isset($active) ? $active->tree : array();
if ($menu == $menutype && array_key_exists($level, $path)) {
$item = $jmenu->getItem($path[$level]);
return $item->ordering;
}
Thanks for any help.
This open post was written 1 year ago | V/U/S: 232, 1, 2 | Edit Post | Leave a reply | Subscribe to Replies | Report Post
Reciprocity (0)
Since writing this post Anonymous may have helped people, but has not within the last 4 days.
Invite Others to Help
Don't know the answer to this post, but know someone who might? Invite them to reply!
- We send them a link to this post with your message and a post excerpt
- We will NEVER use their email for anything else
- Your invitation message is confidential
- When your friend visits from the email, you'll be automatically joined on your Friends lists!
- We still forward a link for your post to the post author and any repliers, just like if you had replied to the post yourself.