[wp-trac] [WordPress Trac] #37685: Creating new multisite blog - wpmu_create_blog tries to execute queries on non-existent tables

WordPress Trac noreply at wordpress.org
Fri Aug 19 06:15:34 UTC 2016


#37685: Creating new multisite blog - wpmu_create_blog tries to execute queries on
non-existent tables
--------------------------------+------------------------------
 Reporter:  fliespl             |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Networks and Sites  |     Version:
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:  multisite
--------------------------------+------------------------------

Comment (by fliespl):

 I have confirmed it with wordpress 4.6 using such script in mu-plugins

 {{{

 add_filter('shutdown', function() {
     global $EZSQL_ERROR;

     file_put_contents(ABSPATH.'/errors.log', print_r($EZSQL_ERROR,
 true)."\n\n", FILE_APPEND);
 });

 }}}

 Errors logged:

 {{{
     [0] => Array
         (
             [query] => SELECT option_value FROM wp_4_options WHERE
 option_name = 'wp_4_user_roles' LIMIT 1
             [error_str] => Table 'site.wp_4_options' doesn't exist
         )

     [1] => Array
         (
             [query] => DESCRIBE wp_4_posts
             [error_str] => Table 'site.wp_4_posts' doesn't exist
         )

     [2] => Array
         (
             [query] => SELECT option_value FROM wp_4_options WHERE
 option_name = 'blogname' LIMIT 1
             [error_str] => Table 'site.wp_4_options' doesn't exist
         )

     [3] => Array
         (
             [query] => SELECT option_value FROM wp_4_options WHERE
 option_name = 'siteurl' LIMIT 1
             [error_str] => Table 'site.wp_4_options' doesn't exist
         )

     [4] => Array
         (
             [query] => SELECT option_value FROM wp_4_options WHERE
 option_name = 'post_count' LIMIT 1
             [error_str] => Table 'site.wp_4_options' doesn't exist
         )

     [5] => Array
         (
             [query] => SELECT option_value FROM wp_4_options WHERE
 option_name = 'home' LIMIT 1
             [error_str] => Table 'site.wp_4_options' doesn't exist
         )
 }}}

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


More information about the wp-trac mailing list