coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: wowzer on January 15, 2005, 08:04:49 AM

Title: 1.3.2 integration with phpbb 2.0.11 headers already sent ???
Post by: wowzer on January 15, 2005, 08:04:49 AM
I have successfully set up phpbb v2.0.11 and had originally successfully set up CPG 1.3.2 and was attempting to integrate them.  Originally I modded the bridge and include files per tutorial and also added the cpg_redir.php file to my phpbb directory.  Long story short, the integration did not take (still had to log into both phpbb and CPG separately...).  I then wiped out the tables for CPG in my database and deleted the lock file, and reinstalled CPG 1.3.2 and am now getting message follows:

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/phpBB2/cpg_redir.php:9) in /var/www/html/phpBB2/cpg_redir.php on line 16

Here is my cpg syntax:

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



Please let me know what other info you may need to help troubleshoot.

Title: Re: 1.3.2 integration with phpbb 2.0.11 headers already sent ???
Post by: wowzer on January 15, 2005, 11:16:55 PM
sovled it by modding my redirect file, had html headers in there, should have only had php script per tutorial.
Title: Re: 1.3.2 integration with phpbb 2.0.11 headers already sent ???
Post by: TheDeJay on January 27, 2005, 08:51:29 AM
Can you show your code now that it works for the cpg_redir.php file... I'm having same problem and cannot find what you may have done...