Salve raga
ho caricato un template plazza, solo che quando vado ad aprire il sito mi da questo errore come posso risolvere?
Fatal error: Call to a member function getTemplate() on a non-object in C:\Users\Roberto\Desktop\xampp\htdocs\pubblintown2\templates\deals_plazza\extensions\tpmenu\menu\dropxtd.php on line44
Linea 44 di dropxtd.php
global $mainframe,$Itemid;
$database = & JFactory::getDBO();
$my = & JFactory::getUser();
$cur_template = $mainframe->getTemplate(); <--- RIGA 44
$contentConfig = &JComponentHelper::getParams( 'com_content' );
$noauth = $contentConfig->get('shownoauth');
$hilightid = null;
$startid = 0;
if ($noauth) {
$database->setQuery("SELECT m.*, count(p.parent) as cnt" .
"\nFROM #__menu AS m" .
"\nLEFT JOIN #__menu AS p ON p.parent = m.id" .
"\nWHERE m.menutype='$this->_menutype' AND m.published='1'" .
"\nGROUP BY m.id ORDER BY m.parent, m.ordering ");
} else {
$database->setQuery("SELECT m.*, sum(case when p.published=1 then 1 else 0 end) as cnt" .
"\nFROM #__menu AS m" .
"\nLEFT JOIN #__menu AS p ON p.parent = m.id" .
"\nWHERE m.menutype='$this->_menutype' AND m.published='1' AND m.access <= '$my->gid'" .
"\nGROUP BY m.id ORDER BY m.parent, m.ordering ");
}
$rows = $database->loadObjectList( 'id' );
echo $database->getErrorMsg();