Page 1 of 1

Warning: Cannot modify header information

Posted: Sat Jul 09, 2005 4:14 am
by wolfdragon
Script URL: http://wolfdragon.net/guestbook/gbook.php
Version of script: 1.3.2
Version of PHP: 4.3.11
Hosting company: http://www.centaurinetx.com/
Have you searched THIS FORUM for your problem: Yes
(if not please do before posting)
If so, what terms did you try: Cannot modify header information

Write your message below:

When viewing my guestbook, I get this message at the top:

Code: Select all

Warning: Cannot modify header information - headers already sent by (output started at /home/wolfdrgn/public_html/guestbook/gbook.php:2) in /home/wolfdrgn/public_html/guestbook/gbook.php on line 611

Warning: Cannot modify header information - headers already sent by (output started at /home/wolfdrgn/public_html/guestbook/gbook.php:2) in /home/wolfdrgn/public_html/guestbook/gbook.php on line 612

Warning: Cannot modify header information - headers already sent by (output started at /home/wolfdrgn/public_html/guestbook/gbook.php:2) in /home/wolfdrgn/public_html/guestbook/gbook.php on line 613

Warning: Cannot modify header information - headers already sent by (output started at /home/wolfdrgn/public_html/guestbook/gbook.php:2) in /home/wolfdrgn/public_html/guestbook/gbook.php on line 614
I tested it out on my computer and it worked out fine.

BTW, awesome work, I really like the script.

Posted: Sat Jul 09, 2005 6:03 pm
by Klemen
Hello,

you probably have been editing gbook.php file? Make sure there is no space or empty lines before <?php in the file. Paste the top 5 lines of your gbook.php here if you can't get it to work.

Regards

Posted: Sat Jul 09, 2005 10:35 pm
by wolfdragon
Umm...yeah, I edited it a bit. I guess it's not the best idea for a n00b like me to mess with PHP. But what can I say...I like to customize.

There was a empty line at the top and after I deleted it, everything worked fine. Thanks for the help! :D

The same problem

Posted: Fri Sep 02, 2005 6:05 pm
by Guest
I have the same problem, and there is no any space before <?PHP
Can you help me

Posted: Mon Sep 05, 2005 2:50 pm
by Klemen
Have you tried with the ORIGINAL version (not edited)?