WordPress.org

Ready to get started?Download WordPress

Forums

Affiliate Hoover
[resolved] Error (8 posts)

  1. SnipShopSave
    Member
    Posted 1 year 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/

  2. AndyWalpole
    Member
    Plugin Author

    Posted 1 year 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?

  3. SnipShopSave
    Member
    Posted 1 year 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.

  4. AndyWalpole
    Member
    Plugin Author

    Posted 1 year 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?

  5. AndyWalpole
    Member
    Plugin Author

    Posted 1 year ago #

    actually scrub that instead of ob_flush() at the end use ob_end_flush() if that doesn't work try ob_end_clean();

  6. AndyWalpole
    Member
    Plugin Author

    Posted 1 year ago #

    in fact I'm almost certain this is the problem and I've put out a new version of the plugin

  7. SnipShopSave
    Member
    Posted 1 year 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!

  8. AndyWalpole
    Member
    Plugin Author

    Posted 1 year ago #

    Maybe I'll think about it

    Make sure you update to the latest versions because I left some stupid bugs in yesterdays release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.