WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Database error when enabling mutlisite (33 posts)

  1. BSPBrent
    Member
    Posted 3 years ago #

    This is my current wp-config.php for the site and blog IDs.

    define( 'SITE_ID_CURRENT_SITE', 2 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    I had tried setting the site_id in all the tables to 1, along with the blog_id, but I still got the database connection error. I dropped all the tables and started over, setting the SITE_ID_CURRENT_SITE to 2. Now everything seems to be working. So the SITE_ID_CURRENT_SITE may need to be changed to what is in the database in addition to the blog_id change.

    Everything seems to be working now. Thanks for everyone's help!

  2. nuroweb
    Member
    Posted 3 years ago #

    I had the same issue, but it was caused by a stupid error on my part. I'm posting my solution here in case it can help other people that did the same error.

    I added the folwing line of code tp wp-config.php to enable multi-site in the admin/tools menu:

    define('WP_ALLOW_MULTISITE', true);

    When I enable network and it asked me to put more code in the wp-config.php, the first line was:

    define( 'MULTISITE', true );

    I read too quickly and tought this was the same line and didn't put it. I got the same error as the original poster of this thread.

  3. bill_mcgonigle
    Member
    Posted 3 years ago #

    @nuroweb: gosh, I did the same stupid thing. Thanks for posting!

Topic Closed

This topic has been closed to new replies.

About this Topic