I'm developing a plugin which makes use of the wp_redirect function. You can see the relevant code here:
However, when I try to run that code I get this error.
Cannot modify header information - headers already sent by (output started at /path/to.site/wp-includes/query.php:390) in /path/to/site/wp-content/plugins/post_shock/postshock_core.php on line 53
Now, I checked query.php and nothing on line 390 seems to be creating any whitespace or sending any header info at all, so I suspect the problem might be deeper. Any ideas or thoughts would be appreciated!