G2mod error

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
Reggie

G2mod error

Post by Reggie »

I installed the G2mod, and installed gallery2 in the cms directory.
Now when I want to setup G2mod I get the following error:

Fatal error: Undefined class name 'loggermanager' in /home/netbits/domains/devernieling.be/public_html/beta/modules/G2Mod/G2Mod.module.php on line 194

I can't find any info about this error in cmsms :s
cyberman

Re: G2mod error

Post by cyberman »

Go to g2mod module line 194 - there you can read something about loggermanager. You must only set // to the first of the line. Then it will works. If I'm right there's another such line too.

With version 0.13 loggermanager is deactivated in CMSms so these lines have nothing to do  :).
Reggie

Re: G2mod error

Post by Reggie »

wow thnx ! That made the admin section work.
Now when I visit the gallery I get an error concerning the line beneith. I guess it has something to do with the "embedding path", I just entered '/../../gallery2', is that correct ? I have filled in the relative path, the path to embed.php, but what is the embedding path ?

The error:
Fatal error: Call to a member function on a non-object in /home/netbits/domains/devernieling.be/public_html/beta/modules/G2Mod/G2Mod.module.php on line 87

The line:

Code: Select all

82   //$log =& LoggerManager::getLogger('G2Mod.module.php');
83   //$log->debug('openGallery2');
84   
85   $ret = GalleryEmbed::init(array('embedUri' => 'index.php?page='.$page, embedPath => $g2_embedding, 'relativeG2Path' => $g2_relative,
86                                              'loginRedirect' => null, 'activeUserId' => null));
87   if($ret->isError())
88   {
89       $ret->getAsHtml();
90       exit;
91   }
Last edited by Reggie on Thu Jun 22, 2006 10:10 am, edited 1 time in total.
User avatar
quadracer
Forum Members
Forum Members
Posts: 44
Joined: Wed Apr 26, 2006 9:59 am

Re: G2mod error

Post by quadracer »

Please look here - in attachment you will found a patched g2mod file - it works ...

http://forum.cmsmadesimple.org/index.ph ... l#msg27687
kevin360

Re: G2mod error

Post by kevin360 »

With the modfied version I'm getting the same error stated above:

Fatal error: Call to a member function on a non-object in
/usr/local/apache2/htdocs/cmstest/modules/G2Mod/G2Mod.module.php on line 87

I can go to the G2Mod admin screen and the relative path and relative path to embed.php are set, the embedding path is blank.  Should that be set to something?

Thanks,
Kevin
Locked

Return to “Modules/Add-Ons”