coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: Formula on September 01, 2006, 04:57:05 PM

Title: phpbb 2.0.21 to cpg 1.4.9 bridge, cookie not passing
Post by: Formula on September 01, 2006, 04:57:05 PM
Problems:  The first issue that I am having is that Coppermine can't read my cookies.
phpbb cookie domain: .peoplesynch.com
phpbb cookie name: phpbb2mysql

I've tried switching to the domain www.peoplesynch.com and peoplesynch.com, clearing my cookies, and relogging in with no success. Also, I tried using http://peoplesynch.com/cpg149/ instead of http://www.peoplesynch.com/cpg149/ with all versions of my cookie domain.

I've been reading through your previous solutions for the past couple of days and couldn't find a solution that worked for me.  I still think I have a cookie error, but I just can't seem to figure it out.

The second issue is that when I click Login in on Coppermine, it redirects to a page at the forum level that is ucp.php.  Is this a file that I'm supposed to copy into the folder, I read through the documentation and didn't notice it or I just don't remember seeing it.  The problem with this is that my index.php will parse error 404 urls and try to make sense out of them to direct the user to the correct page, and it thinks that ucp.php is a user, and sends you to a fake users page.

Thanks!!!

Here are my install stats:


Coppermine install: http://www.peoplesynch.com/Functions/cpg149/
Forum install: http://www.peoplesynch.com/Functions/forum
Coppermine version: cpg 1.4.9
Forum version: PHPBB 2.0.21
Test user account: test / test
Login here: http://www.peoplesynch.com/Functions/forum/login.php


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




USER:
------------------
Array
(
    [ID] => 14cfc9271849dc7a45293d4abf09ec62
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 0
    [user_name] => Guest
    [groups] => Array
        (
           
Title: Re: phpbb 2.0.21 to cpg 1.4.9 bridge, cookie not passing
Post by: Nibbler on September 01, 2006, 05:03:15 PM
If you get redirected to ucp.php then you must be using the php 2.2 bridge file. This will not work with php 2.0.21. You need to use the option marked for 2.0.18 or higher.
Title: Re: phpbb 2.0.21 to cpg 1.4.9 bridge, cookie not passing
Post by: Formula on September 01, 2006, 05:16:21 PM
Cool, that got the login redirect to work.  It's still not reading the cookie correctly though.  I just tried making the phpbb cookie www.peoplesynch.com, and peoplesynch.com (with the new bridge), and it still isn't being picked up by coppermine.  Coppermine is setting its cookie to Host:www.peoplesynch.com where phpbb is setting its cookie to Domain:.peoplesynch.com or .www.peoplesynch.com.

Thanks for the previous fast reply!
Title: Re: phpbb 2.0.21 to cpg 1.4.9 bridge, cookie not passing
Post by: Nibbler on September 01, 2006, 06:18:24 PM
test account works for me, issue solved?
Title: Re: phpbb 2.0.21 to cpg 1.4.9 bridge, cookie not passing
Post by: Formula on September 01, 2006, 06:34:20 PM
yep, all my new users work, when I ported my old login system to phpbb, I must not have filled in some of the correct fields.  Thanks for this cool program and great support.  :)

case solved.