Page 1 of 1

Error opening Gallerypage (fb.php)

Posted: 11 Feb 2011, 11:01
by pedali
Hey,

I installed the Phoca Gallery Plugin 3.0 Release Candidate on Joomla 1.6,
everything seems to be working quite fine like the Front End Upload for registered users etc.

But theres one error I can't get rid of. :x

I have a Link in my photos-menue called "Fotogallerien" that opens the category list so that the visitors see the subcategories=galleries

Now when i open a gallery it switches to gallery view and also the detail view works but when entering the gallery view i get the error

Notice: Trying to get property of non-object in /home/.sites/462/site1512/web/MC11/administrator/components/com_phocagallery/libraries/phocagallery/facebook/fb.php on line 179

Directly under this notice my gallery view appears and works just fine. I disabled everything concerning facebook/comments/rating etc. because i don't need this features.
Can you give me a hint what's wrong here? :!:

Categories View (works fine): http://www.9tech.at/MC11/index.php/fotogallerien
Then open one of the two galleries and the error will occur or follow this direct link to the first gallery

http://www.9tech.at/MC11/index.php/foto ... stgallerie

Thanks for your help and for your GREAT work with you Phoca-project! :twisted:

greetz,
Pedali

Re: Error opening Gallerypage (fb.php)

Posted: 11 Feb 2011, 17:13
by phil_c64
I have the same error running the version for joomla 1.6. I would love to sort this out and if possible remove the powered by Phoca gallery at the bottom of the page.

The exact error message is:

administrator\components\com_phocagallery\libraries\phocagallery\facebook\fb.php on line 179

I would have no problem donating to the project if I would get these 2 issues sorted. I'm new to using phoca but i'm very impressed with the product, congratulations on creating a truly great product. :|

Phil

Re: Error opening Gallerypage (fb.php)

Posted: 13 Feb 2011, 17:01
by Jan
Hi, please try to enable debug mode if you get more info about the sql database problem. Seems like the user was not defined in facebook area?

Re: Error opening Gallerypage (fb.php)

Posted: 15 Feb 2011, 16:10
by phil_c64
administrator\components\com_phocagallery\libraries\phocagallery\facebook\fb.php on line 179

the code needs an if statement in it.

FROM IN RC3

public function getCommentsParams($id) {

$o = array();
$item = self::getFbUserInfo($id);
$o['fb_comment_app_id'] = $item->appid;
if(isset($item->comments) && $item->comments != '') {
$registry = new JRegistry;
$registry->loadJSON($item->comments);
$item->comments = $registry->toArray();
foreach($item->comments as $key => $value) {
$o[$key] = $value;
}

}
return $o;
}

TO

public function getCommentsParams($id) {

$o = array();
$item = self::getFbUserInfo($id);

if ($item) {
$o['fb_comment_app_id'] = $item->appid;
if(isset($item->comments) && $item->comments != '') {
$registry = new JRegistry;
$registry->loadJSON($item->comments);
$item->comments = $registry->toArray();
foreach($item->comments as $key => $value) {
$o[$key] = $value;
}

}
}
return $o;
}

Re: Error opening Gallerypage (fb.php)

Posted: 15 Feb 2011, 21:26
by Jan
Hi, this was solved in RC4, I will release it as soon as possible.

Thank you, Jan