It is currently Fri Dec 15, 2017 6:01 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Jun 23, 2015 5:51 pm 
Offline
Komusubi
Komusubi

Joined: Tue Jun 23, 2015 4:34 pm
Posts: 34
Location: The Netherlands
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


Top
 Profile  
 
 Post subject: Notice: Undefined property: JObject::$text
PostPosted: Tue Jun 23, 2015 5:51 pm 
Top  
PostPosted: Tue Jun 23, 2015 5:59 pm 
Offline
Komusubi
Komusubi

Joined: Tue Jun 23, 2015 4:34 pm
Posts: 34
Location: The Netherlands
this one makes sense as the "text" is not declared when there is no page heading.

so maybe better to change to

Code:
$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


Top
 Profile  
 
PostPosted: Wed Sep 30, 2015 10:56 pm 
Offline
Developer
Developer
User avatar

Joined: Sat Aug 14, 2010 9:31 pm
Posts: 1241
Location: Novi Sad, Serbia
https://github.com/vasiljevski/admirorgallery/issues/9

Thanks :)

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

 


All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

This is the official Admiror Joomla! Community Forum. You are welcome to join the Admiror Joomla! Community. All Admiror Joomla! Extensions Users, Joomla! Developers, PHP or mySQL Developers are welcome to support & contribute to Admiror Joomla! Projects.

Joomla! is a free and open source content management system (CMS) for publishing content on the World Wide Web and intranets. With a vibrant volunteer community, user-friendly features and plenty of power, Joomla is perfect for your website!

Joomla! is written in PHP, uses object-oriented programming (OOP) techniques and software patterns, stores data in a MySQL database, and includes features such as page caching, RSS feeds, printable versions of pages, news flashes, blogs, polls, search, and support for language internationalization.

Joomla! is the property of Open Source Matters, Inc. All rights reserved. Read more about Joomla! at http://www.joomla.org/.


Protected by Anti-Spam ACP Powered by phpBB® Forum Software © phpBB Group