Title: Error upon activations
Last modified: July 20, 2024

---

# Error upon activations

 *  [Randem Systems](https://wordpress.org/support/users/randem06/)
 * (@randem06)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-upon-activations/)
 *     ```wp-block-code
       PHP Error: [8] ob_end_clean(): Failed to delete buffer. No buffer to deleteError 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?
 *     ```wp-block-code
           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 1 year, 10 months ago by [Randem Systems](https://wordpress.org/support/users/randem06/).

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

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-upon-activations/#post-17902504)
 * The question is rather why your plugin causes this at all. What does the code
   of your plugin look like?
 *  Thread Starter [Randem Systems](https://wordpress.org/support/users/randem06/)
 * (@randem06)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-upon-activations/#post-17902999)
 * 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 1 year, 10 months ago by [Randem Systems](https://wordpress.org/support/users/randem06/).
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-upon-activations/#post-17903006)
 * If you see a bug in the core, you are welcome to open a ticket with the developers
   here: [https://core.trac.wordpress.org/newticket](https://core.trac.wordpress.org/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)

The topic ‘Error upon activations’ is closed to new replies.

 * In: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
 * 3 replies
 * 2 participants
 * Last reply from: [threadi](https://wordpress.org/support/users/threadi/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/error-upon-activations/#post-17903006)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
