coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: DavidD on June 23, 2005, 12:36:38 AM

Title: cpg-redir.php problem or other problem
Post by: DavidD on June 23, 2005, 12:36:38 AM
I have run into an error intergrating a phpbb forum with cpg133.  I think that the problem is the result of an error that I have made on the cpg-redir.php page.  Here is what I have:

<p>&lt;?php<br>
if (!$_SERVER['HTTP_HOST']) {<br>
&nbsp; $cpg_host=$HTTP_SERVER_VARS['www.midwestgardener.com/cpg133'];<br>
} else {<br>
&nbsp; $cpg_host=$_SERVER['www.midwestgardener.com/cpg133'];<br>
}<br>
$cpg_path='www.midwestgardener.com/cpg133';<br>
header(&quot;Location: http://&quot;.$cpg_host.$cpg_path);<br>
exit;<br>
?&gt;</p>


My guess is that I have the paths wrong.  Any advice?

Thanks,
David
Title: Re: cpg-redir.php problem
Post by: Nibbler on June 23, 2005, 07:46:06 PM
Put it back as it was, the only thing you edit in that file is the value of $cpg_path which you set to the path to your board.
Title: Re: cpg-redir.php problem
Post by: DavidD on June 23, 2005, 11:21:06 PM
Actually, I did re-set before I saw your replay.  Thanks.  Unfortunately, I still get this error message:  "Fatal error :There was an error while processing a database query."

I have gone through the instructions twice and I am not sure where I made a mistake(s).  Any suggestions on where to look?

Thanks,
David
Title: Re: cpg-redir.php problem
Post by: DavidD on June 23, 2005, 11:37:05 PM
Hmmmm.  I want to add Coppermine to a second site as well.  I installed Coppermine and made sure that it was working.  I then went through the bridge changes and had the same error message as on the first site.  I was very careful.  Obviously, I have made the same mistake(s) again, I am just not sure what they are.

Perplexed,
David
Title: Re: cpg-redir.php problem or other problem
Post by: kegobeer on June 24, 2005, 12:15:48 AM
Enable debug mode and post the sql error message.  I'm guessing your forum and gallery aren't in the same database, which is a requirement for bridging.
Title: Re: cpg-redir.php problem or other problem
Post by: DavidD on June 24, 2005, 04:15:25 AM
Ummm.  Now I am feeling a tad dumb. They are on the same database.  And, I am not sure how to enable debug.  Time to go back to Documentation section.

David