Multisite setup: “Warning: An existing WordPress network was detected.”

Date : 05/11/2019

Introduction

Therefore, while converting a WordPress single install to multisite, the following error will be displayed at the Network Setup admin page.

Warning: An existing WordPress network was detected

Rules in wp-config.php file

Therefore PHP constant definition is appended above  /* That’s all, stop editing! Happy blogging. */

define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'rainbowcreed.dev');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);

Solution

  1. Above all, reset your wp-config.php file back to its original state, remove any MULTISITE references.
  2. For instance, delete the .htaccess file or move it temporarily.
  3. Meanwhile, drop the following tables from your WordPress Database, use a tool like phpMyAdmin if you are not comfortable directly modifying a table / Mysql queries to do it.

    Moreover, these tables have to be dropped down.

    wp_blogs
    wp_blog_versions
    wp_registration_log
    wp_site
    wp_sitemeta
    wp_signups
    wp_sitecategories

4. Subsequently, execute the drop table queries in MYSQL.

mysql> drop table wp_blogs;
Query OK, 0 rows affected (0.01 sec)

mysql> drop table wp_signups;
Query OK, 0 rows affected (0.00 sec)

mysql> drop table wp_sitemeta;
Query OK, 0 rows affected (0.00 sec)

mysql> drop table wp_site;
Query OK, 0 rows affected (0.00 sec)

mysql> drop table wp_registration_log;
Query OK, 0 rows affected (0.00 sec)

mysql> drop table wp_blog_versions;
Query OK, 0 rows affected (0.00 sec)

5. Similarly, log out and log back into your site and initiate the Network Setup.

6. On the other hand, recreate the .htaccess file with data.

7. In conclusion, modify the wp-config.php file, remember to paste those lines above the line where it says/* That’s all, stop editing! Happy blogging. */

Thanks for using pheonix solutions.

Leave a Reply