"headers already sent" error messages on main page
frangipanigeisha
Joined: 2003-10-11
Posts: 20 |
Posted: Sat, 2004-01-17 17:34 |
my site has been running gallery fine for months but today i did a heap of tweaking, and everything was fine until i changed the display album tree value from no to yes in config.php. while i was there i also changed the default thumbnail. the page i sloading OK except for this ugly code sitting on top. any suggestions? Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/sparkles/public_html/gallery/config.php:45) in /home/sparkles/public_html/gallery/session.php on line 59 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/sparkles/public_html/gallery/config.php:45) in /home/sparkles/public_html/gallery/session.php on line 59 Warning: Cannot modify header information - headers already sent by (output started at /home/sparkles/public_html/gallery/config.php:45) in /home/sparkles/public_html/gallery/util.php on line 1937
---- |
|
Posts: 8194
Can you please post your config.php file?
Posts: 20
I have put everything back the way i found it but the page is still displaying the error message.
Posts: 20
i am still having no joy with this problem.
anyone out there have any suggestions?
Posts: 20
joy of linux? are you out there?
i just have no idea what is causing this. i haven't ever touched the session.php or util.php files, and hardly changed a thing in the config files. just 2 values.
please, anyone?
Posts: 13451
frangipanigeisha, most likely this is caused my manually editing the config.php and there are som extra linefeeds in it. You need to remove all of those, and make certain that there are no extra lines after the last ?> on the end of it.
Posts: 20
ok, thanks for the lead. i found it.
the error was not the space after the last ?> but the first one - line 59, i think. a line break after the gallery intro tech speil.
yay, thanks so much.