[wp-trac] [WordPress Trac] #46167: Network update does not create wp_blogmeta table

WordPress Trac noreply at wordpress.org
Mon Feb 25 14:44:15 UTC 2019


#46167: Network update does not create wp_blogmeta table
-----------------------------+------------------------
 Reporter:  waryn            |       Owner:  (none)
     Type:  defect (bug)     |      Status:  reopened
 Priority:  normal           |   Milestone:  5.1.1
Component:  Upgrade/Install  |     Version:  5.1
 Severity:  major            |  Resolution:
 Keywords:                   |     Focuses:  multisite
-----------------------------+------------------------

Comment (by spacedmonkey):

 I think there is an issue around the fact the check if table exists is in
 `wp_check_site_meta_support_prefilter`. This filter is only applied in
 `ms-default-filters.php` which is loaded pretty late in the bootstrap
 process. `get_site_by_path` is very early in the bootstrap process. So the
 `wp_check_site_meta_support_prefilter` is not in place, generating this
 error.

 The function `update_sitemeta_cache` need to be an updated with a call to
 `is_site_meta_supported()`

 {{{#!php
 function update_sitemeta_cache( $site_ids ) {
         if ( ! is_site_meta_supported() ) {
                 /* translators: %s: database table name */
                 _doing_it_wrong( __FUNCTION__, sprintf( __( 'The %s table
 is not installed. Please run the network database upgrade.' ),
 $GLOBALS['wpdb']->blogmeta ), '5.1.0' );
                 return false;
         }
         return update_meta_cache( 'blog', $site_ids );
 }

 }}}

 Looping in @flixos90

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46167#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list