Site logo

[Resolved] Notice: ob_end_flush(): failed to send buffer of zlib output compression (0)

Home Forums Support [Resolved] Notice: ob_end_flush(): failed to send buffer of zlib output compression (0)

Home Forums Support Notice: ob_end_flush(): failed to send buffer of zlib output compression (0)

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #944189
    ruxandra

    Hello,
    After I updated the theme to its latest version today, I am having issues with various plugins, Elementor and Amelia.
    1) Every time I update an element like the popup, I get server error on my wordpress dashboard.
    as well as this notice on my site:
    Notice: ob_end_flush(): failed to send buffer of zlib output compression (0) in /home/digit601/smoothdivision.com/wp-includes/functions.php on line 4339
    I initially switched off the zlib output compression, but the issue didn’t get resolved.
    I deactivated all plugins, issue still present. How do I resolve this please?

    https://smoothdivision/info.php

    #944193
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    The theme (and GPP) don’t use ob_end_flush() anywhere, so it’s possible that code is in one of your plugins (or a custom function).

    What’s the server error you’re getting? When exactly is it happening? What kind of element are you updating? A GPP Element?

    #944197
    ruxandra

    Yes,
    I updated the GP theme today.
    I was making a popup in elementor. When I click on the update button, on the dashboard I get server error message.
    On the other hand, I deactivated ALL plugin and the issue persisted, the notice persisted.

    #944199
    Tom
    Lead Developer
    Lead Developer

    What’s the server error message? Have you checked with Elementor support yet?

    #944212
    ruxandra

    Oh, I’m sorry.It says “server error” on the WP dashboard.

    #944216
    Tom
    Lead Developer
    Lead Developer

    Can you show me a screenshot?

    You may want to report it to your hosting as well, as they’ll be able to take a look at your error logs.

    #944229
    ruxandra

    I would’ve, but I don’t see how i can upload one here..

    #944232
    Tom
    Lead Developer
    Lead Developer

    You can use a service like this: https://postimages.org/

    #944242
    ruxandra
    #944247
    Tom
    Lead Developer
    Lead Developer

    Have you reported it to Elementor yet? GP itself shouldn’t interfere with anything inside Elementor like this.

    #944278
    ruxandra

    I did. I just didn’t understand why [Notice: ob_end_flush(): failed to send buffer of zlib output compression (0)] issue would still show after plugins deactivation, so i assumed it must be GP.

    #944303
    Tom
    Lead Developer
    Lead Developer

    So that notice displays with all plugins turned off? What about GP Premium?

    Are you using a child theme? If so, are there any custom functions in it?

    #944324
    ruxandra

    The notice displayed with ALL plugins deactivated. I did not use a child theme. I just used elementor in top of GP.
    I get two warnings about wp-rocket, then it goes away.
    I don’t know, but it either has to be GP theme update or ELementor. But I don’t know why issues would persist if I deactivate all plugins.

    This is what I get when I deactivated everything the second time:
    Warning: include(/home/digit601/smoothdivision.com/wp-content/wp-rocket-config/smoothdivision.com.php): failed to open stream: No such file or directory in /home/digit601/smoothdivision.com/wp-content/plugins/wp-rocket/inc/classes/Buffer/class-config.php on line 124

    Warning: include(): Failed opening ‘/home/digit601/smoothdivision.com/wp-content/wp-rocket-config/smoothdivision.com.php’ for inclusion (include_path=’.:/opt/cpanel/ea-php72/root/usr/share/pear’) in /home/digit601/smoothdivision.com/wp-content/plugins/wp-rocket/inc/classes/Buffer/class-config.php on line 124
    Skip to content
    Then it goes away.
    I’m still waiting for the Elementor people to reply.
    Thanks for your help.

    #944667
    Tom
    Lead Developer
    Lead Developer

    I wonder if it’s an error in WP Rocket which is persisting even with the plugin deactivated. It seems like a fairly common WordPress error:
    https://wordpress.org/support/topic/error-ob_end_flush-failed-to-send-buffer-of-zlib-output-compression/
    https://wordpress.org/support/topic/plugin-problem-and-ob_end_flush-error/
    https://wordpress.org/support/topic/failed-to-send-buffer-or-zlib-output-compression/

    Does the error go away if you add this code to your site?:

    remove_action( 'shutdown', 'wp_ob_end_flush_all', 1 );

    Adding PHP: https://docs.generatepress.com/article/adding-php/

    #944718
    ruxandra

    YES! Finally. I thought I added this already..THANK YOU Tom!!

Viewing 15 posts - 1 through 15 (of 16 total)
  • You must be logged in to reply to this topic.