coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: dRfruitLOOP on June 11, 2004, 07:31:10 AM

Title: [Solved]: Warning: Cannot add header information - headers already sent
Post by: dRfruitLOOP on June 11, 2004, 07:31:10 AM
I hate to keep bugging you guys with my issues but I seem to have done something wrong here. I followed the integration guide and afterwards I got these two lines appearing at the top...


Warning: Cannot add header information - headers already sent by (output started at /www.cebus-apella.com/gallery/include/init.inc.php:1) in /www.cebus-apella.com/gallery/themes/default/theme.php on line 810

Warning: Cannot add header information - headers already sent by (output started at /www.cebus-apella.com/gallery/include/init.inc.php:1) in /www.cebus-apella.com/gallery/include/functions.inc.php on line 56

It was working fine just prior to my integration attempt so I would guess I messed something up there.
Title: Re: I attempted to integrate with my copy of invisionboard and I came up with th
Post by: dRfruitLOOP on June 11, 2004, 07:39:55 AM
Also, when I go to apply modifications to the user groups, it sends me here http://www.cebus-apella.com/fcgi-bin/php, which doesn't exist.
Title: Re: I attempted to integrate with my copy of invisionboard and I came up with th
Post by: dRfruitLOOP on June 11, 2004, 07:42:23 AM
And I'm getting this when I attempt to log out...

Warning: Cannot add header information - headers already sent by (output started at /www.cebus-apella.com/gallery/include/init.inc.php:1) in /www.cebus-apella.com/gallery/bridge/invisionboard.inc.php on line 216
Title: Re: Warning: Cannot add header information - headers already sent
Post by: hyperion on June 11, 2004, 08:08:49 AM
It looks like you may have some whitespace before the <?php in the include/init.inc.php file. It probably was added when you edited the file to activate integration.  We'll tackle the usergroups issue after we knock this one out. Try removing it.  If you can't find it, upload the file as a text file to the board.
Title: Re: Warning: Cannot add header information - headers already sent
Post by: dRfruitLOOP on June 11, 2004, 05:12:34 PM
Found it, that did the trick, lines are gone now. Oh and I can now log out no problem too. So it's just the user groups bit now. Thanks very much.
Title: Re: Warning: Cannot add header information - headers already sent
Post by: hyperion on June 11, 2004, 05:24:55 PM
The usergroups problem probably has something to do with your non-standard global variables setup.  Please describe in detail when the error occurs. (i.e. a step-by-step until you are directed to the wrong page.)
Title: Re: Warning: Cannot add header information - headers already sent
Post by: dRfruitLOOP on June 11, 2004, 05:45:30 PM
Well, whenever I attempt to change any of the settings (it seems not just limited to usergroups now), I enter all the appropriate changes, and then hit the button that says "update" or "save configuration" I get send to this page http://www.cebus-apella.com/fcgi-bin/php. This happens on all the config pages (groups, config, albums, etc...).
Title: Re: Warning: Cannot add header information - headers already sent
Post by: hyperion on June 11, 2004, 05:51:12 PM
Yet you are able to upload images properly?
Title: Re: Warning: Cannot add header information - headers already sent
Post by: dRfruitLOOP on June 11, 2004, 06:01:15 PM
At the moment, no, because when it grabbed group info from IB it messed up the group permissions and now admins cant upload.
Title: Re: Warning: Cannot add header information - headers already sent
Post by: hyperion on June 11, 2004, 06:17:05 PM
But you could before?

If so, open the init.inc.php file, search for $PHP_SELF, and change that line from:


$PHP_SELF = isset($HTTP_SERVER_VARS['REDIRECT_URL']) ? $HTTP_SERVER_VARS['REDIRECT_URL'] : $HTTP_SERVER_VARS['SCRIPT_NAME'];


to


$PHP_SELF = $_SERVER['PHP_SELF'];
Title: Re: Warning: Cannot add header information - headers already sent
Post by: hyperion on June 11, 2004, 08:16:39 PM
Scratch that.  Please follow this thread, as there may be issues with the Invision bridge file.

http://forum.coppermine-gallery.net/index.php?topic=6809.0 
Title: Re: I attempted to integrate with my copy of invisionboard and I came up with th
Post by: dRfruitLOOP on June 15, 2004, 12:14:19 AM
Quote from: dRfruitLOOP on June 11, 2004, 07:39:55 AM
Also, when I go to apply modifications to the user groups, it sends me here http://www.cebus-apella.com/fcgi-bin/php, which doesn't exist.

Ok, so I watched the other thread and updated the bridge file. The only problem I am getting now is this same one from the post I quoted. I get that problem when I try to alter group permissions or update the config page, and also it seems to be happening now on the categories page. I have no problem when I add or delete an album.
Title: Re: Warning: Cannot add header information - headers already sent
Post by: hyperion on June 15, 2004, 12:30:09 AM
If you could upload at least once in the past using the upload link, try my suggestion about making $PHP_SELF = $_SERVER['PHP_SELF'];.  Let me know if that produces any change.
Title: Re: Warning: Cannot add header information - headers already sent
Post by: dRfruitLOOP on June 15, 2004, 01:31:48 AM
That did it. I can't thank you guys enough for this great program and all the help you have given me.  ;D