Title: Getting ob_end_flush(): error
Last modified: February 27, 2018

---

# Getting ob_end_flush(): error

 *  [romandiebox](https://wordpress.org/support/users/romandiebox/)
 * (@romandiebox)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/getting-ob_end_flush-error/)
 * Hello,
    I’ve been having issue with emails (not related to this topic) and I’ve
   enabled debug.log to check if something was wrong. I did not find the answer 
   to my issue but I saw that I keept getting the following error : `[27-Feb-2018
   20:43:28 UTC] PHP Notice: ob_end_flush(): failed to send buffer of zlib output
   compression (1) in /home/clients/16a9128d14b984098ef95c158f838e21/web/wp-includes/
   functions.php on line 3729`
 * After doing a little bit of research, I found that it might have to do with the
   memory_limit being too low.
    I’ve checked and my website is capped at 640M, which
   is more than enough. Can someone help me ?
 * Thanks !

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/getting-ob_end_flush-error/#post-10023852)
 * That does sound like a server issue, Have you spoken to your web hosts about 
   it?
 *  [stanwilliams](https://wordpress.org/support/users/stanwilliams/)
 * (@stanwilliams)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/getting-ob_end_flush-error/#post-10495743)
 * I realize this is late but perhaps it will help someone else If you have already
   resolved the problem.
 * I fixed that error by adding the following code in theme functions:
    ________________Copy
   and past the code below______________
 * remove_action( ‘shutdown’, ‘wp_ob_end_flush_all’, 1 );
 * ________________Copy and past the above code______________
 * You can use a plugin such as “My Custom Functions” plugin to do it safely.
    Enter
   this into the plugin settings while it is switched to off (Red) on the toggle
   switch you will see after you navigate to Plugins / installed plugins, and then
   click Settings on the “My Custom Functions” plugin.
 * Paste in the above code in the space provided there and then click Save. After
   you save it Then set it to ON (Green) and then click save again. Done.
    Better
   explanation of the plugin: On the “Main” tab, place your PHP code in the field,
   switch the toggle to the “ON” position and click the “Save changes” button.
 * In the off chance it crashes a website ( I have never had it to) but this is 
   the instructions to fix it:
 *  The plugin has a built-in functions for checking the custom code for syntax 
   errors, duplicate functions names, and etc. But plugin is not perfect, so there
   are times when the entered custom code causes the error and white screen (WSOD).
   This is due to the fact that your custom code has a syntax error that this plugin
   could not detect. When this happens with you, please perform the following steps.
 *  Access your server via FTP or SFTP. If you aren’t sure how usually your web 
   hosting provider will have instructions somewhere on their website.
    Browse to
   the directory wp-content/plugins/my-custom-functions/. Please contact your web
   hosting company to get help if you can’t find this folder. Rename the file START
   to STOP. This will stop the execution of your custom code. Log in to Admin Area
   of your WordPress website. Go to the plugin settings page Settings ➡ PHP Inserter.
   Edit/fix your custom code that you entered before the crash. Return to the plugin
   folder and rename the file STOP to START and you’re done!
    -  This reply was modified 7 years, 11 months ago by [stanwilliams](https://wordpress.org/support/users/stanwilliams/).
      Reason: Fix Typo
    -  This reply was modified 7 years, 11 months ago by [stanwilliams](https://wordpress.org/support/users/stanwilliams/).
      Reason: minor correction
    -  This reply was modified 7 years, 11 months ago by [stanwilliams](https://wordpress.org/support/users/stanwilliams/).

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

The topic ‘Getting ob_end_flush(): error’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [stanwilliams](https://wordpress.org/support/users/stanwilliams/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/getting-ob_end_flush-error/#post-10495743)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
