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
Before you even proceed, you must upgrade your phpbb to 2.0.11. Countless boards are getting defaced; it's even in the news.
Am on it, thanks for the tip.
Done the update, phew!!!
Anyone know how to sort the original problem?
Thanks
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.
I rather guess your webhost hasn't set up the use of domains/subdomains correctly. I recommend you ask your webhost for support.
Joachim
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
You'd need to set the cookie prefix in the bridge file to phpbb2mysql. The cpg cookies are not relevent.
The instructions for the bridge say
Important: the cookie names of your bbs and coppermine must not be the same - they must differ!
Right.... your coppermine cookie name is cpg11d_ and your bbs cookie name is phpbb2mysql. What's your problem ?