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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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