WordPress.org

Ready to get started?Download WordPress

Forums

php_flag zlib.output_compression (4 posts)

  1. vdmerweh
    Member
    Posted 1 year ago #

    Hi There

    We are working for a high profile client that uses WordPress for their marketing side of their site. Magento is used for their main site.

    The client wants the sites the site to respond under 2seconds. For this php compression needs to be one, but the WordPress admin gives the following error.
    Notice: ob_end_flush(): failed to delete buffer zlib output compression in /chroot/home/bcsurfco/bcsurf.com/html/dev/blog/wp-includes/functions.php on line 2504

    I did see the forums about turning the compression off and I have done so for now, but there needs to be a reason why we are getting the error.

    Is it a bug in WordPress? Is it perhaps permission's that cause this error?

    We need to find a solution. With compression the Magento site response is 1.2 seconds faster. We cannot deprive our client of a better site ranking, just because of some error.

    Please help me understand what the solution would be to get the compression working.

    Regards
    Hannes

  2. Abhishek Ghosh
    Member
    Posted 1 year ago #

    The client wants the sites the site to respond under 2seconds. For this php compression needs to be one, but the WordPress admin gives the following error.

    WordPress runs fine and loads in sub 2.0 without zlib.

    Read our conversation : http://wordpress.org/support/topic/mysql-or-mysqli-is-best?replies=27

    I have shown there to load within 1.07 seconds :

    http://www.webpagetest.org/result/121008_GP_85X/1/details/

    The things has less to do with WordPress itself. It is fully related to server side tweaks.

    Is it a bug in WordPress? Is it perhaps permission's that cause this error?

    Something closer :

    http://core.trac.wordpress.org/ticket/18525

    You need to talk with BC Surf's server admin, it appears to be a colocated server with own IP. Plus it is an IIS Server not a LAMP server.

    We cannot deprive our client of a better site ranking, just because of some error.

    WordPress is released under GPL 2.0 ; vide point 11 written :

    BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  3. vdmerweh
    Member
    Posted 1 year ago #

    Hi Abhishek Ghosh

    Thanks for your answer.

    What would happen if I just comment out the ob_end_flush(); line?

    Will I be breaking something, or cause a malfunction anywhere?

    Regards
    Hannes

  4. Abhishek Ghosh
    Member
    Posted 1 year ago #

    You are welcome vdmerweh.

    Comenting out from php.ini will disable it. You can look at the manual and WPMUDev :

    http://php.net/manual/en/function.ob-end-flush.php

    http://premium.wpmudev.org/forums/topic/need-to-turn-off-zlib-compression-for-it-to-work

    Edit : Comment out using vi or nano or gedit from SSH CLI, do not open it with any Windows based editors, your server is IIS server. Windows based editors can add line break (if you have the GUI side access).

Topic Closed

This topic has been closed to new replies.

About this Topic