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: integration with phpbb2 board problem  (Read 5320 times)

0 Members and 1 Guest are viewing this topic.

webmistir

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
integration with phpbb2 board problem
« on: October 30, 2005, 09:41:52 pm »

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?
« Last Edit: October 31, 2005, 03:57:22 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: integration with phpbb2 board problem
« Reply #1 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
Logged

webmistir

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: integration with phpbb2 board problem
« Reply #2 on: October 30, 2005, 10:03:30 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
Logged

Nibbler

  • Guest
Re: integration with phpbb2 board problem
« Reply #3 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.
Logged

webmistir

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: integration with phpbb2 board problem
« Reply #4 on: October 31, 2005, 03:13:51 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 15 queries.