WordPress.org

Ready to get started?Download WordPress

Forums

Can't get past authentication for new site (8 posts)

  1. bogjacket
    Member
    Posted 4 years ago #

    Good Morning,

    I'm still a beginner with WordPress, but just for fun, I've been trying to learn more and installed 3.0. I have multisite enabled and running. However, after I created a test site from the site admin, I click 'visit' to check it out, and I get an 'Authentication Required' prompt that will not accept any user credentials from the main site, even the super admin login. It just keeps popping back up and if I click 'cancel' I get a "you are not authorized page."

    I would really appreciate any suggestions or even a "Hey, Dummy. Go read this first" type of link.

    Thank you.

  2. BlaM4c
    Member
    Posted 4 years ago #

    Do you have you main installation on one domain and your second blog on a domain that is NOT a subdomain of the first blog? e.g.

    First: mywordpress.com
    Second: mysite.com -- NOT mysite.mywordpress.com

    In that case wordpress probably just is not able to set the cookie for the second blog. Try adding

    define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST']);

    to your wp-config.php.

  3. bogjacket
    Member
    Posted 4 years ago #

    I'm sorry. I should have specified.

    It's main site: mainsite.com
    test site: mainsite.com/testsite

    Should I still add that line to the config file?

    wp-content/blogs.dir is still empty. Shouldn't there be something in that directory after creating a new site off the main?

  4. BlaM4c
    Member
    Posted 4 years ago #

    In that case you should not need the COOKIE_DOMAIN because everything is under the same domain. Don't have an idea in that case. Anybody else?

    I think the blogs.dir directories are created in the moment you upload a file to a blog for the first time. It's okay that it is empty.

  5. bogjacket
    Member
    Posted 4 years ago #

    Thanks, anyway, BlaM4c.

    To update, I just created "test2" and attempting to visit that does not require authentication. Rather, it just goes straight to "Page cannot be found."

    I have support (3essentials.com) looking at it now.

  6. @bogjacket - actually that's really odd. Can't say I've seen that error before. (so it's not you or a noob thing)

    The subfolder blogs work via mod_rewrite. As long as the .htaccess file is present and is actually being read, they should serve up just fine.

    you may want to double-check and see if you've set any authentication on subfolders of the server though. the authentication prompt is definitely on your server end, not WP.

  7. bogjacket
    Member
    Posted 4 years ago #

    Thanks, Andrea.

    Now, without even making changes, I can't get to the site admin page. I must have messed something up on the install, maybe the .htaccess file, because the problems keep getting more and more strange.

    Why can't the WP 3.0 package just come with the proper .htaccess file? I just created a text file, copied in the lines from the tools->network instructions and renamed it after transferring to the server, via FTP.

    I'll try, once again, to scrap the whole thing and reinstall. I hadn't done anything with it yet, anyway.

  8. and renamed it after transferring to the server, via FTP.

    Rename it locally, then transfer the htaccess file.

    running a network requires more skills, beyond that even of troubleshooting the setup.

Topic Closed

This topic has been closed to new replies.

About this Topic