coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: pponting on December 23, 2004, 09:20:48 PM

Title: Integration stopped working (phpbb 2.0.11 > cpg 3.1.2)
Post by: pponting on December 23, 2004, 09:20:48 PM
All was working but now it has stopped.  i cam login to my forum, then I follow my link the my cpg installation and it says I am not logged in.  Click login, get redirected back to the forum at the login page so I login again and carry on round in circles.

What I have is:

my domain is
moto.me.uk  (which is an addon domain of www.theystolemydomain.com)

phpbb forum
moto.me.uk/forum

cpg installation
moto.me.uk/gallery

The strange thing is, I go to  www.moto.me.uk/forum and then click the link at the top for my gallery.  It takes me to motome.theystolemydomain.com/gallery which is in fact the same place bu via a sub-domain.  The link in my forum does point to moto.me.uk/gallery (you see it if you hover over the link)  in fact if you go direct to www.moto.me.uk/gallery it redirects to theystolemydomain.com/gallery

At first I thought it might be some redirection in my cpanel but I have checked that and no sign there.  I get the feeling that it is in the code of cpg or the redirection ofrom my bb2 installation because

If I go to
www.moto.me.uk/gallery
I redirect to
motome.theystolemydomain.com

if I go to
www.moto.me.uk/gallery/install.php
I stay at the right location and the installer starts (install.php has now been deleted)

if I go to
http://moto.me.uk/gallery/login.php
I redirect to
http://moto.me.uk/forum/login.php?redirect=cpg_redir.php

and if I go to
http://moto.me.uk/gallery/thumbnails.php?album=31
I stay at that url but get the No Image to display (because I am not logged in)

I have set up a demo id and password
tempuser
temppassword
Title: Re: Integration stopped working (phpbb 2.1.10 > cpg 3.1.2)
Post by: Tranz on December 23, 2004, 09:28:01 PM
Before you even proceed, you must upgrade your phpbb to 2.0.11. Countless boards are getting defaced; it's even in the news.
Title: Re: Integration stopped working (phpbb 2.1.10 > cpg 3.1.2)
Post by: pponting on December 23, 2004, 10:03:03 PM
Am on it, thanks for the tip.
Title: Re: Integration stopped working (phpbb 2.1.10 > cpg 3.1.2)
Post by: pponting on December 24, 2004, 01:09:59 AM
Done the update, phew!!!

Anyone know how to sort the original problem?

Thanks
Title: Re: Integration stopped working (phpbb 2.0.11 > cpg 3.1.2)
Post by: pponting on December 24, 2004, 01:51:17 AM
I forgot to add in the original post

If I rename
www.moto.me.uk/gallery
to
www.moto.me.uk/gall2
when I go to this new directory it redirects me to
http://motome.theystolemydomain.com/gall2/

Something in the cpg code is 'resolving' the url to its actual url.
Title: Re: Integration stopped working (phpbb 2.0.11 > cpg 3.1.2)
Post by: Joachim Müller on December 24, 2004, 09:28:33 AM
I rather guess your webhost hasn't set up the use of domains/subdomains correctly. I recommend you ask your webhost for support.

Joachim
Title: Re: Integration stopped working (phpbb 2.0.11 > cpg 3.1.2)
Post by: pponting on December 24, 2004, 01:15:11 PM
Right, sorted out the domain problem, I de-registered the domain and re-registered it again.  The problem is now the cookies (not sure if I should start a new thread or not)

I have my phpbb forum  set to use
domain=moto.me.uk
cookie=phpbb2mysql
path=/

in the phpbb_inc.php I have the cookie prefix set as
cookie=motocop

When I clear my cookie and login to the forum, my cookies appear as
domain=.moto.me.uk  name=phpbb2mysql_sid
domain=.moto.me.uk  name=phpbb2mysql_data
(note the dot before the domain name)

After trying to login to the gallery, it sets the cookie as
host=moto.me.uk  name=cpg11d_data
(note, no dot before host name)

The first cookies use the phrase domain whereas the cookie for cpg uses the phrase host for the domain name and doesn't have a leading dot.  Not sure if any of this is relevant.

So clearly a problem but I am not sure how to fix it.

Test user and password is
user=tempuser
password=temppassword


Title: Re: Integration stopped working (phpbb 2.0.11 > cpg 3.1.2)
Post by: Nibbler on December 24, 2004, 03:07:01 PM
You'd need to set the cookie prefix in the bridge file to phpbb2mysql. The cpg cookies are not relevent.
Title: Re: Integration stopped working (phpbb 2.0.11 > cpg 3.1.2)
Post by: pponting on December 24, 2004, 08:14:26 PM
The instructions for the bridge say
Important: the cookie names of your bbs and coppermine must not be the same - they must differ!
Title: Re: Integration stopped working (phpbb 2.0.11 > cpg 3.1.2)
Post by: Nibbler on December 24, 2004, 08:24:49 PM
Right.... your coppermine cookie name is cpg11d_ and your bbs cookie name is phpbb2mysql. What's your problem ?