Title: Plugin Problem and &#8220;ob_end_flush():&#8221; error
Last modified: July 16, 2018

---

# Plugin Problem and “ob_end_flush():” error

 *  Resolved [faelanduk](https://wordpress.org/support/users/faelanduk/)
 * (@faelanduk)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/plugin-problem-and-ob_end_flush-error/)
 * Hi,
 * Only 1 of 9 plugins is showing in the “all” plugins area (Askimet Anti-Spam (
   it’s de-activated).
    Only 1 of 6 plugins is showing in the “active” plugins section(
   Envato Market).
 * Below the plugins I’m getting the following error message:
    Fatal error: Using
   $this when not in object context in /home/faelandc/public_html/wp-content/plugins/
   wp-reset/wp-reset.php on line 439 Notice: ob_end_flush(): failed to send buffer
   of zlib output compression (1) in /home/faelandc/public_html/wp-includes/functions.
   php on line 3743 Notice: ob_end_flush(): failed to send buffer of zlib output
   compression (1) in /home/faelandc/public_html/wp-includes/functions.php on line
   3743
 * I also get this error at the bottom of each page when I preview it:
    “Notice:
   ob_end_flush(): failed to send buffer of zlib output compression (1) in /home/
   faelandc/public_html/wp-includes/functions.php on line 3743 Notice: ob_end_flush():
   failed to send buffer of zlib output compression (1) in /home/faelandc/public_html/
   wp-includes/functions.php on line 3743”
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-problem-and-ob_end_flush-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [Radu Constantin](https://wordpress.org/support/users/raduconstantin/)
 * (@raduconstantin)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/plugin-problem-and-ob_end_flush-error/#post-10497698)
 * Hey,
 * Have you tried to remove the WP Reset plugin and see if you still have this problem?
   You can try to remove it through FTP since you can see only one plugin in the
   dashboard area.
 *  Thread Starter [faelanduk](https://wordpress.org/support/users/faelanduk/)
 * (@faelanduk)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/plugin-problem-and-ob_end_flush-error/#post-10497765)
 * Hi Radu,
 * Thank you! That has solved the plugin error. They’re all showing now, and I’m
   not getting the “wp-reset error”.
 * I’m still getting the other error though:
    `Notice: ob_end_flush(): failed to
   send buffer of zlib output compression (1) in /home/faelandc/public_html/wp-includes/
   functions.php on line 3743 Notice: ob_end_flush(): failed to send buffer of zlib
   output compression (1) in /home/faelandc/public_html/wp-includes/functions.php
   on line 3743`
 * This is coming up on every page.
 * Any ideas on how to fix this?
 *  Moderator [Jose Castaneda](https://wordpress.org/support/users/jcastaneda/)
 * (@jcastaneda)
 * THEME COFFEE MONKEY
 * [7 years, 10 months ago](https://wordpress.org/support/topic/plugin-problem-and-ob_end_flush-error/#post-10499379)
 * I’m going to quote somebody else from another post:
 * > If you search for this error you will see it is a common WordPress error, which
   > pops up when you have zlib output compression enabled. Disable it and it should
   > be solved. For more info, do a search on the error, or see this thread:
   >  [https://stackoverflow.com/questions/38693992/notice-ob-end-flush-failed-to-send-buffer-of-zlib-output-compression-1-in](https://stackoverflow.com/questions/38693992/notice-ob-end-flush-failed-to-send-buffer-of-zlib-output-compression-1-in)
 * I also found: [https://core.trac.wordpress.org/ticket/22430#comment:4](https://core.trac.wordpress.org/ticket/22430#comment:4)
 * as well as: [https://core.trac.wordpress.org/ticket/18525](https://core.trac.wordpress.org/ticket/18525)
 *  Thread Starter [faelanduk](https://wordpress.org/support/users/faelanduk/)
 * (@faelanduk)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/plugin-problem-and-ob_end_flush-error/#post-10500787)
 * Hi Jose,
 * Thanks for your response.
 * To be honest I am not a developer and most of those threads are over my head.
   I couldn’t find a php.ini file, so created one in “public_html” with the code`
   zlib.output_compression = Off`.
 * This has solved the problem when I preview a page in WordPress, but not inside
   WordPress itself (it’s still showing the same error).
 * Any easy step by step directions for me to try? Thanks.
 *  [Radu Constantin](https://wordpress.org/support/users/raduconstantin/)
 * (@raduconstantin)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/plugin-problem-and-ob_end_flush-error/#post-10504769)
 * Hi,
 * Have you tried to add this line of code:
 *     ```
       remove_action('shutdown', 'wp_ob_end_flush_all', 1);
       ```
   
 * in the <b>functions.php</b> file of your theme? Also, you can use a plugin like
   [this one](https://wordpress.org/plugins/my-custom-functions/) in order to add
   the code I attached (instead of edititng the PHP file).
 *  Thread Starter [faelanduk](https://wordpress.org/support/users/faelanduk/)
 * (@faelanduk)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/plugin-problem-and-ob_end_flush-error/#post-10589419)
 * Thanks guys for all your help. I’ve been away so haven’t had chance to message
   back.
 * I asked my host to update my PHP version to 7+ which seemed to fix the error!
 *  [Marty](https://wordpress.org/support/users/bozzmedia/)
 * (@bozzmedia)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/plugin-problem-and-ob_end_flush-error/#post-10731107)
 * Stopping by to say switching to PHP7 alone didn’t change this debug error but
   the snip suggested by [@raduconstantin](https://wordpress.org/support/users/raduconstantin/)
   worked wonders.
 * `remove_action('shutdown', 'wp_ob_end_flush_all', 1);`
 * Cheers
 *  [Deepak Lakhara](https://wordpress.org/support/users/lakharadk/)
 * (@lakharadk)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/plugin-problem-and-ob_end_flush-error/#post-10737270)
 * Its worked for be by just updating PHP Version to 7+ and set define(‘WP_MEMORY_LIMIT’,’
   1024M’) in config.php.
 *  [rbester](https://wordpress.org/support/users/rbester/)
 * (@rbester)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/plugin-problem-and-ob_end_flush-error/#post-10810298)
 * Thanks all! I had 2 of these warning messages. First one solved by updating PHP
   Version to 7+. Second one solved by updating PHP.ini (most shared hosting let’s
   you do that) – memory_limit = 512M.
 * Something to keep in mind, if you turn off debugging mode in your wp-config.php
   you won’t see these warnings.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Plugin Problem and “ob_end_flush():” error’ is closed to new replies.

## Tags

 * [ob_end_flush](https://wordpress.org/support/topic-tag/ob_end_flush/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 6 participants
 * Last reply from: [rbester](https://wordpress.org/support/users/rbester/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/plugin-problem-and-ob_end_flush-error/#post-10810298)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
