[wp-hackers] Debugging a wp-plugin

David House dave at xmouse.ithium.net
Tue Nov 9 16:41:39 UTC 2004


Quoting Owen Winkler <ringmaster at midnightcircus.com>:

> Assuming that output buffering isn't enabled when you're posting, you
> could also try putting an echo at the beginning of the post.php, which
> would prevent the location header from being written.  I like this
> method because you don't have to track down the multiple redirects in
> that file, but moreover because it turns the tables on that old "headers
> already written" error, and makes it serve you instead of irritating you
> like it usually does.

Nice idea. My personal preference is to die() instead of echoing, so you don't
get the problems with header() redirection.

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




More information about the hackers mailing list