Ciao a tutti,
sto cercando di inserire il componente iCagenda in un articolo.
Per fare ciò ho utilizzato il Plugin Include Component, ma mi da il seguente errore:
Fatal error: Call to a member function get() on a non-object in /web/htdocs/www.fabioulianograsselli.com/home/components/com_icagenda/helpers/icmodel.php on line 839
Questa è la parte di codice di icmodel.php...
$app = JFactory::getApplication();
$menuItem = $app->getMenu()->getActive();
if ($menuItem->params->get('show_page_heading', 1)) {
$tag = 'h2';
} else {
$tag = 'h1';
}
if ($headerList == 1) $header='<div class="icagenda-div-header"><'.$tag.' class="icagenda-header"> '.$timetitle.'
</'.$tag.'> '.$report.' '.$report2.'';
elseif ($headerList == 2) $header='<div class="icagenda-div-header"><'.$tag.' class="icagenda-header"> '.$timetitle.' </'.$tag.'>
';
elseif ($headerList == 3) $header='<div class="icagenda-div-header">
'.$report.' '.$report2.'';
elseif ($headerList == 4) $header='<div>
';
}
elseif ($k=='e.catid' && $k!='key') {
$header='<div>'.$report3;
}
else {
$header='<div>'.$report4;
}
...la riga incriminata è:
if ($menuItem->params->get('show_page_heading', 1)) {
Qualcuno mi sa aiutare?
Grazie in anticipo