CPM 1.4.2 and PHPBB 2.0.18 (unable to log in after bridging) CPM 1.4.2 and PHPBB 2.0.18 (unable to log in after bridging)
 

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

CPM 1.4.2 and PHPBB 2.0.18 (unable to log in after bridging)

Started by Auberne, December 05, 2005, 04:22:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Auberne

I have the following issue when trying to bridge coppermine 1.4.2 and PHPBB 2.0.18

If I navigate to my gallery and click on login, I am taken to my BBS login screen, where I can log in. After entering my credentials, I am redirected back to CMG but I appear to be NOT logged in (I still have a login link, and no ability to upload/post images). I am 99% sure this is a pathing/cookie issue. The forum works 100% ok. I have read all of the other relevant posts on this forum but nothing has helped so far

Coppermine Information
Coppermine install: http://www.auberne.com/ace-rag/gallery
Forum install: http://www.auberne.com/ace-rag/forum
Coppermine version: cpg1.4.2
Forum version: PHPBB 2.0.18
Test User Name: test
Test Password: test

BridgeManager Settings:
Forum URL:  http://www.auberne.com/ace-rag/forum
Relative path to your BBS's config file:  ../forum/ 
Cookie Prefix: aubeace_gal (I have also tried aubeace_phpbb which is the same as my PHPBB cookie name)
Use post-based groups?:  0

Additional Information
PHPBB Domain Name: www.auberne.com
PHPBB Script Path: /ace-rag/forum/
PHPBB Cookie Domain: .auberne.com
PHPBB Cookie Name: aubeace_phpbb
PHPBB Cookie Path: /ace-rag/forum

Nibbler

PHPBB cookie path has to be set to '/' - read the docs. The cookie prefix you set for the bridge is the value you set in phpbb.

Auberne

OK, first things first.. the PHPBB cookie information was entered automatically by Auto Cookie Mod, designed to fix any issues with pathing/cookies on installations of PHPBB, which it did. All Auto Cookie Mod does, is detect what the 'correct' values shoudl be and input them into the PHPBB admin panel.

Changing the Cookie Path from /ace-rag/forum to just a a / works for the PHPBB forum still, but NOT for the Gallery.

I did this.

1. Cleared Cookies
2. Went to http://www.auberne.com/ace-rag/gallery
3. Clicked login (which takes me to http://www.auberne.com/ace-rag/forum)
4. Logged in as test/test
5. Returned me automatically to the Gallery page, where I am not logged in.
6. Manually typed in http://www.auberne.com/ace-rag/forum just to check I am still logged in, and yes I am (also restarted browser and yes, am still logged into the BBS)

I haver had so much trouble with previously bridged versions of PHPBB and CPM, so I am at a loss as to what to do here. The instructions both in the forum/docs and the bridging page seem to contradict each other when talking about cookies and bridging with PHPBB.

Auberne

By the way. Changing the Cookie Prefix from aubeace_gal to aubeace_phpbb (so it is the SAME as my PHPBB install) gives me a blank screen with only the words 'FATAL ERROR' when I visit http://www.auberne.com/ace-rag/gallery.

As soon as I change it back, or to something else, I can view the page again, but not log in (or bridge between CPM and PHPBB). I'm beginning to regret spending £50 on another mysql database :)

Thanks for helping  ;)

Nibbler

It needs to be the same - aubeace_phpbb. The fact you get an error is a good sign :)

I'm not sure what you mean about another mysql database, coppermine and phpbb can run from the same one perfectly happily.

Update to the latest udb_base.inc.php and phpbb2018.inc.php from CVS.

Auberne


Lady18wheels

#6
I'm having a similar problem with not being able to log into the gallery directly. 
Quote from: Nibbler on December 05, 2005, 05:55:22 PM
Update to the latest udb_base.inc.php and phpbb2018.inc.php from CVS.
Would these also solve my problem?

If I navigate to my gallery and click on login, I am taken to my PhpBB index (without css applied?), where I can't log in.

Coppermine Information
Coppermine install: http://www.lady18wheels.com/cpg140/index.php
Forum install: http://lady18wheels.com/phpbb/index.php
Coppermine version: cpg1.4.2
Forum version: PHPBB 2.0.18
Test User Name (on phpBB): Test Member
Test Password: password

BridgeManager Settings:
Forum URL: http://lady18wheels.com/phpbb/index.php
Relative path to your BBS's config file: ../phpbb/
Cookie Prefix: 3rdphpbb2mysql (same as phpBB)
Use post-based groups?: 0

BTW - the love/fish graphic (to the right) on the phpBB index header is the link to the cpg1.4.2 install - not the gallery icon under "Whois".  The gallery icon links to the old gallery.
Interested in trucking in the US?  Try my message board

Nibbler

