?
avatar ucefkh
ucefkh
13 Jul 2012

i got this error when i set up hathor template to default using the star

Notice: Undefined property: JAdministrator::$JComponentTitle in /opt/lampp/htdocs/projects/j/j3/administrator/modules/mod_title/mod_title.php on line 13

working with

PHP Version 5.3.8
on linux localhost

avatar ucefkh ucefkh - open - 13 Jul 2012
avatar ucefkh
ucefkh - comment - 13 Jul 2012

// Get the component title div
$title = JFactory::getApplication()->JComponentTitle;//this is the line 13

avatar infograf768
infograf768 - comment - 13 Jul 2012

Please test gain on present master

avatar littlebee88
littlebee88 - comment - 27 Sep 2012

administrator/modules/mod_title/mod_title.php Line 13

$title = JFactory::getApplication()->JComponentTitle;

JComponentTitle is not in class JApplication, needs to be changed to:

$title = JFactory::getApplication()->get('JComponentTitle');

avatar littlebee88
littlebee88 - comment - 28 Sep 2012

OK I was wrong this is not a bug and should be closed, if you are seeing this error it is because you have not defined the title properly when creating the toolbar:
JToolBarHelper::title(JText::_('Your Title'), 'generic');

And because of ordering you have to be sure to add the toolbar before the display in view.html.php:
$this->addToolbar();
parent::display($tpl);

avatar infograf768 infograf768 - close - 28 Sep 2012
avatar zero-24 zero-24 - close - 28 Sep 2012
avatar bnisevic
bnisevic - comment - 14 Jan 2013

Does anybody knows other cases when this error can occur?

avatar zero-24 zero-24 - change - 7 Jul 2015
Title
Error When Set hathor Template to default
Error When Set hathor Template to default
Labels Added: ?
Build staging

Add a Comment

Login with GitHub to post a comment