integration with phpbb2 board problem integration with phpbb2 board problem
 

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

integration with phpbb2 board problem

Started by webmistir, October 30, 2005, 09:41:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

webmistir

hi,
il tried to make the integration with my phpbb2 board, most things are ok. but the most problem is the login

when i tried to log in in my  coppermine-gallery i am transfered to the login page of the phpbb board. this is ok.
but when  type mu username, pass worn and i clic on ok iget this erreur page:

Warning: Cannot modify header information - headers already sent by (output started at /home/usmonast/public_html/Forum/cpg_redir.php:1) in /home/usmonast/public_html/Forum/cpg_redir.php on line 8

in the same time when i open a new internet explorer and i go to my  coppermine-gallery i found that i am logged in (great, so why i have the previous erreur)
and when il log out i have another errer page:

Warning: Cannot modify header information - headers already sent by (output started at /home/usmonast/public_html/Forum/cpg_redir.php:1) in /home/usmonast/public_html/Forum/cpg_redir.php on line 8

this is what is written in my cpg_redir.php:
<?php
if (!$_SERVER['HTTP_HOST']) {
  $cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  $cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/multimedia';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>

can you told me plz waht is the problem in line 8 ?? is the http? what shoud i put?

Joachim Müller

make sure you have no whitespace characters - check for spaces chars before line breaks or surplus linebreaks. For details, put your redir file into a zip archive and attach it to your posting.

Joachim

webmistir

Quote from: GauGau on October 30, 2005, 09:52:36 PM
make sure you have no whitespace characters - check for spaces chars before line breaks or surplus linebreaks. For details, put your redir file into a zip archive and attach it to your posting.

Joachim

thanks Joachim . here my .php document attached

Nibbler

Yes, you have such a character at the start of the file. Use a simple text editor when creating php files.

webmistir

Quote from: Nibbler on October 30, 2005, 11:50:19 PM
Yes, you have such a character at the start of the file. Use a simple text editor when creating php files.
thanks a lot ! Titooy in the french board helped to fix this probleme. now every thing is ok.