[Solved]: upgrade, admin bridge problem [Solved]: upgrade, admin bridge problem
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

[Solved]: upgrade, admin bridge problem

Started by brijay, March 14, 2008, 12:30:31 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

brijay

Hi,

I recently had my site move server plus have just upgraded my phpBB to latest version. I had intentions of upgrading coppermine but when I went to the gallery discovered I cant login as admin. I cannot tell you if this has occured when the site transferred or whether it was after the forum upgrade.

What happens when I try to login to the gallery it redirects me to my forum for login (as it should do) but when I login in it only logs me in to the forum, it then transfer me back to the gallery but I am not logged in there in any form neither admin or user.

I know I need to update my coppermine and intend too but am worried about doing this until I have the ability to login as admin. My current version is 1.2 (I think...cant get in to find out, is there some other way to find out?).

Should I just go ahead with the upgrade or do I need to sort the login problem first?

Thanks in advance
Leisa

brijay

sorry I have disovered that I am actually running 1.4.3, not 1.2.

Board is here:
http://bumpsandbundles.com.au

Thanks Leisa

Sami

This is not an upgrade problem , so I moved it here
Please do as suggested under sticky thread of this board.
I think your phpbb cookie path is wrong , it should be "/" instead of "/Forum"
‍I don't answer to PM with support question
Please post your issue to related board

brijay

Thankyou yes I have since posting and searching these forums also think it is a cookie problem, prob is I cant work out how to recify it. I have changed my forum cookie path to just a plain  "/", I have been into my database and looked at the settings for the cookie path to the gallery cpg143_config but it does seem to have just the "/", am I meant to be looking somewhere else, I cant see a cookie path in the cpg_bridge file.

I have the following issue when trying to bridge coppermine and XXX:
[error message here]

Coppermine install: http://www.bumpsandbundles.com.au/babygallery/
Forum install: http://www.bumpsandbundles.com.au/Forum/
Coppermine version: cpg1.4.3
Forum version: phpbb 2.0.23
Test user account: test / testaccount

BridgeManager settings:
Forum URL:  http://www.bumpsandbundles.com.au/Forum/index.php
Relative path to your BBS's config file:  ../Forum/ 
Use post-based groups?:  0   ?yes
Cookie name/preifx - bumpsandbu_forum

Thanks in advance
Leisa

Joachim Müller

Quote from: brijay on March 14, 2008, 07:06:19 AM
Coppermine version: cpg1.4.3
Upgrade! Most recent stable release currently is cpg1.4.16, so you're running 13 (!) versions behind. We're not willing to look into issues that may be related to bugs that existed in older versions.

brijay

Hi & thanks for response I just wasn't sure if I should play around with things when I couldn't login.

Anyway upgrade is complete, still cant login so still have same problem

So now running cpg1.4.16

Thanks Leisa

Joachim Müller

Be consistent in your use of the www subdomain or enable subdomain-independant cookies in your forum app.

brijay

I am sorry but I do-not understand what you are trying to tell me ???

Joachim Müller

Although you said that your forum is located at http://www.bumpsandbundles.com.au/Forum/, you redirect your users to http://bumpsandbundles.com.au/Forum//login.php?redirect=../../babygallery/ (mind the missing www subdomain) when they click "login" on the coppermine page. The visitor logs in and is then redirected back to your gallery (http://www.bumpsandbundles.com.au/babygallery/ with the leading www subdomain). Authentification is done by using cookies - coppermine reads the cookie set by your forum. But: cookies are not domain-independant, and the subdomain http://www.example.com is a different domain than http://example.com
There is a load of postings on this sub-board where this has been explained already and what to do against it, e.g. http://forum.coppermine-gallery.net/index.php/topic,46745.msg222918.html#msg222918 or http://forum.coppermine-gallery.net/index.php/topic,44246.msg210434.html#msg210434

brijay

Believe me I have been on this board reading most of the day and am now just totally confused.. I have read the post you have pointed me too plus many others,  however I cannot put a .htaccess file in my webroot I will have to request my host do that on monday.

However I have changed my phpBB to have a www in front ....the rest of the redirect comes from coppermine does it not? Is it just the missing www at the start that is the problem - if so it now redirects with that. I also changed through myphpadmin files to read www at the start with them, shouldn't that rectify the problem.

my cookie domain in my phpBB is .bumpsandbundles.com.au that is correct isnt it?

Also I have read alot about session id's and authentication, although I think the forum is set to cookies I think it look as though it is using SID's - well the browser comes up with a sid when I am login in.



Nibbler

Cookie settings look ok. Make sure you selected the right bridge file (2.0.18 or better).

Joachim Müller

Hm, this is what I can see

Nibbler

That's fine. Coppermine's _data cookie is not involved in authentication and we don't have any config option to change domain for it anyway.

brijay

according to database the 'short name' (I am presuming this is the bridge file version)- is phpbb2018

Nibbler when this was first set up a couple of years ago you ended up having to go 'in' and alter some things to get it working correctly....not sure if this makes any difference and what it was you actually had to do but just thought I'd mention it in case it could be relevant at all.

thanks Leisa

Nibbler

I don't remember. If you PM me FTP/db details I can take a look.

Nibbler

Problem solved. There was an extra space at the end of your cookie prefix ('bumpsandbu_forum ').

brijay