coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: NightriderXP on August 15, 2006, 09:19:27 AM

Title: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
Post by: NightriderXP on August 15, 2006, 09:19:27 AM
I have the following issue when trying to bridge coppermine and phpBB 2.0.21:

I have bridged them together, but when I enter the Gallery, I am not logged in even though I'm logged in to phpBB.  When I click on the Coppermine login, it takes me back to the phpBB index page...

Coppermine install: http://www.freenclearstuff.com/gallery
Forum install: http://www.freenclearstuff.com/forum/nfphpbb
Coppermine version: cpg1.4.8
Forum version: phpBB 2.0.21
Test user account: testuser / testpwd

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

Gallery Cookie Path: /
Gallery Cookie: cpg148
phpBB Cookie Path: /
phpBB Cookie: phpbb2mysql

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimg398.imageshack.us%2Fimg398%2F3663%2Fdontknow6sf.gif&hash=8c16b2011ebf10b663cad7a9267d0c50198ae5f0)
Title: Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
Post by: Joachim Müller on August 15, 2006, 09:50:26 AM
test user account doesn't work for me.
Title: Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
Post by: NightriderXP on August 15, 2006, 10:09:45 AM
I'm sorry.  I created the Test account in Coppermine rather than phpBB.  You should be able to log in now using the following:

testuser / testpwd

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimg358.imageshack.us%2Fimg358%2F2396%2Ficonredface4wb.gif&hash=55fca93615f79343ab91c26fd02a8c39276f3e47)
Title: Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
Post by: NightriderXP on August 15, 2006, 10:15:48 AM
I just noticed that the Bridge seems to work perfectly for the Test account, but not for my Admin account.  I have cleared cookies in my browser too, but that doesn't seem to make any difference...

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimg398.imageshack.us%2Fimg398%2F3663%2Fdontknow6sf.gif&hash=8c16b2011ebf10b663cad7a9267d0c50198ae5f0)
Title: Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
Post by: Joachim Müller on August 15, 2006, 11:04:09 AM
Quote from: NightriderXP on August 15, 2006, 10:15:48 AM
but not for my Admin account.
What exactly doesn't work for you phpBB admin account?
Title: Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
Post by: NightriderXP on August 15, 2006, 05:12:51 PM
When logged in as an Admin in phpBB, I am not logged in when I go into the Coppermine gallery.  But when I'm logged in as the Test member, I am logged in when entering the Gallery.  So it seems that the Bridge is only working for non-Admin members...

This is what I see when entering the Gallery logged in as an Admin:

[Edit GauGau]
replaced hotlinked screenshot [ i m g ] http://img54.imageshack.us/img54/7501/screenshot740dc7.jpg [ / i m g ] with an attachment. In the future, please use attachments instead of hotlinks.
[/edit]


But if I was logged in as admin when entering the Gallery, I shouldn't be seeing this menu.  If I click on Login in the Gallery, I am redirected back to the phpBB Index page...

OTOH, this is what I see when logged in to the Test account in phpBB then enter the Gallery.  This part seems to be working correctly.  So it seems that I have a partial bridge that only allows regular members to remain logged in when entering the Gallery...

[Edit GauGau]
Replaced hotlinked pic [ i m g ] http://img54.imageshack.us/img54/5804/screenshot741bc9.jpg [ / i m g ] with an attchment for the same reason as suggested above
[/edit]


(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimg398.imageshack.us%2Fimg398%2F3663%2Fdontknow6sf.gif&hash=8c16b2011ebf10b663cad7a9267d0c50198ae5f0)

Title: Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
Post by: Nibbler on August 15, 2006, 05:28:34 PM
Try clearing your cookies. Even if Coppermine doesn't recognise your admin rights it should have at least recognised you as a registered member. Also make sure you selected the right type of phpbb bridge in the bridge manager.
Title: Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
Post by: NightriderXP on August 15, 2006, 06:20:03 PM
Yes, I've cleared my browser cookies for the domain several times, yet still see the same results.  Basically if I am logged in as admin, the bridge doesn't recognize my account at all and acts like phpBB and Coppermine haven't been bridged, yet when I'm logged in as the regular test member, the bridge works perfectly...

