WordPress.org

Forums

[resolved] [closed] Warning: An existing WordPress network was detected. plus one more problem (40 posts)

  1. Isaak Wells
    Member
    Posted 5 years ago #

    I put the line, define('WP_ALLOW_MULTISITE', true); and it gives me the following warning.

    Warning: An existing WordPress network was detected.

    Also in the code instead of giving my my site consolealliance.com it gives me my other sites address as the default.
    define( 'DOMAIN_CURRENT_SITE', 'consolealliance.net' );
    It should be
    define( 'DOMAIN_CURRENT_SITE', 'consolealliance.com' );

    Can anyone explain how I may fix this?
    any suggestions or help are appreciated, Thanks.

  2. Are you sharing a database?

  3. maierma
    Member
    Posted 5 years ago #

    Same here.

    Activated network on my primary blog and set it all up (OK so far). When I noticed that the network option didn't really work for me, I went back to the original wp-config.php.

    Still no problem but when I add the network code to wp-config.php, I get the same message ("existing network detected").

    btw - I cleaned the db (in which three separate wp-installations are up and running) from the network entries.

  4. Isaak Wells
    Member
    Posted 5 years ago #

    No I am not

  5. Are both of you using an add-on domain at your host? And did you ask your host if they support the network (or multiste) on your account?

  6. ThaiClimate
    Member
    Posted 5 years ago #

    I'm getting the same message attempting to install it locally for testing purposes using subdirectories.

  7. ThaiClimate
    Member
    Posted 5 years ago #

    Actually thought I'd commented out the wp-config.php line enabling network settings, but had not. So message is gone and replaced by nothing. No network, Super Admin. Back to the original Dashboard. Database was updated with 6 new tables, nothing added to the Dashboard. No other warnings, just the old single site set-up with more tables.

    I've checked everything at this topic already.

  8. ThaiClimate
    Member
    Posted 5 years ago #

    Ok, just reinstalled and network settings are now working, but WP pages are not being served to the subdirectories/sub-sites. I've posted a question about this at another topic.

  9. Isaak Wells
    Member
    Posted 5 years ago #

    How do you reinstall the network settings?

  10. remove the global network tables, and the lines you added in the config file.

  11. fearlesszi
    Member
    Posted 4 years ago #

    I also had this problem: ""An existing WordPress network was detected"

  12. then you have some sitewide tables in the db.

  13. maxsoe
    Member
    Posted 4 years ago #

    I'm having the same problems. Have you guys solved it?

  14. kanishqa
    Member
    Posted 4 years ago #

    I am kind of newbie to wordpress, but not to php. I tried network on my site, and ran into the dreaded warning message

    "Warning: An existing WordPress network was detected."
    . After spending some time trying to figure out, I ended up peeking into network.php.

    To turn on Network, we need to add a constant, WP_ALLOW_MULTISITE. After this, when you try to install Network, it gives you the list of constants to be added to wp-config.php file. When I copied, I missed copying "define( 'MULTISITE', true )" thinking this is already there. Both these constants have to be there in the wp-config.php for network to work.

    Once I fixed this, I got the message,

    "Notice: The Network feature is already enabled. ..."
    which is good.

    Several sites that suggest fixes for this issue, mix up between these 2 settings as if they are one. Beware.

  15. edwardsmark
    Member
    Posted 4 years ago #

    Andrea - if nobody ever compared you to a saint, please allow me the privilege and honor to be the first!

    your posts have helped be before, but this one REALLY helped me with a tough problem!

  16. edwardsmark
    Member
    Posted 4 years ago #

    my problem was actually two-fold:

    1) the following tables had to be removed
    wp_blogs
    wp_blog_versions
    wp_site
    wp_sitemeta

    2) then i just started over from the beginning.

    also, one of the plug-ins has to be disabled every time i create a new site, and then enabled afterwards. i can live with that !

  17. You are welcome. :)

  18. Johnz Place
    Member
    Posted 4 years ago #

    I did what edwardsmark describes:

    my problem was actually two-fold:

    1) the following tables had to be removed
    wp_blogs
    wp_blog_versions
    wp_site
    wp_sitemeta

    2) then i just started over from the beginning.

    also, one of the plug-ins has to be disabled every time i create a new site, and then enabled afterwards. i can live with that !

    And I was finally able to re-install the network, that was great, a first!

    However, once I made a new sub-domain I ended up with the same original problem when trying to access the sub-domain web site:

    Error establishing a database connection

    I then removed the following config code (again):

    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', true );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'e-worldreview.com' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    Once I take this out I can access the sub-domain web site but then I can't access the sub-domain through the the multi-site directory sense it's been removed.(?)

    I've had HostGator tech help me twice with this and everything in the .htaccess and config files is always right.

    HostGator changed my config file back to the original status which didn't have the above multi-site code in it, that is how I found removing the above code to allow me to access my sub-domain sites through URL address but not through the web site admin page sense that code was removed. (Am I making sense?)

    So, can someone - Andrea_r - help me out here what the heck am I doing wrong that I can't get this to work.

    I've been beating my head on this for over a month now, I'm about to give up and just use individual sub-domain creation - Agh!!!

    Anyone,

    John

  19. @Johnz - have HG confirmed you have wildcard subdomains enabled on that account?

    that DB error is becasue it can't find the entry for that site in the db. Did you check and see if the tables were indeed created?

    Installing & reinstalling the network does not help. ;) This isn't Windows. :D

  20. Johnz Place
    Member
    Posted 4 years ago #

    Hi Andrea_r,

    Thanks for responding.

    HG confirmed wildcard sub-domains enabled.

    As far as tables for the DB, if you mean the

    wp_blogs
    wp_blog_versions
    wp_site
    wp_sitemeta

    that I emptied before re-installing then they are there and when i looked into them the new sub-domain is listed and other info is there.

    For the DB wp_blogs this is there:

    row(s) starting from record #
    in mode and repeat headers after cells
    Sort by key:
    + Options

    blog_id site_id domain path registered last_updated public archived mature spam deleted lang_id
    1 1 e-worldreview.com / 2011-04-24 20:38:11 0000-00-00 00:00:00 1 0 0 0 0 0
    2 1 web-traffic-genius.e-worldreview.com / 2011-04-24 20:46:53 2011-04-25 02:46:53 1 0 0 0 0 0 Check All / Uncheck All With selected:
    row(s) starting from record #
    in mode and repeat headers after cells

    For the DB "wp_site" this there:

    row(s) starting from record #
    in mode and repeat headers after cells

    + Options

    id domain path
    1 e-worldreview.com / Check All / Uncheck All With selected:
    row(s) starting from record #
    in mode and repeat headers after cells

    That only has the primary domain and no sub-domain listed? (I don't know if anything else should be there?)

    Is this the right tables that you are talking about? If not please explain? Thanks.

    John

    PS OH, I am also using a "Child" directory for the e-worldreview.com blog as described int his video:

    http://www.youtube.com/user/kentuckyclassroom#p/a/u/0/9BZNaoMQGAs

    I hope this helps find what is needed.

  21. web-traffic-genius.e-worldreview.com

    I see a site there.

    Is e-worldreview.com the *primary* domain for that web account? Or is it an add-on domain?

  22. Johnz Place
    Member
    Posted 4 years ago #

    e-worldreview.com is the primary domain.

    You see a site at web-traffic-genius.e-worldreview.com because I made a sub-domain using "Enable Multi-site" which didn't show up until I removed this code from the config.php file:

    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', true );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'e-worldreview.com' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    Once I took this code out the sub-domain(s) appear.

    So, the question remains how do I install the enable multi-site and get it to work? How do I put this config.php code back in and get it to work?

  23. Tim Moore
    Moderator
    Posted 4 years ago #

    @Johnz Place: did you follow http://codex.wordpress.org/Create_A_Network? If you manually pasted that code above into the wp-config.php file, then that is part of the problem. You need to follow the steps in the Create A Network link pretty precisely to get it to work as intended.

  24. because I made a sub-domain using "Enable Multi-site"

    The admin screen are not called "Enable multisite" The admin screen is "create a network".

    Like Tim said - did you do that? If you used the enable multisite plugin, remove it. Start over.

  25. Johnz Place
    Member
    Posted 4 years ago #

    I thought I was following the instructions on that page: http://codex.wordpress.org/Create_A_Network?

    But, I'm sure that I could have easily missed something.

    Here is the YouTube video that I try to follow when installing the "enable Multi-site" plugin: http://www.youtube.com/watch?v=sTgJy-nyDEY

    (Only he is describing a sub-directory instillation; I look to the page above to see what is different for sub-domain instillation.)

    This video shows that you are suppose to cut and paste the code from the WordPress blog > Tools > Network > (cut and paste code to .htaccess and to wp-config.php respectfully), I did not see anything about this being automated?

    Please let me know if this video is correct or what I need to do different? Thanks.

    John

    PS I will start over though.

  26. Johnz Place
    Member
    Posted 4 years ago #

    Thank you, thank you, thank you, add infinitum!!!!!

    Stupid me, I was using the "Enable Multi-site" plugin along with the "Create a Network" page instructions which seemed to be what was messing it all up. Dah!

    Well, I did remove the plugin "Enable Multi-Site" as you suggested Andrea_r and followed edwardsmark earlier suggestion to "Empty" the DB files:

    my problem was actually two-fold:

    1) the following tables had to be removed
    wp_blogs
    wp_blog_versions
    wp_site
    wp_sitemeta

    2) then i just started over from the beginning.

    also, one of the plug-ins has to be disabled every time i create a new site, and then enabled afterwards. i can live with that !

    Then I just used the instructions from the "Create a Network" page as both of you suggested (Andrea_r and Tim) and wallah, wallah. I now have an active network, how wonderful!!!

    It always end up being something so simple and so stupid to miss it!!!

    So, thanks again a whole bunch. I can now start working on making some web sites and doing it a little easier.

    I also hope that this helps some others find their way to making networking work.

    John

  27. Johnz Place
    Member
    Posted 4 years ago #

    OK, now that I got the network to work:) I have another question?

    The network site I'm making is going to be a review site. The primary domain is going to be a general squeeze page to collect email addresses for people interested in product reviews.

    e-worldreview.com

    The sub-domains are going to be reviews on particular products.

    web-traffic-genius.e-worldreview.com

    I had a very nice Header made that should unify all the sites (primary domain and sub-domains together) but it only appears on the primary domain.

    I would like it to appear on all sub-domains that I will be making without having to install and adjust it for each?

    Is there a way to do this? I hope so. Thanks.

    John

    PS I installed the Header on the web-traffic-genius.e-worldreview.com page and it still needs adjusting (if you notice the difference from e-worldreview.com). Always something...

  28. Depends on your theme, if it's hardcoded into the theme, yes. If not, you have ot go to each one :/

  29. Hardcode it into the theme, don;t use the admin area custom header.

    and by hardcode... I mean... replace the default one in the theme code. Presto.

  30. Johnz Place
    Member
    Posted 4 years ago #

    Sounds cool, all I need to know is what code replaces what code. I'm using the TwentyTen theme currently.

    I can find the editing tool for the Header but I need to know what I'm looking for in it to be replaced?

    The Header I had made is a .gpg image, how do I add this to the code to replace what is there?

    I'm still a newbie at this stuff. I hope you'll put up with it.

Topic Closed

This topic has been closed to new replies.

About this Topic