Advanced search  

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]

Pages: [1]   Go Down

Author Topic: cpg-redir.php problem or other problem  (Read 3808 times)

0 Members and 1 Guest are viewing this topic.

DavidD

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
cpg-redir.php problem or other problem
« 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
« Last Edit: June 23, 2005, 11:39:42 pm by DavidD »
Logged

Nibbler

  • Guest
Re: cpg-redir.php problem
« Reply #1 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.
Logged

DavidD

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: cpg-redir.php problem
« Reply #2 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
Logged

DavidD

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: cpg-redir.php problem
« Reply #3 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
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: cpg-redir.php problem or other problem
« Reply #4 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.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: cpg-redir.php problem or other problem
« Reply #5 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
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 15 queries.