Page 1 of 1

Trouble: Gallery2 implementing to CMSMS

Posted: Sun Apr 02, 2006 10:23 am
by thetmz
Hey all,

I'm using 0.12.1 Savusavu.
Also, using Gallery 2.

Gallery itself works fine.

Now, I've downloaded Gallery2Mod and also tried plugin for implementing Gallery2 into CMSMS.
G2Mod gives me an error
Fatal error: Class 'LoggerManager' not found in /home/c2bodybu/public_html/modules/G2Mod/G2Mod.module.php on line 194

And while using plugin, it shows:
Fatal error: Call to a member function isError() on a non-object in /home/c2bodybu/public_html/plugins/function.gallery2.php on line 33

Any ideas how to solve this problem?

PS -> My gallery folder is on the root dir, gallery/

Thanks in advance.

Re: Trouble: Gallery2 implementing to CMSMS

Posted: Sun Apr 02, 2006 6:55 pm
by tsw
There seems to be few problems with gallery2 integration..

as cmsms uses adodb_lite and gallery uses adodb embedding wont work "outofthebox"

you have few options

1) download adodb to /lib/ folder and change config.php "$config['use_adodb_lite'] = true;" to false
this way adodb will be ready when embedding gallery2

2) download full version of adodb_lite to /lib/ (make a backup of your old adodb_lite folder) and change it's configuration to have "$modules = "pear:date";" at the bottom before "?>"

3) use embed tag to get gallery2 in a iframe to your page

with the gallery2 plugin tag there is a typo in the tag

Code: Select all

This on line 39: 
 if ($g2data['isDone']) {

Needs to be this:
 if ($g2data['isDone'])
hope this helps

Re: Trouble: Gallery2 implementing to CMSMS

Posted: Wed Apr 05, 2006 9:29 am
by thorntma
I tried doing step 1 of the three suggestions, which clears up the loggermanager error, but I get the following error instead:


Fatal error: Call to a member function on a non-object in ...\modules\News\action.default.php on line 104

I don't get this error any other time.  Is this a file permissions issue?

Re: Trouble: Gallery2 implementing to CMSMS

Posted: Mon Apr 24, 2006 10:21 am
by pluk77
I am using 0.12.1 and when I cange to AdoDB (lite=false) I get the following error messages:

Notice: Only variable references should be returned by reference in /home/berteler/public_html/cmsmadesimple/lib/adodb/adodb.inc.php on line 1421

Notice: Only variable references should be returned by reference in /home/berteler/public_html/cmsmadesimple/lib/adodb/adodb.inc.php on line 1421

Fatal error: Call to a member function on a non-object in /home/berteler/public_html/cmsmadesimple/modules/News/action.default.php on line 104

This is without the G2Mod installed. So it is clearly a AdoDB problem somewhere. Any clue?

Re: Trouble: Gallery2 implementing to CMSMS

Posted: Mon Apr 24, 2006 2:14 pm
by lemkepf
Make sure you download the full version of ADODB , and don't use the stripped down version that comes with CMSms. Other than that... i'm at a loss.

Re: Trouble: Gallery2 implementing to CMSMS

Posted: Mon Apr 24, 2006 2:42 pm
by pluk77
Downloaded the full latest (4.80) version from http://adodb.sourceforge.net/

Uploaded the adodb folder it to the lib folder. Could the version be a problem?

Re: Trouble: Gallery2 implementing to CMSMS

Posted: Mon Apr 24, 2006 9:00 pm
by pluk77
Found an interesting possible cause for the "Only variable references should be returned by reference" notice I keep getting when using AdoDb.

http://codex.gallery2.org/index.php/Gal ... s_wrong.3F

It is possible that the error is caused by the Zend optimizer used by my hosting company.

To get this problem away, I hardcoded the "error_reporting(0);" into adodb.inc.php into the function that caused the problem: GetRow (line 1408).

Not the best solutions, but it works for now.

Re: Trouble: Gallery2 implementing to CMSMS

Posted: Mon Apr 24, 2006 9:03 pm
by pluk77
had to do the same for the "&FetchRow" function at line 2947.

Re: Trouble: Gallery2 implementing to CMSMS

Posted: Mon Apr 24, 2006 9:56 pm
by pluk77
Thought for a moment that the error_reporting would solve the problem, but it did not  :-[

Changed it all back and will ask my host to update the Zend version as I can't seem to be able to chnage the zend options.

Marcel

Re: Trouble: Gallery2 implementing to CMSMS

Posted: Tue Apr 25, 2006 9:24 am
by pluk77
Well... my hosting upgraded the Zend version and the 'reference' errors are gone. Now I am left with a News Extension error:

Fatal error: Call to a member function on a non-object in /home/berteler/public_html/cmsmadesimple/modules/News/action.default.php on line 104

If I now switch on the G2Mod extension I get:

Notice: Use of undefined constant embedPath - assumed 'embedPath' in /home/berteler/public_html/cmsmadesimple/modules/G2Mod/G2Mod.module.php on line 85

But other than that, it seems to work...

Re: Trouble: Gallery2 implementing to CMSMS

Posted: Tue Apr 25, 2006 10:20 am
by pluk77
Due to no bug report facility for G2Mod I will post the fix for the notice here:

Line 85 should read:

Code: Select all

'embedPath' => $g2_embedding
instead of

Code: Select all

embedPath => $g2_embedding