[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
Fri Feb 4 17:19:57 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: |
--------------------------+------------------------------
Comment (by markjaquith):
WordPress should never be treating MULTISITE as a boolean without testing
first to see if it is defined.
Additionally, in the case of a non-multisite install, we define it to be
false.
{{{
// Initialize multisite if enabled.
if ( is_multisite() ) {
require( ABSPATH . WPINC . '/ms-blogs.php' );
require( ABSPATH . WPINC . '/ms-settings.php' );
} elseif ( ! defined( 'MULTISITE' ) ) {
define( 'MULTISITE', false );
}
}}}
Going to need more information here. Literally millions of people are
running 3.0.4 with no MULTISITE constant defined at all. Something else
must be going on.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16455#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list