Log-in loop with phpBB bridge Log-in loop with phpBB bridge
 

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

Log-in loop with phpBB bridge

Started by savagecreature, June 15, 2014, 10:14:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

savagecreature

click on log-in on in the gallery, takes me to log-in for phpBB but doesn't go back to gallery.

I have read all the threads I can find about this problem and tried everything they recommended that I could understand with no success. I have read the documentation on bridging and tired it twice, having to gain access to the bridge manager through "what to do if it breaks" process. The threads I have read indicate that it's a cookie problem, but I don't know enough about cookies to hunt it down and fix it. (if that's what it is)

Thank you for your patience and assistance.


Coppermine install: http://rebeldroids.net/gallery
Bridging app install: http://rebeldroids.net
Coppermine version: cpg1.5.28
Bridging app version: phpBB ver. 3.0.12
Test user account: galleryTester / galleryTester1  <--This is a phpBB account, right? 'cause you can't get to the log-in screen of   coppermine?

BridgeManager settings:
Bridge app URL:  http://rebeldroids.net
Relative path to your bridge app's config file:  ../
Cookie name or prefix:  phpbb3_b33ur
Use bridge app custom groups?:  0

Αndré

Your board doesn't use cookies but adds a parameter to identify the user:
Quotehttp://rebeldroids.net/index.php?sid=53298a99b622fc1bd7f1128568591f8e

I assume this is a phpBB setting. As long as your board doesn't use cookies, bridging won't work.

savagecreature

Thank you for your reply.  I have double checked (and triple) the settings in phpBB and all of them appear to be correct for what I'm trying to do. I contacted my webhost tech support and have them trying to assist with the problem. They provided me with a php info file which is located here:

http://rebeldroids.net/phpinfo.php

in the hopes that you might see either an obvious problem that we can than address or at least confirm that the settings, etc are correct so we can look elsewhere for a solution.

Thanks again for your help.
c.

Αndré

I suggest to read the phpBB docs how to setup phpBB to use cookies. Additionally, I recommend to delete the phpinfo.php file.

Dion

The board is setting the phpbb3_b33ur_u, phpbb3_b33ur_k, and phpbb3_b33ur_sid cookies properly. One can log in to the board, and they will be logged into the gallery as well. The only time phpBB will not use cookies is if the user has cookies disabled in their browser.

As for the problem at hand, there are two redirect INPUT tags in the login form and there should only be one. This is probably due to a bug in the phpBB theme you're using. Try changing the theme to the default Prosilver theme to see if the login problem goes away.

savagecreature

thank you both very much for your help.

Tech support from the company that does my hosting "set the register_globals to off in php.ini" and this appears to have resolved the problem. It now works and has continued to work.

I have no idea if this was the correct approach or if there are still problems that have yet to be uncovered, but I will move forward assuming the issue has been resolved.

Thank you again for your assistance.

gmc

Interesting... And I can see how that might be an issue...
With register_globals ON, Coppermine takes some additional actions to clear variables introduced by the setting... I have encountered (in coding a plugin) where it is a little too 'aggressive' and had impact on later use of $_GLOBAL for example...

As register_globals is deprecated (and gone in the latest PHP versions), and I was able to (mostly) code around for my needs, macro preserve security, there hasn't been a change made to address this.

Leave it OFF (assuming no issues with other code) - and I expect you will be fine...
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money

Αndré