Warning: Cannot modify header...

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
Excavator
Posts: 3
Joined: Mon Jan 01, 2007 7:03 pm

Warning: Cannot modify header...

Post 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.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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!
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Excavator
Posts: 3
Joined: Mon Jan 01, 2007 7:03 pm

Post 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!
gentle
Posts: 3
Joined: Thu Nov 22, 2007 4:49 pm

iframe

Post 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
Schilldie
Posts: 1
Joined: Thu Jan 03, 2008 5:41 pm

Post 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 :)
Post Reply