error using phocagallery : Undefined property: stdClass::$

Phoca Gallery modules - modules for Phoca Gallery extension
leonyx
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 04 Feb 2013, 07:12

error using phocagallery : Undefined property: stdClass::$

Post by leonyx »

On the client site, when showing images galley, it show image folder as I managed but at the end of page it show following error.

Notice: Undefined property: stdClass::$button in C:\websites\pgtf\components\com_phocagallery\views\category\tmpl\default.php on line 119

I'm using Joomla Version 1.5.21 and Version 2.7.2 Phoca
leonyx
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 04 Feb 2013, 07:12

Re: error using phocagallery : Undefined property: stdClas

Post by leonyx »

i just add following condition on line NO 119 and it work for me

if (empty($value) || $value == null) continue;
if ($value->button == null) continue;
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: error using phocagallery : Undefined property: stdClas

Post by Jan »

Hi, thank you for the info, do you get the same problem for the latest Phoca Gallery version (2.8.2)?

Jan
If you find Phoca extensions useful, please support the project
leonyx
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 04 Feb 2013, 07:12

Re: error using phocagallery : Undefined property: stdClas

Post by leonyx »

Yes
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: error using phocagallery : Undefined property: stdClas

Post by Jan »

Hmm, I will take a look at this. Thank you, Jan
If you find Phoca extensions useful, please support the project
Post Reply