forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 bridging => Topic started by: petergariepy on July 25, 2017, 05:19:29 pm

Title: Bridging CPG 1.5.46 with SMF - not working
Post by: petergariepy on July 25, 2017, 05:19:29 pm
I'd start a new post on my subject, but I can seem to figure out how!  So i'm responding here with my similar problem:

SFM 2.0.13
    http://65gs.com/board

Coppermine (most current)  Fresh install as of a few days ago.
   http://65gs.com/photogallery

Generic Bridge Configuration

When Im in Coppermine and click login it takes me to:
http://65gs.com/board/index.php?action=login 

I login fine to SMF, and Im an admin there.

Confused by why, after login, i'm still in SMF, but ok.

Goto http://65gs.com/photogallery
Not logged in.

Endless circle.
Cant login to Coppermine at all now.

Now what?

Peter
Title: Re: Bridging CPG 1.5.46 with SMF - not working
Post by: phill104 on July 26, 2017, 11:44:51 pm
Please disable the bridge and then check your bridge settings. Post them here exactly as you input them, probably best with a screenshot. If you cannot disable the bridge please see the docs for instructions on recovering from a failed bridging.
Title: Re: Bridging CPG 1.5.46 with SMF - not working
Post by: petergariepy on July 31, 2017, 04:29:05 pm
See attached. After enabling and i login it takes me to the forum and i cant login to the gallery.  The bridge is currently disabled do to the problem:

FORUM:  www.65gs.com/board
GALLERY:  www.65gs.com/photogallery

Thanks for any help!

Peter

Title: Re: Bridging CPG 1.5.46 with SMF - not working
Post by: ron4mac on July 31, 2017, 05:07:32 pm
I think you may be running into domain name problems. A far as cookies are concerned, the domain name www.65gs.com is different than 65gs.com. A login cookie created at one domain may not be available at the other. Your login takes place at 65gs.com but the link to your gallery is to www.65gs.com/photogallery.
Title: Re: Bridging CPG 1.5.46 with SMF - not working
Post by: petergariepy on July 31, 2017, 05:24:49 pm
I think you may be running into domain name problems. A far as cookies are concerned, the domain name www.65gs.com is different than 65gs.com. A login cookie created at one domain may not be available at the other. Your login takes place at 65gs.com but the link to your gallery is to www.65gs.com/gallery.

Im confused.

BOTH are www.65gs.com



Title: Re: Bridging CPG 1.5.46 with SMF - not working
Post by: ron4mac on July 31, 2017, 05:44:16 pm
There is no www.65gs.com/gallery

Sorry ... I meant photogallery.

If you try to login at the board it goes to 65gs.com not www.65gs.com.

I think these days it's best to do without the www.
Title: Re: Bridging CPG 1.5.46 with SMF - not working
Post by: petergariepy on July 31, 2017, 08:28:26 pm
Ron,

So im unclear.
I get the whole www/no www thing...
but...
how do i setup my SMF/CM bridge to work related to all this?
Title: Re: Bridging CPG 1.5.46 with SMF - not working
Post by: ron4mac on July 31, 2017, 09:04:35 pm
You might try just going trough all the settings for both SMF and CPG and get rid of the www. in front of any url referring to either of them.
Title: Re: Bridging CPG 1.5.46 with SMF - not working
Post by: petergariepy on July 31, 2017, 10:17:55 pm
Neither are set to use www... see attached.

Title: Re: Bridging CPG 1.5.46 with SMF - not working
Post by: lurkalot on July 31, 2017, 10:29:30 pm
Neither are set to use www... see attached.

But your gallery link on the SMF nav bar points to http://www.65gs.com/photogallery and not http://65gs.com/photogallery
Title: Re: Bridging CPG 1.5.46 with SMF - not working
Post by: petergariepy on July 31, 2017, 10:44:09 pm
Agreed. I'll fix that. But that doesnt address the bridging problem.
Title: Re: Bridging CPG 1.5.46 with SMF - not working
Post by: lurkalot on July 31, 2017, 10:58:25 pm
Agreed. I'll fix that. But that doesnt address the bridging problem.

I notice in your gallery, the Home button and the Logo also point to http://www.65gs.com/photogallery/index.php and not http://65gs.com/photogallery/index.php

It should bridge ok, I'm running the same setup as you.

Also try in SMF Admin > Configuration > Server Settings > Cookies and Sessions Make sure the following are unticked

Enable local storage of cookies
Use subdomain independent cookies
Title: Re: Bridging CPG 1.5.46 with SMF - not working
Post by: petergariepy on July 31, 2017, 11:54:37 pm
Enable local storage of cookies
Use subdomain independent cookies

both OFF

Tried the bridge again.
Simple Machines (SMF) 2.x

Your bridge settings
Relative path to your bridge app's config file:   ../board/
Use bridge app custom groups?:   0
Enable integration/bridging with Simple Machines (SMF) 2.x
enable

Still no luck.
Title: Re: Bridging CPG 1.5.46 with SMF - not working
Post by: lurkalot on August 01, 2017, 12:30:27 am
After enabling the bridge I would try this.   

log out of forum,  close browsers and clear your browser cache. Then test it again to see if it's working.
Title: Re: Bridging CPG 1.5.46 with SMF - not working
Post by: ron4mac on August 02, 2017, 04:29:35 am
If you've resolved your problem, could you please let everyone know what the solution was?