Wordpress cannot modify header information

November 30th, 2006 at 3:38 pm (wordpress)

If you get an error that looks like this:

Warning: Cannot modify header information - headers already sent by (output started at /home/.hostname/username/domain.com/wp-content/plugins/myplugin/myplugin.php:345) in /home/.hostname/username/domain.com/wp-includes/pluggable-functions.php on line 272

I feel your pain. It’s one of the more cryptic error messages I’ve run into. You need to trim the whitespace from the end of your php file. In this example, the file myplugin.php has 345 lines. Delete everything after the closing ?$gt;.

Javascript Form Highlighting Script — add onBlur and onFocus input styles!

November 26th, 2006 at 1:05 am (web programming, javascript, examples)

1 Comment

Why the Lucky Stiff

November 25th, 2006 at 10:00 pm (fun stuff)

Quick Rails!

November 22nd, 2006 at 3:30 pm (web programming, ruby, rails, tutorials)

Ruby on Rails :: Welcome to the Twenty-First Century. You will like it here.

November 16th, 2006 at 1:10 am (programming, web programming, ruby, rails, tutorials, reviews)

Why your PC is now obsolete: the new Intel Core 2 Duo

November 9th, 2006 at 2:58 am (hardware, reviews)

Close
E-mail It