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.
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!
greetz,
Pedali
Error opening Gallerypage (fb.php)
-
- Phoca Newbie
- Posts: 2
- Joined: 11 Feb 2011, 16:53
Re: Error opening Gallerypage (fb.php)
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
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
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Error opening Gallerypage (fb.php)
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?
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 2
- Joined: 11 Feb 2011, 16:53
Re: Error opening Gallerypage (fb.php)
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;
}
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;
}
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Error opening Gallerypage (fb.php)
Hi, this was solved in RC4, I will release it as soon as possible.
Thank you, Jan
Thank you, Jan
If you find Phoca extensions useful, please support the project