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: [Solved]: Warning: Cannot add header information - headers already sent  (Read 9109 times)

0 Members and 1 Guest are viewing this topic.

dRfruitLOOP

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34

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.
« Last Edit: June 17, 2004, 01:26:42 am by GauGau »
Logged

dRfruitLOOP

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34

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

dRfruitLOOP

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34

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
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Re: Warning: Cannot add header information - headers already sent
« Reply #3 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.
Logged
&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://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

dRfruitLOOP

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Re: Warning: Cannot add header information - headers already sent
« Reply #4 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.
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Re: Warning: Cannot add header information - headers already sent
« Reply #5 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.)
Logged
&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://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

dRfruitLOOP

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Re: Warning: Cannot add header information - headers already sent
« Reply #6 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...).
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Re: Warning: Cannot add header information - headers already sent
« Reply #7 on: June 11, 2004, 05:51:12 pm »

Yet you are able to upload images properly?
Logged
&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://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

dRfruitLOOP

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Re: Warning: Cannot add header information - headers already sent
« Reply #8 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.
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Re: Warning: Cannot add header information - headers already sent
« Reply #9 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:

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

to

Code: [Select]
$PHP_SELF = $_SERVER['PHP_SELF'];
Logged
&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://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Re: Warning: Cannot add header information - headers already sent
« Reply #10 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 
Logged
&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://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

dRfruitLOOP

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34

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

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Re: Warning: Cannot add header information - headers already sent
« Reply #12 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.
Logged
&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://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

dRfruitLOOP

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Re: Warning: Cannot add header information - headers already sent
« Reply #13 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
Logged
Pages: [1]   Go Up
 

Page created in 0.041 seconds with 15 queries.