Trouble: Gallery2 implementing to CMSMS

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

Trouble: Gallery2 implementing to CMSMS

Post 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.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm
Location: Finland

Re: Trouble: Gallery2 implementing to CMSMS

Post 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
thorntma

Re: Trouble: Gallery2 implementing to CMSMS

Post 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?
pluk77

Re: Trouble: Gallery2 implementing to CMSMS

Post 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?
lemkepf
Forum Members
Forum Members
Posts: 163
Joined: Tue Oct 18, 2005 8:30 pm

Re: Trouble: Gallery2 implementing to CMSMS

Post 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.
pluk77

Re: Trouble: Gallery2 implementing to CMSMS

Post 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?
pluk77

Re: Trouble: Gallery2 implementing to CMSMS

Post 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.
pluk77

Re: Trouble: Gallery2 implementing to CMSMS

Post by pluk77 »

had to do the same for the "&FetchRow" function at line 2947.
pluk77

Re: Trouble: Gallery2 implementing to CMSMS

Post 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
pluk77

Re: Trouble: Gallery2 implementing to CMSMS

Post 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...
pluk77

Re: Trouble: Gallery2 implementing to CMSMS

Post 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
Locked

Return to “Modules/Add-Ons”