Page 1 of 1

Warning: Cannot modify header...

Posted: Wed Dec 19, 2007 10:51 am
by Excavator
Script URL:http://nopeople.com/noelshairsalon.com/ ... uests.html
Version of script:1.5
What terms did you try when SEARCHING for a solution:
Cannot modify header
header information
Warning: Cannot
output started
...

Write your message below:
I had this working on the server it was originally on. I've moved it to a different server and, when I changed the paths in settings.php, it quit working. Turns out you can't specify the full path to gbook.phpfor some reason.
So, Now it displays right and you can sign the guestbook.

I don't know where the error is coming from. I've search this forum quite a bit. The most common bit of advice is "don't edit gbook.php!" So I downloaded a brand new copy of it and upped that to the server, just in case. Still get the error message.

Warning: Cannot modify header information - headers already sent by (output started at /home/nopeopl/public_html/noelshairsalon.com/scgi-bin/guests.html:6) in /home/nopeopl/public_html/noelshairsalon.com/scgi-bin/gbook.php on line 957

Warning: Cannot modify header information - headers already sent by (output started at /home/nopeopl/public_html/noelshairsalon.com/scgi-bin/guests.html:6) in /home/nopeopl/public_html/noelshairsalon.com/scgi-bin/gbook.php on line 958

Warning: Cannot modify header information - headers already sent by (output started at /home/nopeopl/public_html/noelshairsalon.com/scgi-bin/guests.html:6) in /home/nopeopl/public_html/noelshairsalon.com/scgi-bin/gbook.php on line 959

Warning: Cannot modify header information - headers already sent by (output started at /home/nopeopl/public_html/noelshairsalon.com/scgi-bin/guests.html:6) in /home/nopeopl/public_html/noelshairsalon.com/scgi-bin/gbook.php on line 960
-----------------
One other problem, there is supposed to be a footer below the guestbook. Like on all the other pages. It's there in the markup but the browser is not displaying that for some reason.

Posted: Wed Dec 19, 2007 12:52 pm
by Klemen
Works fine here:
http://nopeople.com/noelshairsalon.com/ ... /gbook.php

The "DON'T EDIT" advice goes to everyone who doesn't understand how PHP and http headers work, because editing is the reason why it gives that error in the first place.

It's same in your case, you are trying to call gbook.php code from a HTML file and of course that doesn't work because session (cookie) headers can't be successfully output to the browser. My suggestion is the same as always - use the original gbook.php URL and use header/footer.txt file to edit the look to fit to your website!

Posted: Wed Dec 19, 2007 7:53 pm
by Excavator
Thank you Klemen,
It's working perfectly now.

That was the next thing I was going to try. I worked on it for too long the way it was, but it had worked as a php include perfectly on the other server.

This is better. And MUCH better than moving the gbook.php code into my html markup - I saw one member in this forum did that. It's working for him but I know I didn't want to do that!

Thanks again!

iframe

Posted: Tue Jan 01, 2008 1:15 pm
by gentle
Hi all,

I'm working on a website for a friend of mine and I load the gbook.php file in an iframe (old fashion... I know, but still works fine to me). Customizing a bit here and there and voila... looks pretty neat!!!

Temporary link: http://www.multiarea.nl/quintin/pages/index.htm

Click on the 'contact' link on the main page to go to the guestbook.

Gentle Greetz,
Ralph

Posted: Thu Jan 03, 2008 6:03 pm
by Schilldie
Hi,
I'm working on a website for a friend of mine and I load the gbook.php file in an iframe (old fashion... I know, but still works fine to me). Customizing a bit here and there and voila... looks pretty neat!!!
Looks good!

I am doing the same thing, using iframes for some reason though ist ignores my Stylesheet modifikations! How did you do that?

Got it, :)
For some reason my css was'nt reloding :)