Script URL:
Version of script: 1.34
Version of PHP: 4.3.4
Hosting company: v21
Have you searched THIS FORUM for your problem: YES
(if not please do before posting)
If so, what terms did you try:
Write your message below:
Hi All.
I'm trying to modify the look of the page the guestbook to fit in with a site I'm starting on. Any way when running on my testing server (A Mac OS X running Apache) the modified version runs ok. but on uploading to the ISP server I get a set of warnings about headers etc. (this also happens when trying to set a private message).
Other that that you can add and delete from the guest book. So are there any commands you can put at the begining of the page to suppress the error reports. Or any advice on what to change. Incidentlly I know naff all about php!!
The page is here to view:
http://cacus.v21hosting.co.uk/thepalmfi ... /gbook.php
Cheers Steve
Oh here is a list of the errors:
Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site1/fst/home/cacus/public_html/thepalmfiles/guestbook/gbook.php:1) in /home/virtual/site1/fst/home/cacus/public_html/thepalmfiles/guestbook/gbook.php on line 658
Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site1/fst/home/cacus/public_html/thepalmfiles/guestbook/gbook.php:1) in /home/virtual/site1/fst/home/cacus/public_html/thepalmfiles/guestbook/gbook.php on line 659
Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site1/fst/home/cacus/public_html/thepalmfiles/guestbook/gbook.php:1) in /home/virtual/site1/fst/home/cacus/public_html/thepalmfiles/guestbook/gbook.php on line 660
Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site1/fst/home/cacus/public_html/thepalmfiles/guestbook/gbook.php:1) in /home/virtual/site1/fst/home/cacus/public_html/thepalmfiles/guestbook/gbook.php on line 661
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/virtual/site1/fst/home/cacus/public_html/thepalmfiles/guestbook/gbook.php:1) in /home/virtual/site1/fst/home/cacus/public_html/thepalmfiles/guestbook/gbook.php on line 93
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/virtual/site1/fst/home/cacus/public_html/thepalmfiles/guestbook/gbook.php:1) in /home/virtual/site1/fst/home/cacus/public_html/thepalmfiles/guestbook/gbook.php on line 93
Warning: session_regenerate_id(): Cannot send session cookie - headers already sent by (output started at /home/virtual/site1/fst/home/cacus/public_html/thepalmfiles/guestbook/gbook.php:1) in /home/virtual/site1/fst/home/cacus/public_html/thepalmfiles/guestbook/gbook.php on line 99
WARNING: Cannot modify header
Hello Cacus,
I find it strange you don't get an error with the sign guestbook page.
Have you pasted any code directly in the gbook.php file?
Your code now looks a little like
I have removed a lot of the code and just kept the essentials.
Normally all the code before <!DOCTYPE should not be there. I think this is what also causes the error because you are trying to define the header of the file while code is present in the page before you are defining the header (which starts with <!DOCTYPE ).
Normally the way to personalise the guestbook is by adding code in the header.txt and footer.txt files provided with GBook. This way the code is inserted inside the body of the page generated by the gbook.php file and you will not receive the error you get now.
Greetings,
Henrie
I find it strange you don't get an error with the sign guestbook page.
Have you pasted any code directly in the gbook.php file?
Your code now looks a little like
Code: Select all
<script language="JavaScript" type="text/JavaScript"></script>
<body>
<table>
<!--DWLayoutDefaultTable-->
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/virtual/site1/fst/home/cacus/public_html/thepalmfiles/guestbook/gbook.php:1) in <b>/home/virtual/site1/fst/home/cacus/public_html/thepalmfiles/guestbook/gbook.php</b> on line <b>658</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/virtual/site1/fst/home/cacus/public_html/thepalmfiles/guestbook/gbook.php:1) in <b>/home/virtual/site1/fst/home/cacus/public_html/thepalmfiles/guestbook/gbook.php</b> on line <b>659</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/virtual/site1/fst/home/cacus/public_html/thepalmfiles/guestbook/gbook.php:1) in <b>/home/virtual/site1/fst/home/cacus/public_html/thepalmfiles/guestbook/gbook.php</b> on line <b>660</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/virtual/site1/fst/home/cacus/public_html/thepalmfiles/guestbook/gbook.php:1) in <b>/home/virtual/site1/fst/home/cacus/public_html/thepalmfiles/guestbook/gbook.php</b> on line <b>661</b><br />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></title>
<meta content="text/html; charset=windows-1250">
<link href="style.css" type="text/css" rel="stylesheet">
</head>
<body>
</body>
</html>
Normally all the code before <!DOCTYPE should not be there. I think this is what also causes the error because you are trying to define the header of the file while code is present in the page before you are defining the header (which starts with <!DOCTYPE ).
Normally the way to personalise the guestbook is by adding code in the header.txt and footer.txt files provided with GBook. This way the code is inserted inside the body of the page generated by the gbook.php file and you will not receive the error you get now.
Greetings,
Henrie
Henrie
Many thanks for the reply. Interestingly the code you show isn't in the file on my mac but is on the server verson (must have been inserted by the server). Any way initially I didn't use the header file as it didn't possition the guestbook in the exact place for some reason. Any how stripping out the code I placed in gbook.php after I got the possition I wanted seems to have worked.
Many thank for your help..... It's been driving me mad.
Steve
Many thanks for the reply. Interestingly the code you show isn't in the file on my mac but is on the server verson (must have been inserted by the server). Any way initially I didn't use the header file as it didn't possition the guestbook in the exact place for some reason. Any how stripping out the code I placed in gbook.php after I got the possition I wanted seems to have worked.
Many thank for your help..... It's been driving me mad.
Steve
You have placed your code directly into gbook.php file? If yes that has been causing the problems, do NOT edit gbook.php unless you understand how PHP and sending out HTTP headers works.
You should place all your surrounding code into header.txt and footer.txt files and use the original gbook.php file!
Regards
You should place all your surrounding code into header.txt and footer.txt files and use the original gbook.php file!
Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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