WordPress.org

Ready to get started?Download WordPress

Forums

Cannot login after adding Create Network Script in wp-config.php (9 posts)

  1. ganeshsurfs
    Member
    Posted 1 year ago #

    ***> Tried using both 127.0.0.1 and 192.168.1.1 (mapped as //computername/).
    ***> I am trying to use for development purposes. I presume the Network Setup in Administration Panel automatically detects sub-domain and path network setup needs.
    ***>> Cannot login after trying to create network/ multisite from Administration > Network Set Up.

    1] I have Enabled the Network Install >> Can see the Network Setup option in the administration panel
    2] Clicked on Network Setup, it created .htaccess and gave me scripts to add to wp-config.php and .htaccess
    3] It asked me to login after adding the scripts >> WordPress wont login after that and not does it show the login page.
    4] When trying to do Netowrk Setup again it gives me a warning "Warning: An existing WordPress network was detected.".

    ** I have not added a new database myself. Presume it is added by the Network Setup option in the Administration Panel.

    --------------------------------------------
    QUESTIONS
    --------------------------------------------

    *> Please let me know where I am going wrong. There are setting for Database already.
    *> Do I have to create a new database manually again
    *> If I have to create a new database manually, and add the settings to wp-config.php; what all tables (if at all) do I have to add them manually or will they be added automatically?

    -------------------------------------------
    WHAT I HAVE ADDED
    -------------------------------------------

    I have attached the scripts that I am getting and adding

    <<WP-CONFIG.PHP>>

    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'gb-pc');
    define('PATH_CURRENT_SITE', '/wordpress/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    <<.HTACCESS>>

    RewriteEngine On
    RewriteBase /wordpress/
    RewriteRule ^index\.php$ - [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

  2. ganeshsurfs
    Member
    Posted 1 year ago #

    127.0.0.1 is mapped as "//localhost/"

  3. Your wp-config.php is missing a line.

    define('WP_ALLOW_MULTISITE', true);

  4. ganeshsurfs
    Member
    Posted 1 year ago #

    I have done it manually before. Do I have to create new DB and user for this to work or is it done automatically?

    "I have Enabled the Network Install >> Can see the Network Setup option in the administration panel"

  5. You've done... what manually?

    I'm telling you that what you have in your wp-config.php, what you showed is, is missing that line. Are you saying "No it's there, I just didn't paste it here?"

    3] It asked me to login after adding the scripts >> WordPress wont login after that and not does it show the login page.

    What do you mean it doesn't show the login page? What happens when you go to domain.com/wp-admin/?

  6. ganeshsurfs
    Member
    Posted 1 year ago #

    You've done... what manually?
    I'm telling you that what you have in your wp-config.php, what you showed is, is missing that line. Are you saying "No it's there, I just didn't paste it here?"

    <<have added the script - define('WP_ALLOW_MULTISITE', true);>>
    <<loggedout & loggedin to get the Network Setup in Admin Panel>>
    <<tried running the Networksetup, which asked me to add the mentioned scripts in two files wp-config and htaccess>>
    <<added them and logged out and logged in to get a blank page with no login screen>>

    3] It asked me to login after adding the scripts >> WordPress wont login after that and not does it show the login page.
    What do you mean it doesn't show the login page? What happens when you go to domain.com/wp-admin/?

    <<Anyways it does not show the login page, it hangs to a blank page. A re-addition of above multi-site define multisite gives me an error saying Network already present>>
    <<Do I have to make a new DB for multiuser? and add it in wp-config.php even when using the NETWORKSETUP in ADMINISTRATION Panel>>

  7. Please use blockquotes and normal HTML when replying, eh? It's hard to read what you wrote with all the << and >> around there.... Complete sentences are helpful too :)

    have added the script - define('WP_ALLOW_MULTISITE', true);

    loggedout & loggedin to get the Network Setup in Admin Panel

    tried running the Networksetup, which asked me to add the mentioned scripts in two files wp-config and htaccess

    added them and logged out and logged in to get a blank page with no login screen

    And what page are you on at this point? Domain.com/wp-admin/ or domain.com/wp-login.php?

    Does ANY page work on your site?

  8. ganeshsurfs
    Member
    Posted 1 year ago #

    Okay. Here is what I have done and where I am stuck.

    Done:
    After adding wp_multisite_enable/ enabling network setup in wp-config,
    and running network setup,
    and adding the mentioned scripts in .htaccess and wp-config,
    and logging out,
    and then tried logging in,

    Where I am stuck
    * WordPress locks out or refreshes to home page.
    * It shows only the Home page
    * I have not added a new database and details in wp-config, presuming it will do it automatically
    * If I remove 2nd added list of wp-config scripts, in the Network setup it shows message "A Multisite Network is present/ enabled" or something similar

  9. WordPress locks out or refreshes to home page.

    "Locks out"? Nothing built in to WP will 'lock' anything.

    Go do example.com/wp-login.php

    Try to log in.

    EXACTLY what error message do you get? Copy paste, please :)

    I have not added a new database and details in wp-config, presuming it will do it automatically

    There is no new DB, don't worry about that.

Topic Closed

This topic has been closed to new replies.

About this Topic