[wp-trac] [WordPress Trac] #16455: if MULTISITE constant not defined error message "One or more database tables are unavailable" or "Error establishing a database connection" appears

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 8 15:52:42 UTC 2011


#16455: if MULTISITE constant not defined error message "One or more database
tables are unavailable" or "Error establishing a database connection"
appears
-------------------------------+------------------------------
 Reporter:  Axel_germany       |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:  3.0.4
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------

Comment (by Axel_germany):

 Thanks for your quick reply. I tracked the problem down. It's not critical
 for normal users but if you have

 {{{
 define( 'SUBDOMAIN_INSTALL', false );
 }}}

 in your wp-config.php and don't have

 {{{
 define( 'MULTISITE', false );
 }}}

 in your wp-config.php then

 {{{
 /**
  * Whether Multisite support is enabled
  *
  * @since 3.0.0
  *
  * @return bool True if multisite is enabled, false otherwise.
  */
 function is_multisite() {
         if ( defined( 'MULTISITE' ) )
                 return MULTISITE;

         if ( defined( 'SUBDOMAIN_INSTALL' ) || defined( 'VHOST' ) ||
 defined( 'SUNRISE' ) )
                 return true;

         return false;
 }
 }}}

 ( line 499 in wp-includes/load.php ) returns true.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16455#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list