Advanced search  

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

Pages: [1]   Go Down

Author Topic: Admin only works from PC used to install CPG  (Read 5277 times)

0 Members and 1 Guest are viewing this topic.

KevinBeamer

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Admin only works from PC used to install CPG
« on: November 21, 2006, 06:40:45 am »

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
« Last Edit: November 24, 2006, 04:28:24 pm by GauGau »
Logged

KevinBeamer

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Admin only works from PC used to install CPG
« Reply #1 on: November 21, 2006, 06:55:02 am »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Admin only works from PC used to install CPG
« Reply #2 on: November 21, 2006, 06:58:56 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.
Logged

KevinBeamer

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Admin only works from PC used to install CPG
« Reply #3 on: November 21, 2006, 07:04:10 am »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Admin only works from PC used to install CPG
« Reply #4 on: November 21, 2006, 07:13:25 am »

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.
Logged

KevinBeamer

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Admin only works from PC used to install CPG
« Reply #5 on: November 21, 2006, 07:54:07 am »

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



Logged

Nibbler

  • Guest
Re: Admin only works from PC used to install CPG
« Reply #6 on: November 21, 2006, 12:49:04 pm »

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

KevinBeamer

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Admin only works from PC used to install CPG
« Reply #7 on: November 22, 2006, 01:24:23 am »

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
Logged

KevinBeamer

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Admin only works from PC used to install CPG
« Reply #8 on: November 22, 2006, 01:28:38 am »

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...
Logged

KevinBeamer

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Admin only works from PC used to install CPG
« Reply #9 on: November 22, 2006, 01:58:18 am »

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.

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
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Admin only works from PC used to install CPG
« Reply #10 on: November 22, 2006, 06:02:40 am »

Quote
At 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
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Nibbler

  • Guest
Re: Admin only works from PC used to install CPG
« Reply #11 on: November 22, 2006, 12:23:39 pm »

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

Yes.
Logged

KevinBeamer

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Admin only works from PC used to install CPG
« Reply #12 on: November 24, 2006, 04:05:59 pm »

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 !
Logged
Pages: [1]   Go Up
 

Page created in 0.03 seconds with 19 queries.