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

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

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