Everyone should update their bridge files if they have issues.

Lady18wheels

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.lady18wheels.com%2Fspecial%2Fca_imade_cpg_question_01.jpg&hash=3147faab03d53c638b3d9d5954186efe81396245)

I'm still having problems.  I uploaded the phpbb2018.inc.php file to the server.  Then I unbridged/rebridged, but it didn't make any difference.  Does something need to be redirected to the phpbb2018.inc.php file?  Should I delete the phpbb.inc.php file?

Also, did I upload the udb_base.inc.php to the right place?  I ran the utility, but that didn't make any difference either.

My cookie prefix in cpg1.4.2 is cpgallery140
My cookie prefix in phpBB2 is  3rdphpbb2mysql
The path in both is simply /

I apologize if I'm not following protocol for trying to explain my problem.  I'm really new at all this, and I sincerely appreciate your help. 

Should someone be able to log into the gallery BEFORE they log into the message board?  I'm asking because I don't know  ???

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.lady18wheels.com%2Fspecial%2Fca_imade_cpg_question_02.jpg&hash=aeea33208d4d6eff85524e6bbefac39148a9b101)
Clicking this login button on the gallery (Christmas2 edited for cpg1.4.2)

takes me to this:
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.lady18wheels.com%2Fspecial%2Fca_imade_cpg_question_03.jpg&hash=71532649652ec51aa8c0591f777f4e21b5b7a596)

but my phpBB really looks like this:
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.lady18wheels.com%2Fspecial%2Fca_imade_cpg_question_04.jpg&hash=2311898bc1a1121051a3c31e2bf74c141596badb)
The arrow is pointing to the link for this new gallery.

If you're logged into the phpBB, you can go to the gallery with no problem.  But you can't log into the gallery by itself.  And when you log out of the gallery, it also logs you out of the phpBB.   
Interested in trucking in the US?  Try my message board

Nibbler

You can't login to the gallery 'by itself', you login to the forum and you are then logged into both. If you logout of the forum you are logged out of both. That's the whole idea.

Lady18wheels

 :D  LOL!  So I doing everything right then?  As far as you can tell anyway?
Interested in trucking in the US?  Try my message board

MerNion

Quote from: Nibbler on December 10, 2005, 11:58:47 AM
Everyone should update their bridge files if they have issues.

Aren't those updated versions of the files included in the downloaded package? Why should they be downloaded seperatly from the CVS and not repackage the 1.4.2 with them?

Nibbler

They will be in the 1.4.3 package, replacing files in already released versions would get confusing.

cassie396

I have followed the advice in this thread, but I am still having a lot of trouble getting the bridge to work. I have tried a lot of different scenarios, and still nothing.

After the bridging, I try to login, but it doesn't allow me to login. It sends me to the board and back, but I am not logged in. The goofy part is that when I go to the emergency recovery link, I don't have to login! It just lets me disable it and I appear as logged in?!

I have tried using different cookie names and the same, neither work. The documentation says they should be different, this thread says they should be the same?! Both paths are set to /.

Something interesting that happened, one of the times that I tried to enter the bridge manager for recovery, it actually made me log in and gave me the warning error that my browser doesn't accept the scripts cookies. I checked my cookie list and there were cookies there, even after I had just cleaned them, so I know they are being set.

Important notes: I'm using Mozilla Firefox (I've tried Explorer with the same results) and my PHPBB is using the Category Heirarchy mod, if that makes a difference, I don't know.

My settings:

Coppermine Information
Coppermine install: http://www.michelleraysmith.com/gallery
Forum install: http://www.michelleraysmith.com/boards
Categories Hierarchy: 2.1.4
Coppermine version: cpg1.4.2
Forum version: PHPBB 2.0.18
Cookie Prefix: MRS Gallery or MRS Boards (neither one works)

BridgeManager Settings
Forum URL:  http://www.michelleraysmith.com/boards
Relative path to your BBS's config file:  ../boards/
Cookie Prefix:    MRS Boards
Use post-based groups?:  0

Additional Information
PHPBB Domain Name: www.michelleraysmith.com
PHPBB Cookie Domain: .michelleraysmith.com
PHPBB Cookie Name: MRS Boards
PHPBB Cookie Path: /

P.S. I just tried updating the two bridge files from above, and I get the same thing. I never get logged in. This is true in Firefox and Explorer?!  :-\

Nibbler

You can't have spaces in your cookie names. Set the up without spaces in both your gallery and forum. Also post a test account. The bridge manager is asking you for the cookie prefix so it must match what you have set in your forum. That is the part that must be the same, not the cookie names themselves.

cassie396

The spaces in the name fixed it. It now seems to be working just fine. And I understand now what is the same and what isn't with the cookie names.

THANK YOU SO MUCH!
I really appreciate your help!
:-*