Trouble With Coppermine-Clipshare Integration Trouble With Coppermine-Clipshare Integration
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Trouble With Coppermine-Clipshare Integration

Started by thepinoytube, January 25, 2007, 10:34:56 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

thepinoytube

I have the following issue when trying to bridge coppermine and clipshare (video sharing application):

Fatal error: Cannot redeclare cpggetmicrotime() (previously declared in /home/thepinoy/public_html/gallery/include/init.inc.php:35) in /home/thepinoy/public_html/gallery/include/init.inc.php on line 33


Coppermine install: http://www.thepinoytube.com/gallery/ (site is still in development stages)
Forum Application install: http://www.thepinoytube.com/ (application is at the root)
Coppermine version: CPG1.4.10
Forum version: Clipshare 1.6
Test user account: test/tester

BridgeManager settings:
Forum URL:  http://www.thepinoytube.com
Relative path to your BBS's config file:  ../include/config.php
Use post-based groups?:  0
Cookie name/preifx (if applicable): N/A

Actually, for the BRIDGE MANAGER SETTINGS, I did not have to enter any of the above since I kept being told "No action needed for this step, please proceed" in ALL of the sections. Then when came time to "Enable" it, I got the above error message.

I used a custom bridge file, modeled after the punbb115.inc.php since it was the most basic out of all those there, and replaced only these areas with my own information:

FROM:

if (!USE_BRIDGEMGR) { // the vars that are used when bridgemgr is disabled

// URL of your punbb
$this->boardurl = 'http://www.yoursite.com/punbb';

// local path to your punbb config file
require_once('../punbb/config.php');



TO:

// URL of your clipshare
$this->boardurl = 'http://www.thepinoytube.com';

// local path to your clipshare config file
require_once('../include/config.php');


Thoughts? Help?

Thanks in advance!

Nibbler

You need to do more than that to have a working custom bridge file. You get the error because you are using include() to include one of Coppermine's files. Unless you set USE_BRIDGEMGR to false earlier in the code your changes are not going to have any effect due to that if condition.

thepinoytube

Quote from: Nibbler on January 25, 2007, 01:15:18 PM
You need to do more than that to have a working custom bridge file. You get the error because you are using include() to include one of Coppermine's files. Unless you set USE_BRIDGEMGR to false earlier in the code your changes are not going to have any effect due to that if condition.

Hi Nibbler,

Thanks for the reply. I set the USE_BRIDGEMGR to false, and now my Gallery says:

Coppermine critical error:
Unable to connect to UDB database !

MySQL said:

(it doesn't state the cause.. it's just blank after "MySQL said:")

Nibbler

You need to provide the database details of this 'clipshare' in the bridge file.

thepinoytube

Quote from: Nibbler on January 25, 2007, 06:40:20 PM
You need to provide the database details of this 'clipshare' in the bridge file.

I think I'm getting there.... how do I access the admin page of my Gallery? It now says, "You do not have permission to view this page." when I try to access admin. I created the exact same username/password in Clipshare as my Coppermine Gallery username/password, yet when I try to access the gallery admin area, it's still a no-go.

Nibbler

Bridging doesn't work on the basis of identical login details. It authenticates users directly from the bridged application and ignores it's own user management. You need to get the bridge to recognise you as an admin and then it will let you into the admin pages in Coppermine.

thepinoytube

Quote from: Nibbler on January 25, 2007, 07:41:24 PM
Bridging doesn't work on the basis of identical login details. It authenticates users directly from the bridged application and ignores it's own user management. You need to get the bridge to recognise you as an admin and then it will let you into the admin pages in Coppermine.

I'm sorry, but my knowledge in this area is pretty limited.

How do I go about getting the bridge to recognise me as an admin so that it will let me into the admin pages in Coppermine?

Thanks, you've been very helpful to get me this far.

Nibbler

It's based on groups, so you need to get the bridge to determine which groups the user is in based on the information in the bridged app's db. To give them admin rights the bridge should put them in group 1.

thepinoytube

Quote from: Nibbler on January 25, 2007, 08:07:32 PM
It's based on groups, so you need to get the bridge to determine which groups the user is in based on the information in the bridged app's db. To give them admin rights the bridge should put them in group 1.

Is this done in phpmyadmin? In coppermine or the bbs database?

thepinoytube

Also, I think I should add that when I log into the Clipshare account (use: test/tester), then click on gallery (link to gallery is at the footer - http://www.thepinoytube.com/gallery/), the login doesn't seem to "stick", and when I click on the "Login" link in Gallery, it takes me back to the Clipshare login page (even thoguh i am already logged in).

And when I try to go back to Gallery bridgemanager (admin side of things), I have this error:

Fatal error: Cannot redeclare cpggetmicrotime() (previously declared in /home/thepinoy/public_html/gallery/include/init.inc.php:35) in /home/thepinoy/public_html/gallery/include/init.inc.php on line 33

However, in the NON-admin side of things (http://www.thepinoytube.com/gallery/) ... there is no error, just the login issue.

:-\