SnipShopSave
Member
Posted 11 months ago #
Warning: Cannot modify header information - headers already sent by (output started at /home/content/37/9009037/html/wordpress/wp-content/plugins/affiliate-hoover/home.php:77) in /home/content/37/9009037/html/wordpress/wp-includes/pluggable.php on line 881
Checked code and other issues, such as beginning with <?php and end with <? as I have seen before, but this does not fix. Only happens with Affiliate Hoover activated. When I try to edit a post to add seo or title information or even post.
Love the program, please help!
http://wordpress.org/extend/plugins/affiliate-hoover/
AndyWalpole
Member
Plugin Author
Posted 11 months ago #
hmm, that's interesting.
At the bottom of the home.php is the following PHP function:
ob_flush();
Underneath that is a closing PHP bracket. Completely remove the closing bracket and make sure that there is no space underneath the ob_flush()
Now try that.
When does this error occur? What version of WordPress are you using?
SnipShopSave
Member
Posted 11 months ago #
Anytime it tries to update any post, rather Affiliate Hoover created or not. I removed the closing tag and left no space and still get: Warning: Cannot modify header information - headers already sent by (output started at /home/content/37/9009037/html/wordpress/wp-content/plugins/affiliate-hoover/home.php:77) in /home/content/37/9009037/html/wordpress/wp-includes/pluggable.php on line 881
I can deactivate the plugin after creating the posts and it will let me edit them, so that has been my workaround.
AndyWalpole
Member
Plugin Author
Posted 11 months ago #
What about if you complete take out ob_start(); from the top of the home.php and ob_flush(); from the bottom?
(I can't replicate this error because it is not doing that on my server)
So it is causing this error after you create posts and when you go to edit it in the usual admin edit posts area?
AndyWalpole
Member
Plugin Author
Posted 11 months ago #
actually scrub that instead of ob_flush() at the end use ob_end_flush() if that doesn't work try ob_end_clean();
AndyWalpole
Member
Plugin Author
Posted 11 months ago #
in fact I'm almost certain this is the problem and I've put out a new version of the plugin
SnipShopSave
Member
Posted 11 months ago #
Awesome! Working perfect! Thanks so much! Any possibility of adding in a drip feed so they could all post in a range of time? For example, 1 post from 3 different feeds every hour or something? I hate to bombard folks with posts. Thanks!
AndyWalpole
Member
Plugin Author
Posted 11 months ago #
Maybe I'll think about it
Make sure you update to the latest versions because I left some stupid bugs in yesterdays release.