• Resolved dethknite

    (@dethknite)


    Running into error (perhaps because minification).

    PHP message: PHP Notice: ob_end_flush(): Failed to delete and flush buffer. No buffer to delete or flush in /root/site/wp-content/plugins/meta-generator-and-version-info-remover/meta_generator_and_version_info_remover.php on line 362

    The fix for this is to replace the 3 instances in code of:
    ob_end_flush();

    With:

    if(ob_get_length() > 0) {
        ob_end_flush();
    }
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Pankaj Mondal

    (@gurudeb)

    Hi,

    Thanks for informing. I have added the changes in version 14.0.2 of the plugin. Please update the plugin. If you like the plugin please rate and review it.

    Thanks & Regards,
    Pankaj

    Thread Starter dethknite

    (@dethknite)

    Thanks. That was fast ??

    @gurudeb Please note that your last update (v14.0.2), is causing an issue with caching.
    After I activate your plugin and visit the homepage of the website, the admin bar doesn’t appear (it’s like I’m logged out).
    To fix it, I have to hit SHIFT+F5, which deletes the browser cache.

    This didn’t happen before.

    Plugin Author Pankaj Mondal

    (@gurudeb)

    Hi @tanohex,

    In last update only a null check was added. Is this issue occurring for only 1 time or is it happening for each activation/deactivation? Could you please open your website in incognito browser mode as well?

    Thanks & Regards,
    Pankaj

    @gurudeb Yeah, basically when the plugin is disabled, after I log in, I can see the admin toolbar in the frontend.

    When I enable the plugin and log in, to see the admin toolbar, I have to first refresh the page.
    (both tests done in an incognito window)

    I don’t remember this to be happening before.
    It’s like the plugin now needs to first do a cache flush, by refreshing the page.

    PS: On this setup, I’m also using the Divi Theme, with its caching system enabled.

    Exact way to reproduce the issue on my setup:
    – Install your plugin and logout
    – Delete the entire browser cache, cookies etc.
    – Visit the website
    – Access wp-admin and login
    – Visit the main page
    => Result: the admin bar doesn’t appear. Refresh the page, still no bar.
    => Shift+Refresh, the admin bar appears.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fix for “Failed to delete and flush buffer”’ is closed to new replies.