Non-static method JApplicationSite::getMenu

Admiror Gallery 5.x.x for Joomla 3.x. support forum.
Post Reply
Message
Author
Bluefox
Komusubi
Komusubi
Posts: 34
Joined: Tue Jun 23, 2015 4:34 pm
Location: The Netherlands

Non-static method JApplicationSite::getMenu

#1 Post 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

Admiror Gallery 5 - Fundraising Campaign

Bluefox
Komusubi
Komusubi
Posts: 34
Joined: Tue Jun 23, 2015 4:34 pm
Location: The Netherlands

Re: Non-static method JApplicationSite::getMenu

#2 Post 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>';
}

User avatar
Vasiljevski
Developer
Developer
Posts: 1258
Joined: Sat Aug 14, 2010 9:31 pm
Location: Novi Sad, Serbia
Contact:

Re: Non-static method JApplicationSite::getMenu

#3 Post by Vasiljevski »

Help Admiror Gallery become even better,
give us a review on JED

Post Reply