Also, since I am working on a phpBB 2.0.21 board, I used the phpBB Bridge for 2.0.18 or Greater setting...

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimg398.imageshack.us%2Fimg398%2F3663%2Fdontknow6sf.gif&hash=8c16b2011ebf10b663cad7a9267d0c50198ae5f0)
Title: Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
Post by: Nibbler on August 15, 2006, 06:23:30 PM
Make sure you are accessing your site using www. each time. If you are happy to PM the admin account details I can investigate for you.
Title: Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
Post by: NightriderXP on August 15, 2006, 07:46:48 PM
Thanks Nibbler.  I sent you a PM with the admin login details...

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimg453.imageshack.us%2Fimg453%2F8123%2Fheadbangzc7.gif&hash=c378bfaa16aacdbf04bbae8d13c4dab321b6ff28)
Title: Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
Post by: Nibbler on August 15, 2006, 07:55:08 PM
I can confirm the issue. Have you applied any mods to phpbb that could have changed admin authentication code ?
Title: Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
Post by: NightriderXP on August 15, 2006, 08:04:08 PM
Not really.  This isn't even my site.  On my site, I've installed over 800 MODs and have the Coppermine 1.4.3 Gallery successfully bridged.  On this site, there are only 3 installed MODs and none of them have anything to do with the Sessions or logging system...

The MODs installed on this site are:


I have all but the last MOD and a whole lot more installed on my site...

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimg398.imageshack.us%2Fimg398%2F3663%2Fdontknow6sf.gif&hash=8c16b2011ebf10b663cad7a9267d0c50198ae5f0)
Title: Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
Post by: NightriderXP on August 16, 2006, 04:08:24 AM
Ok, any idea of where we go from here???

???
Title: Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
Post by: NightriderXP on August 16, 2006, 08:50:27 PM
Could you give me an idea of whether you can help me or if this problem has stumped you too?  I need to know one way or another so I can decide where to go from here...

???

Title: Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
Post by: Nibbler on August 16, 2006, 08:52:39 PM
If you are happy to PM me FTP and DB access then I can get it fixed. I don't know what else to suggest.
Title: Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
Post by: NightriderXP on August 16, 2006, 10:13:58 PM
Thanks Nibbler.  That is a generous offer.  I sent you a PM...

:D
Title: Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
Post by: Nibbler on August 16, 2006, 11:05:13 PM
Seems to be working ok now. Your phpbb admin account has an id of 1, which is strange since phpbb account numbers normally start from 2. You'll need to either reapply the marked sql change in bridge/udb_base.inc.php whenever you update your gallery or make yourself a new admin account.
Title: Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
Post by: NightriderXP on August 16, 2006, 11:36:07 PM
Yes, I added my admin record long after the site owner had established her membership.  I copied my admin record from my Test Database to her Users table and since 1 is usually an available User ID, that is the User ID that I use...

So are you saying that Coppermine wasn't working for me simply because my User ID was set to 1?  If true, I should be able to change my User ID to any other number and it should work for me...

Ok, I checked and after changing my User ID to a number larger than 1 and clearing my browser cookies for the site, the Bridge seems to be working correctly for my admin acct.  Is there any reason why the User ID 1 should not be used?  This is the first time that it has caused me any problems when working on a site...

Thanks for your help on this Nibbler.  It would never have occurred to me that the User ID might be a problem...

:D
Title: Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
Post by: Nibbler on August 16, 2006, 11:52:10 PM
That would explain it then. It's not a problem that the account was 1, the problem is that there was no corresponding entry in the user_groups table for user_id 1 since you manually added the account to only one of the tables. Apparently phpbb can tolerate this, maybe for backwards compatibility reasons, but I didn't allow for that. I only test against clean installs of the software we bridge to. Since the authentication query joins the user table to the user_group table you do need to be in both to be recognised. First time I came across this problem, thankyou for your cooperation in resolving it.
Title: Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
Post by: NightriderXP on August 17, 2006, 12:00:49 AM
Interesting.  I didn't add a User Group record when I changed the User ID in the Users table to a value greater than one, but now the Bridge is working perfectly for me.  I will add a record to the User Group now just to guarantee that this doesn't become an issue for me again in the future...

I'm not surprised that we keep finding ways to break the software.  Over in Area 51, I would have hoped that I would have resolved every problem that could arise.  But every day, I get a new challenge that I had never seen before.  They keep me on my toes there and I imagine that we keep you on your toes here as well...

Thanks for all the help with this Nibbler...

;D
Title: Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
Post by: Nibbler on August 17, 2006, 12:10:24 AM
It's working fine now because i changed the code. You'd need to upload a clean copy of udb_base.inc.php to test the issue.
Title: Re: Bridging Problem between Coppermine 1.4.8 to phpBB 2.0.21...
Post by: NightriderXP on August 17, 2006, 12:20:59 AM
Ok, that makes sense.  As long as it is working for everyone, I'm in no hurry to test this or modify the code any further.  Thanks again for all your help...

;D