coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: nickelsto on November 07, 2004, 11:12:40 PM

Title: Error when logging in and out after integrating
Post by: nickelsto on November 07, 2004, 11:12:40 PM
I intalled the gallery, and it worked fine as stand alone.  The forum worked fine as stand alone, but then after integrating them,  when I log in and out as admin I get this error:

Parse error: parse error, unexpected ':' in /home/.fajadryer/renaissa/renaissanceguitars.com/forum/cpg_redir.php on line 8

This is the board:             http://renaissanceguitars.com/forum/
and this is the gallery:       http://renaissanceguitars.com/Gallery/

<?php
if (!$_SERVER['HTTP_HOST']) {
  
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/Gallery';
header(Locationhttp://".$cpg_host.$cpg_path);
exit;
?>


Any ideas?
Title: Re: Error when logging in and out after integrating
Post by: kegobeer on November 07, 2004, 11:16:09 PM
Plenty of ideas.

This:
header("Location: http://".$cpg_host.$cpg_path);

Not this:
header(Location: http://".$cpg_host.$cpg_path);
Title: Re: Error when logging in and out after integrating
Post by: Tranz on November 07, 2004, 11:19:29 PM
in PHP, the // is interpreted as a comment. Notice how the text is color-coded as orange=comment. So the script doesn't see anything that is orange and then comes across the exit; line which makes it confused because the previous line had a ; but it was commented out so it was like it didn't exist. There is also an unpaired double quotation mark. That's why color-coded code makes it easy to spot problems.
Title: Re: Error when logging in and out after integrating
Post by: nickelsto on November 08, 2004, 05:43:41 AM
Thanks to both of you, that did it.  By the way, how do you put a "solved" on the thread?
Title: Re: Error when logging in and out after integrating
Post by: kegobeer on November 08, 2004, 05:45:14 AM
Edit your first post, and select solved in the message icon combo box.
Title: Re: Error when logging in and out after integrating
Post by: Tranz on November 08, 2004, 07:39:28 AM
I edited the post.
Title: Re: Error when logging in and out after integrating
Post by: Joachim Müller on November 08, 2004, 07:49:11 AM
"regular" users don't have the dropdown field to tag a thread as solved, only moderators have this power (a little hack I have come up with). If you want to flag as "solved", edit your first post and put [Solved] in front of the subject, will work as well.

Joachim