Page 1 of 1

Notice: Undefined property: JObject::$text

Posted: Tue Jun 23, 2015 5:51 pm
by Bluefox
This one happens when:
- Joomla error output turned on
- Menu-item Gallery

it points to: components\com_admirorgallery\views\layout\tmpl\default.php on line 46

Re: Notice: Undefined property: JObject::$text

Posted: Tue Jun 23, 2015 5:59 pm
by Bluefox
this one makes sense as the "text" is not declared when there is no page heading.

so maybe better to change to

Code: Select all

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

$article->text = null;
if($active->params->get('show_page_heading'))
{
    $article->text = '<h1>'.$active->getActive()->params->get('page_title').'</h1>';
}
$article->text .= '{AG '.$ag_inlineParams.' }'.$this->galleryName.'{/AG}';
first declare the text, if there is a pageheading then that will be taken as value.
and when there is a name then that will be added to

Re: Notice: Undefined property: JObject::$text

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