If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Warning after adding comment  XML
Forum Index » Advanced Guestbook Forum
Author Message
Niels
Student

Joined: 21/08/2005 17:06:50
Messages: 97
Offline

When somebody adds a comment, the following is displayed:

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/gastenboek/comment.php:1) in /var/www/html/gastenboek/lib/comment.class.php on line 178

However, the comment is added, but how to change this?
[MSN]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

You must have white space either before the <?php or after the closing ?> in either comment.php or lib/comment.class.php

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Niels
Student

Joined: 21/08/2005 17:06:50
Messages: 97
Offline

It has something to do with this:

header("Location: $GB_PG[index]");

I added a table above the header, maybe I've done that wrong...
[MSN]
Niels
Student

Joined: 21/08/2005 17:06:50
Messages: 97
Offline

Still this warning:

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/gastenboek/comment.php:1) in /var/www/html/gastenboek/lib/comment.class.php on line 178


How to solve?
[MSN]
 
Forum Index » Advanced Guestbook Forum
Go to:   
Based on the open source JForum