phpBB 2.0.19 and cpg1.4.4 bridging not working propperly phpBB 2.0.19 and cpg1.4.4 bridging not working propperly
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

phpBB 2.0.19 and cpg1.4.4 bridging not working propperly

Started by MadMarian, March 02, 2006, 09:19:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MadMarian

Hello,

searched all through the forum but could only find solutions for other boards and those didn't work out so...

When I enable bridging I get the error message:
Coppermine critical error:
Unable to connect to UDB database !

MySQL said:



What I did beforehand:
- updated my cpg 1.4.2 to 1.4.4
- turned on bridging
- since I had the not-being-admin-problem afterwards turned off bridging and followed all the steps from http://forum.coppermine-gallery.net/index.php?topic=24582.msg113221#msg113221
including copying the files etc. and updated my phpbridge file
- turned on bridging again and that's when I got the error

Now when I want to turn off bridging by going directly to bridgemgr.php in my browser I get the same error message. Actually it works this far that I log in at the lefthand side and am logged in at my gallery then. But I still don't have any admin buttons. And that's only working for users for which I have database entries in my cpg database table AND the forum table. Users who only have forum accounts cannot login to the gallery.

Coppermine install: http://www.screamsilence.net/gallery/
Forum install: http://www.screamsilence.net/forum/
Coppermine version: cpg1.4.4
Forum version: phpBB 2.0.19
Test user account: Tester / password:test

BridgeManager settings:
Forum URL:  http://www.screamsilence.net/forum/
Relative path to your BBS's config file:  ../forum/
Use post-based groups?:  0 



Any suggestions?

Nibbler

The bridge file from that post was written for a different version of phpbb than you are using. Use the bridge files provided in the package.

MadMarian

#2
Okay, solved at least the UDB error problem by putting in my database connection specs directly at

// Database connection settings
$this->db = array(
'name' => $dbname,
'host' => $dbhost ? $dbhost : 'localhost',
'user' => $dbuser,
'password' => $dbpasswd,
'prefix' =>$table_prefix
);


Still... when I login with a user that's only existing in my board user table and not in the gallery table he's logged in in my board and not in the gallery. Might that be because I made my board work with a non-standard user table? I actually changed the name of my user table from the standard prefix forum_ (all the other board tables have forum_) to portal_users....

MadMarian

#3
Well, can solve it when I have both user tables (forum and gallery) with the same users. Would be a quick and dirty solution. But still I miss the admin functions. Used all of the files from the new cpg 1.4.4. archive. Do I have to substitute any of the files?

Did a little research: In my database the Admin User MadMarian has user_group in the cpg user table and the forum user table set to 1. Now in cpg_usergroups the group with id 1 has "has_admin_access" set to 1. So actually user MadMarian should be able to access .../gallery/admin.php But it says I have not the right to access admin.php. What now? Is there a workaround?


Edit: Alright... got it narrowed down. All registered users are now admins and all admins are registered users. Admins have group_id 1 registered users have group_id 2. Considering what I wrote above about the settings in the cpg_usergroups table I don't understand why that is the case.  ???