phpbb3.0.6 and Coppermine 1.4.25 Bridge - log in circle phpbb3.0.6 and Coppermine 1.4.25 Bridge - log in circle
 

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

phpbb3.0.6 and Coppermine 1.4.25 Bridge - log in circle

Started by eva4art, January 03, 2010, 03:19:07 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

eva4art

Hi,

I have the same problem as many others before. The login page takes me to the forum, I log in succesfuly and get redirected to the gallery but I am not loged in.
I downloaded and installed a new phpbb3.0.6 and Coppermine 1.4.25.
I uploaded the phpbb3.inc.php file into the coppermine/bridge folder.
I added the extra lines to the bridgemgr.php file.
I did the bridging but got into a login loop.
I red through the corresponding posts and tried different cookie setups, cleared the browser cookies and cache but no luck. Please, help. Here is my info:

Coppermine install: http://eva4art.com/coppermine_gallery
Forum install: http://eva4art.com/phpbb3_forum
Coppermine version: cpg1.4.25
Forum version: phpbb 3.0.6
Test user account: testuser / testing

BridgeManager settings:
Forum URL:  http://eva4art.com/phpbb3_forum
Relative path to your BBS's config file:  ../phpbb3_forum/
Use post-based groups?:  1
Cookie name/prefix: phpbb3_7t4e7

Coppermine config.:
Cookie name: coppermine
Cookie path: /

phpbb3 ACP PHP Variables:
_COOKIE["coppermine_data"]   YTozOntzOjI6IklEIjtzOjMyOiIxOTU0N2QyZTYwZDU4MmQxYTMzOGU3ZDlmYjY2NjY3MiI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjt9
_COOKIE["c4ea56d5301d33d2682ceaf082de003f"]   756982e450ac2968647f26275984394d
_SERVER["HTTP_COOKIE"]   coppermine_data=YTozOntzOjI6IklEIjtzOjMyOiIxOTU0N2QyZTYwZDU4MmQxYTMzOGU3ZDlmYjY2NjY3MiI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjt9; c4ea56d5301d33d2682ceaf082de003f=756982e450ac2968647f26275984394d
_ENV["HTTP_COOKIE"]   coppermine_data=YTozOntzOjI6IklEIjtzOjMyOiIxOTU0N2QyZTYwZDU4MmQxYTMzOGU3ZDlmYjY2NjY3MiI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjt9; c4ea56d5301d33d2682ceaf082de003f=756982e450ac2968647f26275984394d

eva4art

I kept trying to change cookies, clear my browser cache, read more post and documentation but still couldn't make the bridge work.
I got 40 views on my post but no help.
I give it an other try maybe some of the more experienced guys give me a helping hand.
My settings now:

Coppermine install: http://eva4art.com/coppermine_gallery
Forum install: http://eva4art.com/phpbb3_forum
Coppermine version: cpg1.4.25
Forum version: phpbb 3.0.6
Test user account: testuser / testing

BridgeManager settings:
Forum URL:  http://eva4art.com/phpbb3_forum
Relative path to your BBS's config file:  ../phpbb3_forum/
Use post-based groups?:  0
Cookie name/prefix: eva4art_forum

Coppermine config.:
Cookie name: eva4art_gallery
Cookie path: /



phill104

Currently the bridge is not enabled properly. If a user tries to login from coppermine with the bridge enabled then that users should be re-directed to the logon page of phpbb3, not the coppermine login page as is currently the case. All I can suggest is that you double check your code.

I am not an expert in bridging however and have only used this bridge once. Maybe Nibbler (the designer of this bridge) will be along soon and can give more advice. Please be patient, we are a small team so it sometimes takes days rather than hours for the right person to see a post to respond.
It is a mistake to think you can solve any major problems just with potatoes.

Joachim Müller

Make sure that you're not using the phpbb-bridge file that comes with coppermine out of the box, as that bridge file is only meant to take care of coppermine being bridged with phpbb2.x (you failed to post what bridge you're using). For your version of phpbb3, you will need the bridge discussed in [cpg1.4.x]: PHPBB3 bridge. Disable bridging, upload that phpbb3-bridge file to http://eva4art.com/coppermine_gallery/bridge/ if it's not there already, then re-apply the bridge. However, as far as I can see, you already have the needed bridge file.
What I can see though is your inconsistent use of the leading www-subdomain. You have to understand that subdomains are different domains as far as authentification by cookies is concerned: when clicking on the "Login" link on your coppermine gallery at http://eva4art.com/coppermine_gallery/ I'm being sent to http://www.eva4art.com/phpbb3_forum/ucp.php?mode=login&redirect=http%3A%2F%2Feva4art.com%2Fcoppermine_gallery%2F (notice the leading www subdomain!) instead of http://eva4art.com/phpbb3_forum/
As far as I can see you're using session-driven authentification in phpbb as well, which is of course a show stopper as well: you need to set up your forum to use cookie-driven authentification, as coppermine needs to be able to read your phpbb3-cookie. Coppermine doesn't work with session driven authentification.

Nibbler

PHPBB is using sessions because you have an invalid cookie configuration. Disable 'secure cookies' in phpbb. You are not using SSL (https) so you can't use secure cookies.

eva4art

Thank you very much for your help.
I disabled the secure cookie option and will try to get rid of the domain name differences.
The log in is working now. Is there a way to take the customers back automatically to the gallery if they came from there? Right now they go to the forum index page and have to click a button to the gallery. If I remember well I red it in one of the posts that currently there is no such option. Is that the case?
I appreciate your help.

Eva

Joachim Müller

Quote from: eva4art on January 05, 2010, 05:16:57 AMIs there a way to take the customers back automatically to the gallery if they came from there? Right now they go to the forum index page and have to click a button to the gallery. If I remember well I red it in one of the posts that currently there is no such option. Is that the case?
That option would have to reside in phpbb, which is an app we're not familiar with. We can't support you on this, sorry.
Please resolve your threads.

Nibbler

Yes, that is supported. You need to do as already suggested and stop using the www. prefix in the bridge manager.

eva4art

Thank you guys, again.
I changed the www. prefix in the bridge manager.
On the phpbb forum site I found instructions to make the redirect to the gallery work.
Now everything is working as it should.
If your think it is useful I can post the phpbb link here so maybe it can help others too.
Let me know.
Thank you for your help.