• randem06

    (@randem06)


    PHP Error: [8] ob_end_clean(): Failed to delete buffer. No buffer to delete
    Error on line: 738 in /home/xxxxxxxx/public_html/wp-admin/includes/plugin.php

    I get this message upon activation of my plugin. Shouldn’t the plugin.php check for the existence of a buffer before attempting to clear it?

        if ( ob_get_length() > 0 ) {
            $output = ob_get_clean();
            return new WP_Error( 'unexpected_output', __( 'The plugin generated unexpected output.' ), $output );
        }
    
        ob_end_clean();
    • This topic was modified 3 months ago by randem06.
Viewing 3 replies - 1 through 3 (of 3 total)
  • threadi

    (@threadi)

    The question is rather why your plugin causes this at all. What does the code of your plugin look like?

    Thread Starter randem06

    (@randem06)

    That is extremely vague… 52 programs and you ask what does it look like. That is not the question. If a buffer does not exist one should not try to delete it period… The issue is clearly in the plugin.php file where the buffer is attempting to be deleted without checking first…

    • This reply was modified 3 months ago by randem06.
    threadi

    (@threadi)

    If you see a bug in the core, you are welcome to open a ticket with the developers here: https://core.trac.www.ads-software.com/newticket

    However, they will also ask for a specific example to recreate it, like I did. You would have to provide this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.