cpg-redir.php problem or other problem cpg-redir.php problem or other problem
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

cpg-redir.php problem or other problem

Started by DavidD, June 23, 2005, 12:36:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DavidD

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

Nibbler

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.

DavidD

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

DavidD

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

kegobeer

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.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

DavidD

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