Error when logging in and out after integrating Error when logging in and out after integrating
 

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

Error when logging in and out after integrating

Started by nickelsto, November 07, 2004, 11:12:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nickelsto

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?

kegobeer

Plenty of ideas.

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

Not this:
header(Location: http://".$cpg_host.$cpg_path);
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

Tranz

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.

nickelsto

Thanks to both of you, that did it.  By the way, how do you put a "solved" on the thread?

kegobeer

Edit your first post, and select solved in the message icon combo box.
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

Tranz


Joachim Müller

"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