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: Cannot modify header information  XML
Forum Index » Advanced Guestbook Forum
Author Message
Niels
Student

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

Hello,

I get the following when a comment is made:

Warning: Cannot modify header information - headers already sent by (output started at /home/patrick/domains/patrickneumann.nl/public_html/gastenboek/comment.php:6) in /home/patrick/domains/patrickneumann.nl/public_html/gastenboek/lib/comment.class.php on line 219
[MSN]
TubinetDad
Beginner

Joined: 28/05/2007 23:19:39
Messages: 13
Location: TX, US
Offline

I hope to revive this thread because I am having the same problem when posting messages and have not seen the fix yet.

Only difference is that I am getting the error on line 181

(output started at /home/content/m/e/n/abcdef/html/aguestbook/lib/vars.class.php:1) in /home/content/m/e/n/abcdef/html/aguestbook/lib/comment.class.php on line 181

Carbonize, any suggestions?
[WWW]
Carbonize
Master
[Avatar]

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

Yeah pick on me why don't ya.

Check comment.class.php for anything after the closing ?>

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
TubinetDad
Beginner

Joined: 28/05/2007 23:19:39
Messages: 13
Location: TX, US
Offline

Got your attention, and I do appreciate the help.

There is nothing after the ?> at the end of the comment.class.php file, not even a carriage return or space

Thanks,
Bruce.
[WWW]
Carbonize
Master
[Avatar]

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

And line 181 is ?

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

Normally you get that error by having whitespace at the beginning of the file before the opening <? or <?php and having code before session_start() IIRC.

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
TubinetDad
Beginner

Joined: 28/05/2007 23:19:39
Messages: 13
Location: TX, US
Offline

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

It is in the middle of this sequence (I tried to keep the structure spacing, but that did not work):
function comment_action($action='') {
global $GB_PG;
if ($this->id && $this->is_valid_id() && $action==1) {
$status = $this->check_comment();
if ($status == 1) {
$this->insert_comment();
header("Location: $GB_PG[index]");
} else {
echo $status;
}
} elseif ($this->id && $this->is_valid_id()) {
echo $this->comment_form();
} else {
header("Location: $GB_PG[index]");
}
}


There is nothing before <?php, and nothing following it on the first line either.

I can not find "session_start() IIRC", is that in another file?

I appreciate the help you give here, this is a very useful forum.

Thanks,

Bruce.
[WWW]
Carbonize
Master
[Avatar]

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

Sorry was half asleep. The error is in vars.class.php. Either space before <?php or space after ?>

BTW delete the test post I just made.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
TubinetDad
Beginner

Joined: 28/05/2007 23:19:39
Messages: 13
Location: TX, US
Offline

Hey, I'll take half asleep to get us started.

Nothing before <?php on line 1 and nothing after ?> on line 170 in vars.class.php.

The var.class.php isone that you provided updates to address the issue of blocking posts with forbidden words rather than just marking them out. I will have to look for the post to find which one it is, but that part worked. You povided changes to vars, comment and add, all .class.php.

Thanks for helping,

Bruce.
[WWW]
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

Auron wrote:Normally you get that error by having whitespace at the beginning of the file before the opening <? or <?php and having code before session_start() IIRC.


IIRC = If I Remember Correctly.

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
TubinetDad
Beginner

Joined: 28/05/2007 23:19:39
Messages: 13
Location: TX, US
Offline

Thanks Auron. I was looking for something related to IIRC the Internet Relay Chat program. I was not surprised to not find it. I did not find anything related to "session_start" either.

I do appreciate the help.

thanks,

Bruce.
[WWW]
Carbonize
Master
[Avatar]

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

Em,ail me you vars.class.php file. webmaster @ carbonize . co . uk

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
TubinetDad
Beginner

Joined: 28/05/2007 23:19:39
Messages: 13
Location: TX, US
Offline

Just sent it to you.

Thanks again.
[WWW]
Carbonize
Master
[Avatar]

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

Nothing wrong with the vars.class.php you sent me. I'd suggest just replacing all your current files with the newer ones and see what heppens.

Except config.inc.php that is.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
TubinetDad
Beginner

Joined: 28/05/2007 23:19:39
Messages: 13
Location: TX, US
Offline

The load that I have was from the service provider, but I will take a swing at it. I will have to search the forum for your changes for the bad words, but that should not be a problem either.

Thanks again for the help.

Bruce.
[WWW]
 
Forum Index » Advanced Guestbook Forum
Go to:   
Based on the open source JForum