Admin only works from PC used to install CPG Admin only works from PC used to install CPG
 

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

Admin only works from PC used to install CPG

Started by KevinBeamer, November 21, 2006, 06:40:45 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

KevinBeamer

Not sure if this is a bridging problem or not...

In general, BBS is working properly.  No user complaints there...
CPG is showing pictures as expected (all uploaded via XP publish by me).  I'm still learning the product...

Registered users cannot login to the gallery

Our intent is for the public to view all photos & registered users upload photos

From my XP laptop:
Coppermine shows my BBS userID with a Logout link
I can access the Admin functions of CPG, but cannot logout (General Error   Invalid_session)
Once in CPG Admin, I can click on Users and see all the BBS members.
The XP publish function works properly
versioncheck.php works properly (all green except red pencil on bridge, docs, include, lang, plugins, sql, themes - and their respective sub folders)

From other XP computers:
The login page of CPG takes me into our Message Board
The XP publish wizard asks for username & password then has error about connecting to web
versioncheck.php says "you don't have permission" (login takes to me to BBS)

Coppermine install: http://www.clannnacara.com/gallery
Forum install: http://www.clannnacara.com/BB
Coppermine version: cpg1.4.9
Forum version: PHPBB (Bulletin Board)    v.2.0.21      
Test user account: PamBeamer cpg149

BridgeManager settings:
Forum URL:  http://www.clannnacara.com/BB
Relative path to your BBS's config file:  ../BB/ 
Use post-based groups?:  0 (no)
Cookie name/preifx: phpbb2mysql

In the CPG config, I noticed the cookie name is   cgp133 and the cookie path is /    (not sure if this is relevant or not)

KB

KevinBeamer

thinking this might be a session problem of some kind:

php cookie settings

cookie domain:   .clannnacara.com
cookie name:     clannnacar_forum
cookie domain:   /BB
cookie secure:    disabled
session length seconds    3600


KB

Joachim Müller

Quote from: KevinBeamer on November 21, 2006, 06:55:02 AM
cookie domain:   /BB
Set the cookie domain to "/" instead of "/BB".

Joachim

Sidenote: I suggest avoiding capitalization in folders/URLs like the plague. Not related to your issue though.

KevinBeamer

A new world record for a forum response !!!

Thanks for the quick help.

As the BBS is working perfectly, do you forsee this change as user affecting ?

Must they refresh their "cookies" to keep using the BBS and inherit the proper functionality of the galllery ?


KB

Joachim Müller

I'm not a phpBB expert, so I'm not sure wether this will have an impact, but you could set the forum cookie name to something else (you will have reflect this change in the bridge manager as well). This will subsequently make the cookies that are stored on your user's clients become invalid - they will be logged out and will have to log in with their username and password next time they visit your page even if they previously had the "remember me" option ticked. Actually, changing the cookie name is the same as if you deleted the cookie from all your user's hard drives. Being logged out on the next visit is a bit confusing for newbie users, but will definitely avoid issues with cookies. When changing cookie names, make sure to use valid cookie names (only alphanumeric, no special chars, especially no dots!). I suggest changing the cookie name from "phpbb2mysql" to "phpbb2mysql2" or similar.

KevinBeamer

In phpBB admin, I changed the cookie domain to / as you suggested, then deleted all cookies from my IE profile.

No change in the original problem.   Same difficulties with FireFox.

Would it help to disable the bridge in order to validate proper operation of CPG ?

KB




Nibbler

Cookie path must be /, not the domain. Make sure you set the domain to 'clannnacar_forum' in the bridge manager.

KevinBeamer

Sorry for my late night typing as I have misinformed you !  :o

in phpBB, the current cookie settings are as follows:

cookie domain:   .clannnacara.com
cookie name:     clannnacar_forum
cookie path:   /BB
cookie secure:    disabled
session length seconds    3600

KevinBeamer

Damn mouse buttons posted before I was done typing... :P   Please disregard my last post.

In phpBB, the current cookie settings are as follows:

cookie domain:   .clannnacara.com
cookie name:     clannnacar_forum
cookie path:     /
cookie secure:    disabled
session length seconds    3600

I will check the bridge manager settings now...

KevinBeamer

Thanks for the help !!!   It's a pleasure to have good support...

As I stated in my original post, I was able to access the Admin functions of CPG from a specific computer yesterday.

Since we changed the phpBB cookie path from /BB to / , I am unable to login to Coppermine.

So, I went to the Bridge Manager URL directly and disabled it.

Quote from: Nibbler on November 21, 2006, 12:49:04 PM
Make sure you set the domain to 'clannnacar_forum' in the bridge manager.

Then, I enabled bridging, went through the wizard, but do not see a field for "domain".  The choices (and current settings) are:

Application:    phpBB version 2.0.18 or better
Forum URL:     http://www.clannnacara.com/BB
relative path:  ../BB/
Cookie prefix:  phpbb2mysql
Post based groups: no

At this time, bridging is enabled and the login link from CPG takes me to our phpBB message board.

Could it be the "Cookie prefix" in the bridge wizard that should be set to 'clannnacar_forum'  ?


KB

Sami

QuoteAt this time, bridging is enabled and the login link from CPG takes me to our phpBB message board.
This is expected and normal , just put your login info to forums login form and hit the go it will redirect you to coppermine
‍I don't answer to PM with support question
Please post your issue to related board

Nibbler

Quote from: KevinBeamer on November 22, 2006, 01:58:18 AM
Could it be the "Cookie prefix" in the bridge wizard that should be set to 'clannnacar_forum'  ?

Yes.

KevinBeamer

Setting the "Cookie prefix" in the CPG bridge wizard to the same value as the phpBB "Cookie name" solved the integration problem.

Thanks for the help and keep up the good work !