Page 1 of 1

Non-static method JApplicationSite::getMenu

Posted: Tue Jun 23, 2015 5:50 pm
by Bluefox
This message appears when:
- running Joomla with error output turned on
- menu-item Gallery

it's pointing to:
components\com_admirorgallery\views\layout\tmpl\default.php on line 42
\libraries\cms\application\site.php on line 272

Re: Non-static method JApplicationSite::getMenu

Posted: Tue Jun 23, 2015 5:56 pm
by Bluefox
maybe it helps to change it to something like this

Code: Select all

//Display page heading
$app    = JFactory::getApplication();
$active = $app->getMenu()->getActive();

if($active->params->get('show_page_heading'))
{
    $article->text = '<h1>'.$active->getActive()->params->get('page_title').'</h1>';
}

Re: Non-static method JApplicationSite::getMenu

Posted: Wed Sep 30, 2015 10:55 pm
by Vasiljevski