{"id":19015038,"date":"2026-09-09T01:28:24","date_gmt":"2026-09-09T01:28:24","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/missing-wp_to_buffer_log-table-error-on-old-multisite-install\/"},"modified":"2026-09-09T02:00:31","modified_gmt":"2026-09-09T02:00:31","slug":"missing-wp_to_buffer_log-table-error-on-old-multisite-install","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/missing-wp_to_buffer_log-table-error-on-old-multisite-install\/","title":{"rendered":"Missing wp_to_buffer_log table error on old Multisite install"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hi,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I run an old WordPress Multisite network (PHP 8.3). WP to Buffer is activated only on Site 1 of the network \u2014 it is not network-activated.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;ve confirmed the issue is reproducible: every time a scheduled post on Site 1 auto-publishes, the following database error is written to the<br \/>PHP error log:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">WordPress database error Table &#8216;wp_XXXXXX.wp_to_buffer_log&#8217; doesn&#8217;t exist<br \/>for query SHOW FULL COLUMNS FROM <code>wp_to_buffer_log<\/code> made by<br \/>do_action_ref_array(&#8216;publish_future_post&#8217;), WP_Hook-&gt;do_action,<br \/>WP_Hook-&gt;apply_filters, check_and_publish_future_post, wp_publish_post,<br \/>do_action(&#8216;wp_insert_post&#8217;), WP_Hook-&gt;do_action, WP_Hook-&gt;apply_filters,<br \/>WPZinc\\Social\\Publish-&gt;wp_insert_post_publish, WPZinc\\Social\\Publish-&gt;publish,<br \/>WPZinc\\Social\\Publish-&gt;send, WPZinc\\Social\\Log-&gt;add<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">Digging into the plugin code, this comes from <code>Log::add()<\/code> in<br \/><code>lib\/social\/includes\/class-log.php<\/code>. That method calls<br \/><code>$wpdb-&gt;insert( $wpdb-&gt;prefix . $this-&gt;table, $log )<\/code> directly, without<br \/>first checking whether the log table actually exists. On my install, the<br \/>table apparently was never created for this site \u2014 possibly because the<br \/>plugin&#8217;s activation routine (which is multisite-aware and loops through<br \/><code>get_sites()<\/code> on network activation) never ran in this site&#8217;s context,<br \/>since the plugin was activated per-site rather than network-wide.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The error itself isn&#8217;t fatal \u2014 WordPress just logs the warning and<br \/>carries on \u2014 but it fires on every single scheduled publish, which fills<br \/>up the error log needlessly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Would it be possible for <code>Log::add()<\/code> (and the other methods that query<br \/>this table, like <code>get()<\/code>, <code>search()<\/code>, and <code>total()<\/code>) to check<br \/>whether the table exists first, and create it on the fly if it&#8217;s<br \/>missing \u2014 similar to what <code>activate()<\/code> already does? That would make<br \/>the plugin self-heal in this situation instead of writing a raw database<br \/>error to the log.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Happy to share the exact patch I&#8217;m using locally if that&#8217;s useful.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks!<\/p>\n","protected":false},"template":"","class_list":["post-19015038","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19015038","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":2,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19015038\/revisions"}],"predecessor-version":[{"id":19015046,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19015038\/revisions\/19015046"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19015038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}