forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: Adrienne on December 01, 2006, 05:19:04 pm

Title: Problem with the redirect, bridging cpg1.4.10 & pbpBB-2.0.21
Post by: Adrienne on December 01, 2006, 05:19:04 pm
Help please ...

I have the following issue when trying to bridge coppermine and pbpBB-2.0.21:

With the bridge enabled, I can login OK via the bb and am already logged-in at the gallery too (as expected)
BUT if  I hit logout at the gallery (or login when not already logged-in)  I get an incorrect redirect (too many '../'s)

logout gives me
http://www.kuroiwebdesign.com/clients/photocentric/forum/login.php?logout=true&sid=4459e633f51fffc55926bb108e8970fe&redirect=../../../clients/photocentric/gallery/


These are completely fresh installs with the latest downloads today
- users and data are there to only check the install and integration.




Coppermine install: http://www.kuroiwebdesign.com/clients/photocentric/gallery
Forum install: http://www.kuroiwebdesign.com/clients/photocentric/forum

Coppermine version: cpg1.4.10
Forum version: pbpBB-2.0.21
Test user account: Ade / test

BridgeManager settings:
Forum URL:      http://www.kuroiwebdesign.com/clients/photocentric/forum
Relative path to your BBS's config file:    ../forum/
Use post-based groups?:    0

Any help very much appreciated

Regards
Adrienne
Title: Re: Problem with the redirect, bridging cpg1.4.10 & pbpBB-2.0.21
Post by: Nibbler on December 01, 2006, 06:08:38 pm
I get

You don't have permission to access /clients/photocentric/forum/login.php on this server.

Probably mod_security.
Title: Re: Problem with the redirect, bridging cpg1.4.10 & pbpBB-2.0.21
Post by: Adrienne on December 01, 2006, 06:27:25 pm
yes sorry, I should have said, that's the error I'm getting

... it seems to be the redirect going too far back up the tree.

instead of just                   ../gallery                                  (as specified in the bridge info)
or the full path                   www.kuroiwebdesign.com/clients/photocentric/gallery
it's trying to get at             /clients/photocentric/gallery/       (which isn't a valid path)

I must've set something up wrong so that the redirect is screwed up
                                       redirect=../../../clients/photocentric/gallery/

I suspect it has something to do with the depth of my directory structure to get to the dirs for the gallery and forum.

... I'm trying to reproduce the problem on my local machine then I can search the pathnames in the php files.

Regards
Adrienne
Title: Re: Problem with the redirect, bridging cpg1.4.10 & pbpBB-2.0.21
Post by: Nibbler on December 01, 2006, 07:13:16 pm
That is the correct path, the issue is with mod_security blocking the request. Check with your host.
Title: Re: Problem with the redirect, bridging cpg1.4.10 & pbpBB-2.0.21
Post by: Joachim Müller on December 02, 2006, 06:51:09 am
When I click "login" on your coppermine page, I get sent to http://www.kuroiwebdesign.com/clients/photocentric/forum/login.php?redirect=../../../clients/photocentric/gallery/
This page displays a "403 forbidden error". Fix this first.
Title: Re: Problem with the redirect, bridging cpg1.4.10 & pbpBB-2.0.21
Post by: Adrienne on December 06, 2006, 01:29:38 am
yes, great, problem fixed

My host sorted out the mod_security, and it works fine now.

Thankyou for your speedy responses

Regards
Adrienne