Skip to Content Skip to Menu

help with Gallery2 plugin

  • houbahop
  • houbahop
  • OFFLINE
  • Posts: 50
  • Thanks: 0
  • Karma: 9
18 years 5 months ago #11320 by houbahop
help with Gallery2 plugin was created by houbahop
Hello,

I have installed gallery2
and the bridge for joomla
and community builder of course
created one gallery for my account,
and the cb plugin for embed gallery2 is installed too
but when I register in cb and go in my profile I have this error

Fatal error: Call to a member function on a non-object in d:\program files\easyphp1-8\www\chezmoi\components\com_comprofiler\plugin\user\plug_g2bridge\g2bridge.php on line 160


the code in line 160 is

159 list ($ret, $results) = $gallery->search($countQuery, $data);
160 if ($ret->isError()) {
161 /* error reporting, use cb style but have to 162 read it first */
163 return false;
164 }


Can you help me with this ? I have no clue..

Please Log in or Create an account to join the conversation.

  • junkers
  • junkers
  • OFFLINE
  • Posts: 7
  • Thanks: 0
  • Karma: 3
18 years 5 months ago #11910 by junkers
Replied by junkers on topic Re:help with Gallery2 plugin
hi,

There seems to be a problem with the call to the isError() subroutine. The script is not finding it and crashing out. The plug in works if you comment out lines 160 to 164, as well as lines 170 to 174 (or was it lines 180 to 184?) which makes the same call to that subroutine. God knows what'll happen if there REALLY is an error that needs trapping, but at least you get to see your pics.

I'm not sure what's going on there but I have a feeling it's caused because of differences in versions. The includes must be out of sync somewhere. I got this problem using the g2 bridge v. 2.0.13 with g2 version 2.1 (final version, not RC). What about you?

Any one else find a proper fix to this issue? :S

Post edited by: junkers, at: 2006/05/08 07:26

Please Log in or Create an account to join the conversation.

  • ffaabbss
  • ffaabbss
  • OFFLINE
  • Posts: 94
  • Thanks: 0
  • Karma: 6
18 years 4 months ago #13602 by ffaabbss
Replied by ffaabbss on topic Re:help with Gallery2 plugin
maybe you could help me as well. i have g202 and cb1 working togethe.. everything just sweet.. but when i go into the admins profile and want to view latest albums added it gives me this

Fatal error: Call to a member function on a non-object in /XXX/components/com_comprofiler/plugin/user/plug_g2bridge/g2bridge.php on line 184




any idea why this happens? the latest pics and most viewed work perfectly.. just latest album makes trouble:(

$searchResults = array();
while ($result = $results->nextResult()) {
$itemId = (int)$result[0];
list($ret, $item) = GalleryCoreApi::loadEntitiesById($itemId);
$fields = array();
$title = $item->getTitle() ? $item->getTitle() : $item->getPathComponent();
$fields = preg_replace('/\r\n/', ' ', $title);
list (, $fields) = GalleryCoreApi::fetchItemViewCount($itemId);
list(,$thumbs) = GalleryCoreApi::fetchThumbnailsByItemIds(array($itemId));
$fields = $urlGenerator->generateUrl(array('view' => 'core.ShowItem', 'itemId' => $thumbs[$itemId]->getderivativeSourceId()));
$fields = $urlGenerator->generateUrl(array('view' => 'core.DownloadItem', 'itemId' => $thumbs[$itemId]->getId()));


" $fields " is line 184

does that help?

Post edited by: ffaabbss, at: 2006/05/22 20:56

Post edited by: ffaabbss, at: 2006/07/27 23:42

Please Log in or Create an account to join the conversation.

  • junkers
  • junkers
  • OFFLINE
  • Posts: 7
  • Thanks: 0
  • Karma: 3
18 years 4 months ago #13668 by junkers
Replied by junkers on topic Re:help with Gallery2 plugin
I haven't seen that problem. I'm using G2 v. 2.1.1 not 2.0.2, although the g2 bridge component is probably the same. I'll take a look at it again and see if the problem occurs in my set up. If it does, I'll get back here again.

Please Log in or Create an account to join the conversation.

  • masyomo
  • masyomo
  • OFFLINE
  • Posts: 18
  • Thanks: 0
  • Karma: 1
18 years 3 months ago #15863 by masyomo
Replied by masyomo on topic Re:help with Gallery2 plugin
same problem on our site

Fatal error: Call to a member function on a non-object in /home/yomohos/public_html/components/com_comprofiler/plugin/user/plug_g2bridge/g2bridge.php on line 159

Please Log in or Create an account to join the conversation.

18 years 3 months ago #16062 by DirtHerder
Replied by DirtHerder on topic Re:help with Gallery2 plugin
I am having this problem as well :(

houbahop wrote:

Hello,

I have installed gallery2
and the bridge for joomla
and community builder of course
created one gallery for my account,
and the cb plugin for embed gallery2 is installed too
but when I register in cb and go in my profile I have this error

Fatal error: Call to a member function on a non-object in d:\program files\easyphp1-8\www\chezmoi\components\com_comprofiler\plugin\user\plug_g2bridge\g2bridge.php on line 160


the code in line 160 is

159 list ($ret, $results) = $gallery->search($countQuery, $data);
160 if ($ret->isError()) {
161 /* error reporting, use cb style but have to 162 read it first */
163 return false;
164 }


Can you help me with this ? I have no clue..

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum