Page 1 of 1
Undefined property: JObject::$text
Posted: Thu Aug 07, 2014 6:06 pm
by mikuni90
how to solved error this script ?
Notice: Undefined property: JObject::$text in D:\Program Files\xampp\htdocs\listrik\plugins\content\admirorgallery\admirorgallery.php on line 34
thx for help
Line 34 Script
if (!preg_match("#{AdmirorGallery[^}]*}(.*?){/AdmirorGallery}|{AG[^}]*}(.*?){/AG}|{ag[^}]*}(.*?){/ag}#s", $row->text))
Re: Help Undefined property: JObject::$text/Class 'JFolder'
Posted: Fri Aug 08, 2014 4:18 pm
by mikuni90
up pls help
Re: Undefined property: JObject::$text
Posted: Sun Aug 10, 2014 10:40 pm
by Bifford
Not something I can help with, but the DEVs chould be able to. Might have to be patient as he's a busy man!

Re: Undefined property: JObject::$text
Posted: Sun Aug 17, 2014 3:00 am
by Vasiljevski
Could you post a link to your site? I cannot reproduce the same in my environment.
However I notices something similar in : components/com_admirorgallery/views/layout/tmpl/default.php in this case the problem is that we try to add but we never assigned anything to $article->text
So the solution in this case is to add: $article->text = ''; as a default value in case show_page_heading is false
Code: Select all
$article->text = '';
//Display page heading
if(JSite::getMenu()->getActive()->params->get('show_page_heading'))
{
$article->text = '<h1>'.JSite::getMenu()->getActive()->params->get('page_title').'</h1>';
}
$article->text .= '{AG '.$ag_inlineParams.' }'.$this->galleryName.'{/AG}';
$article->id = 0;
Re: Undefined property: JObject::$text
Posted: Mon Nov 17, 2014 8:20 pm
by widen76
We have the same problem. Adding $article->text = ''; in the default.php file doesn't seem to solve it.
I'm using Joomla 3.3.6. My problem shows up when I create a new article, go to Images and Links tab and click Select on the Intro Image field, the popup shows the error for every image in that location.
Should I edit the admirorgallery.php file as well and if so, what sould be entered into it? Thanks /Marcus
Re: Undefined property: JObject::$text
Posted: Mon Dec 08, 2014 8:51 pm
by widen76
widen76 wrote:We have the same problem. Adding $article->text = ''; in the default.php file doesn't seem to solve it.
I'm using Joomla 3.3.6. My problem shows up when I create a new article, go to Images and Links tab and click Select on the Intro Image field, the popup shows the error for every image in that location.
Should I edit the admirorgallery.php file as well and if so, what sould be entered into it? Thanks /Marcus
The problem has been solved for me:
http://www.vasiljevski.com/forum/viewto ... 4603#p4603
Re: Undefined property: JObject::$text
Posted: Thu Jul 16, 2015 4:24 pm
by sansharam
Hi sir,
me too facing the same problem.
in the localhost with XXAMP I am getting error like this
Notice: Undefined property: JObject::$text in C:\xampp\htdocs\abcd\components\com_admirorgallery\views\layout\tmpl\default.php on line 46
and I am getting the albums
but when I install the same in remote server I am getting (500)internal server error
http://rotarykarwar.org/rotarykarwar/index.php/gallery
Please let me know the issue
thanking you
Santosh Sharma
Re: Undefined property: JObject::$text
Posted: Thu Oct 01, 2015 12:39 am
by Vasiljevski
Sorry for very very late replay.
Anyway, I don't see a reason for 500 error. I would have to check PHP error log and see what is crashing.
Sorry to see you had to use different extension, but important thing is you found the solution
