coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: paulers on November 28, 2005, 12:28:27 AM

Title: bridge problem with phpbb and CPG
Post by: paulers on November 28, 2005, 12:28:27 AM
I have the following issue when trying to bridge coppermine and phpBB 2.0.18:

I have links on each of my sites to help the user navigate between the main website, forums, and coppermine.

main website = http://devinememories.net

When the user goes from main website -> CPG -> main website -> CPG  etc.. everything works fine.
When the user goes from main website ->forums -> main web site -> CPG , I get a blank Fatal Error message.

The only way to get it to work again is to clear cookies and cache after recieving fatal error.

Coppermine install: http://devinememories.net/pics/
Forum install: http://devinememories.net/forums/
Coppermine version: cpg1.4.2
Forum version: phpBB 2.0.18
Test user account: test/test

BridgeManager settings:

Forum URL:  http://devinememories.net/forums 
Relative path to your BBS's config file:  ../forums/ 
Use post-based groups?:  0 
Cookie prefix:  phpbb2mysql 
Title: Re: bridge problem with phpbb and CPG
Post by: Nibbler on November 28, 2005, 12:37:00 AM
Works ok for me, grab the latest version of the bridge file from here (http://forum.coppermine-gallery.net/index.php?topic=24166.msg111062#msg111062) and see if that helps.
Title: Re: bridge problem with phpbb and CPG
Post by: paulers on November 28, 2005, 12:41:34 AM
just curious, you went from the main website to the forums, then back to the main website and then tried to access CPG?

Title: Re: bridge problem with phpbb and CPG
Post by: paulers on November 28, 2005, 12:49:57 AM
I updated the bridge and still does the same thing.

go to http://devinememories.net and click the link "Devine Memories Forums "
then click on the link titled "Devine Memories Website"
then when back at the main site, click the link titled "Devine Memories Photo Gallery"

note: I did all of this without logging into the forums or CPG.

Title: Re: bridge problem with phpbb and CPG
Post by: paulers on November 28, 2005, 12:54:42 AM
another weird thing I would like to add:

if I go from main website -> forums -> main website -> photo gallery I get fatal error.

however, if I go from main website -> forums, log in to forums -> main website -> CPG all works fine.

Title: Re: bridge problem with phpbb and CPG
Post by: atomar77 on November 28, 2005, 01:01:59 AM
I get the same error. After I clear all the cookies it works fine.
Haven't spent too much time trying to narrow it down tho.
Title: Re: bridge problem with phpbb and CPG
Post by: Nibbler on November 28, 2005, 01:06:06 AM
OK, I get the error now. Can you look in the bridge file, find

$result = cpg_db_query($sql, $UDB_DB_LINK_ID);

change it to

$result = cpg_db_query($sql, $this->link_id);

And see if that fixes the problem.
Title: Re: bridge problem with phpbb and CPG
Post by: paulers on November 28, 2005, 01:11:42 AM
Wonderful!!! It works great now! Thanks a bunch!