Undefined property: JObject::$text

Admiror Gallery 5.x.x for Joomla 3.x. support forum.
Post Reply
Message
Author
mikuni90
Posts: 2
Joined: Thu Aug 07, 2014 5:59 pm

Undefined property: JObject::$text

#1 Post 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))
Last edited by mikuni90 on Sat Aug 09, 2014 8:56 am, edited 2 times in total.

Admiror Gallery 5 - Fundraising Campaign

mikuni90
Posts: 2
Joined: Thu Aug 07, 2014 5:59 pm

Re: Help Undefined property: JObject::$text/Class 'JFolder'

#2 Post by mikuni90 »

up pls help

User avatar
Bifford
Contributor
Contributor
Posts: 220
Joined: Thu Oct 21, 2010 12:31 am
Location: Essex, UK
Contact:

Re: Undefined property: JObject::$text

#3 Post 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! :D

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

Re: Undefined property: JObject::$text

#4 Post 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;
Help Admiror Gallery become even better,
give us a review on JED

widen76
Posts: 4
Joined: Mon Nov 17, 2014 7:57 pm

Re: Undefined property: JObject::$text

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

Admiror Gallery 5 - Fundraising Campaign

widen76
Posts: 4
Joined: Mon Nov 17, 2014 7:57 pm

Re: Undefined property: JObject::$text

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

sansharam
Posts: 1
Joined: Thu Jul 16, 2015 4:19 pm

Re: Undefined property: JObject::$text

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

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

Re: Undefined property: JObject::$text

#8 Post 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 ;)
Help Admiror Gallery become even better,
give us a review on JED

Post Reply