[Solved]: Warning: Cannot add header information - headers already sent [Solved]: Warning: Cannot add header information - headers already sent
 

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

[Solved]: Warning: Cannot add header information - headers already sent

Started by dRfruitLOOP, June 11, 2004, 07:31:10 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

dRfruitLOOP

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.

dRfruitLOOP

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.

dRfruitLOOP

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

hyperion

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.
&quot;Then, Fletch,&quot; that bright creature said to him, and the voice was very kind, &quot;let&#039;s begin with level flight . . . .&quot;

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

dRfruitLOOP

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.

hyperion

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.)
&quot;Then, Fletch,&quot; that bright creature said to him, and the voice was very kind, &quot;let&#039;s begin with level flight . . . .&quot;

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

dRfruitLOOP

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...).

hyperion

&quot;Then, Fletch,&quot; that bright creature said to him, and the voice was very kind, &quot;let&#039;s begin with level flight . . . .&quot;

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

dRfruitLOOP

At the moment, no, because when it grabbed group info from IB it messed up the group permissions and now admins cant upload.

hyperion

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'];
&quot;Then, Fletch,&quot; that bright creature said to him, and the voice was very kind, &quot;let&#039;s begin with level flight . . . .&quot;

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

hyperion

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 
&quot;Then, Fletch,&quot; that bright creature said to him, and the voice was very kind, &quot;let&#039;s begin with level flight . . . .&quot;

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

dRfruitLOOP

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.

hyperion

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.
&quot;Then, Fletch,&quot; that bright creature said to him, and the voice was very kind, &quot;let&#039;s begin with level flight . . . .&quot;

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

dRfruitLOOP

That did it. I can't thank you guys enough for this great program and all the help you have given me.  ;D