[wp-trac] [WordPress Trac] #29678: Multisite SHORTINIT from outside PATH_CURRENT_SITE

WordPress Trac noreply at wordpress.org
Mon Sep 15 14:47:25 UTC 2014


#29678: Multisite SHORTINIT from outside PATH_CURRENT_SITE
--------------------------------+------------------------------
 Reporter:  sgissinger          |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Networks and Sites  |     Version:  4.0
 Severity:  normal              |  Resolution:
 Keywords:  reporter-feedback   |     Focuses:  multisite
--------------------------------+------------------------------

Comment (by sgissinger):

 It was broken because '''wp-includes/ms-settings.php''' is always trying
 to search a blog on the path '''/intranet''' whereas my multisite
 Wordpress constant {{{PATH_CURRENT_SITE}}} is setup with '''/extranet'''.

 '''wp-includes/ms-settings.php''' is testing {{{if ( empty( $current_blog
 ) )}}} :

 * this variable was setup by {{{$current_blog = get_site_by_path( $domain,
 $path, 1 );}}}
 * {{{$path}}} is initialized with {{{$_SERVER['REQUEST_URI']}}} which
 contains '''/intranet'''
 * '''/intranet''' is a path unknown by my WP multisite installation
 (because it's under '''/extranet''')

 And finally this is firing {{{ms_not_installed()}}} function on line 159
 of '''wp-includes/ms-settings.php'''.

 According to me, you highlighted another issue that the error message
 displayed by {{{ms_not_installed()}}} is not reflecting what really
 happens in this case when it sets {{{$title = __( 'Error establishing a
 database connection' );}}}

 {{{ms_not_installed()}}} is located in file '''wp-includes/ms-load.php'''
 at line 393

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


More information about the wp-trac mailing list