Title: Missing wp_to_buffer_log table error on old Multisite install
Last modified: September 9, 2026

---

# Missing wp_to_buffer_log table error on old Multisite install

 *  [Marlimant](https://wordpress.org/support/users/marlimant/)
 * (@marlimant)
 * [21 hours, 35 minutes ago](https://wordpress.org/support/topic/missing-wp_to_buffer_log-table-error-on-old-multisite-install/)
 * Hi,
 * I run an old WordPress Multisite network (PHP 8.3). WP to Buffer is activated
   only on Site 1 of the network — it is not network-activated.
 * I’ve confirmed the issue is reproducible: every time a scheduled post on Site
   1 auto-publishes, the following database error is written to the
   PHP error log:
 * > WordPress database error Table ‘wp_XXXXXX.wp_to_buffer_log’ doesn’t exist
   > for
   > query SHOW FULL COLUMNS FROM `wp_to_buffer_log` made bydo_action_ref_array(‘
   > publish_future_post’), WP_Hook->do_action,WP_Hook->apply_filters, check_and_publish_future_post,
   > wp_publish_post,do_action(‘wp_insert_post’), WP_Hook->do_action, WP_Hook->apply_filters,
   > WPZinc\Social\Publish->wp_insert_post_publish, WPZinc\Social\Publish->publish,
   > WPZinc\Social\Publish->send, WPZinc\Social\Log->add
 * Digging into the plugin code, this comes from `Log::add()` in
   `lib/social/includes/
   class-log.php`. That method calls`$wpdb->insert( $wpdb->prefix . $this->table,
   $log )` directly, withoutfirst checking whether the log table actually exists.
   On my install, thetable apparently was never created for this site — possibly
   because theplugin’s activation routine (which is multisite-aware and loops through`
   get_sites()` on network activation) never ran in this site’s context,since the
   plugin was activated per-site rather than network-wide.
 * The error itself isn’t fatal — WordPress just logs the warning and
   carries on—
   but it fires on every single scheduled publish, which fillsup the error log needlessly.
 * Would it be possible for `Log::add()` (and the other methods that query
   this 
   table, like `get()`, `search()`, and `total()`) to checkwhether the table exists
   first, and create it on the fly if it’smissing — similar to what `activate()`
   already does? That would makethe plugin self-heal in this situation instead of
   writing a raw databaseerror to the log.
 * Happy to share the exact patch I’m using locally if that’s useful.
 * Thanks!
    -  This topic was modified 21 hours, 10 minutes ago by [Marlimant](https://wordpress.org/support/users/marlimant/).
    -  This topic was modified 21 hours, 3 minutes ago by [Marlimant](https://wordpress.org/support/users/marlimant/).

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmissing-wp_to_buffer_log-table-error-on-old-multisite-install%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/wp-to-buffer/assets/icon-256x256.png?rev=2596326)
 * [Social Media Auto Poster - Schedule & Publish to Buffer](https://wordpress.org/plugins/wp-to-buffer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-to-buffer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-to-buffer/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-to-buffer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-to-buffer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-to-buffer/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Marlimant](https://wordpress.org/support/users/marlimant/)
 * Last activity: [21 hours, 35 minutes ago](https://wordpress.org/support/topic/missing-wp_to_buffer_log-table-error-on-old-multisite-install/)
 * Status: not resolved