Jump to content

Recommended Posts

Posted

Thanks to all the great info, I've set up an advanced guestbook, www.skjb.com/guests

 

Then I edited the /public_html/guests/lang/english.php to cusomize the guestbook a little. It looks fine when using the guestbook, but when going into the administration of the guestbook, I get this error.

 

Warning: Cannot modify header information - headers already sent by (output started at /home/skjbcom/public_html/guests/lang/english.php:103) in /home/skjbcom/public_html/guests/lib/admin.class.php on line 33

 

Anyone have any guesses what I did? Thanks!

Posted

That error means that somewhere you made it so the administration page outputs text to the browser before sending header information.

 

An example in PHP:

 

><?php

echo "Output to browser.";

header("Location: /otherpage.php");

?>

 

What happens in that PHP code is that something is output to the browser and the user, then it tries to send header information: not allowed.

 

Go back into the file you edited and make sure there are no spaces or blank lines outside of the <?php ?> brackets. That is probably the culprit.

Posted

Cool beans. Looks like there were a couple of blank lines following the closing php tag. Backspaced those out, and all is golden again.

 

Thanks mucho! :goof:

 

The TCH family is the best! Thumbs Up

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...