Cannot enable WordPress Network – ‘MULTISITE’ already defined and false

In wp-config.php I have this code:

var_dump(defined(‘WP_ALLOW_MULTISITE’)); // false
var_dump(defined(‘MULTISITE’)); // true
var_dump(defined(‘SUBDOMAIN_INSTALL’)); // false

define(‘WP_ALLOW_MULTISITE’, true );
var_dump(WP_ALLOW_MULTISITE); // true
define(‘MULTISITE’, true);
var_dump(MULTISITE); // false
define(‘SUBDOMAIN_INSTALL’, true);
var_dump(SUBDOMAIN_INSTALL); // true

MULTISITE constant is already defined with false before wp-confing.php. I searched with grep and it’s defined only in ./wp-admin/includes/network.php as define(‘MULTISITE’, true);.

How to make it true? I tried on local Laradock instance and shared hosting. In both cases result is the same.

Read more here:: Cannot enable WordPress Network – ‘MULTISITE’ already defined and false

Leave a Reply

Your email address will not be published. Required fields are marked *