WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Multisite and wp-config.php (7 posts)

  1. starapple
    Member
    Posted 8 months ago #

    Hi there. I'm following the 'Create A Network' (http://codex.wordpress.org/Create_A_Network) instructions to activate Multisite but I don't see any mention of 'require' or 'include' in wp-config.php, above which the documentation says to insert

    /* Multisite */
    define( 'WP_ALLOW_MULTISITE', true );

    I thought that since I'm running a decade-old installation that's been upgraded along the way to 3.6.1, maybe something was missing from my config file. So I downloaded WP and looked in the included wp-config-sample.php but the only difference was a longer list of definitions that didn't include one for Multisite.

    The only mention of 'require' is on the last line, line 90, require_once(ABSPATH . 'wp-settings.php'); but I wouldn't think that's the "require" mentioned in the instructions.

    Do I add `/* Multisite */
    define( 'WP_ALLOW_MULTISITE', true );` below the list of database and authentication definitions? Today is not a good day to mess up.

    Thanks.

  2. Put it above require_once.

    You may want to look at the wp-config-sample.php and update your config to a more modern version. You may be missing salts, hashes and keys too.

  3. starapple
    Member
    Posted 8 months ago #

    Thanks @Ipstenu (Mika Epstein. I got it activated but now have been set back several steps as almost every single plugin, no matter how new and "compatible with WordPress 3.6.1" have problems.

    Now I'm trying to figure out how to have a created subdirectory site display the template and access its admin panel. I keep getting a message that "The web page has a redirect loop". No plugin is activated.

  4. Define 'Have problems."

    Same problems? Different ones?

    "The web page has a redirect loop". No plugin is activated.

    Read http://halfelf.org/2012/multisite-login-loop/

  5. starapple
    Member
    Posted 8 months ago #

    Thanks for your replies Ipstenu. You'll notice that this post is titled "Multisite and wp-config.php".

    I started a new post " Theme does not show, new site admin has redirect loop" because after I got that first one sorted out, I had problems. Anyway, while this is still not resolved, you can close it because I've given up on trying to resolve the problem and used the subdomain option which works fine.

    "Have problems" above was a ton of error messages spewed out when I set debug mode.

    Here are a few examples:

    Notice: Constant TINYPASS_PLUGIN_FILE_PATH already defined in /home/content/site/wp-
    content/plugins/tinypass/jslite/tinypass.php on line 12

    Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/content/site/wp-includes/functions.php on line 2998

    Notice: Trying to get property of non-object in /home/content/site/wp-
    content/plugins/jquery-masonry-image-gallery/init.php on line 97

    BTW, I read a pretty useful post on why not to use Multisite on your blog and also found some useful links through the piece. Thanks.

    Best.

  6. Read through and try everything in http://halfelf.org/2012/multisite-login-loop/ for the login loop.

    (As matter of fact, when I change the default theme from the network admin the twentythirteen theme remains the default.)

    Any caching on the site?

    HOW did you change the theme? You say that you did it in the network admin, but you also say you can't get to the network admin, so it's confusing.

    Let's take this one at a time.

    1) ALL PLUGINS OFF.

    2) Can you log in to every site/subsite?

    We have to fix THAT before you can go forward.

  7. starapple
    Member
    Posted 8 months ago #

    Before I got locked out, I had gone to a network admin screen with a long list of settings (My Sites->Network Admin->Sites->Edit Sites). About A quarter of the screen down, there were fields for Template and Stylesheet. So I just changed twentythirteen to another theme.

    But as I said above, I've abandoned attempting to use subfolders and instead gone to subdomain so the problems, which seemed to be related to redirections and stored cookies, don't exist anymore.

    I was hoping not to give users any clumsy URLs like site.domain.com since most people are comfortable with domain.com/site

    I won't try a subfolder setup again. I did in 15 mins with subdomains what bothered me for a day-and-a-half fooling with subfolders.

Reply

You must log in to post.

About this Topic