Notice: Undefined property: JObject::$text

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

Notice: Undefined property: JObject::$text

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

Admiror Gallery 5 - Fundraising Campaign

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

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

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

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

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

#3 Post by Vasiljevski »

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

Post Reply