The MU forums have moved to WordPress.org

can not login with a user different from admin in WordPress MU (23 posts)

  1. diossabot
    Member
    Posted 16 years ago #

    Hi,

    I just installed Wordpress mu .7 on a new server.

    Using the admin account I can login.

    When I try to login with a different user it never logins. This means Wordpress allows me to create a new user and a blog, but I can not login with the new user

    Using firefox it displays a message like:

    the server is redirecting the request for this address in a way that will never complete

    I research on this forum, google, different forums, and all of them talk about the problem but saying that this and upgrade problem

    But as I said, this a brand new installation.

    versions:
    Wordpress 2.7
    MySQL 5.0.22
    Apache 2.2.11
    Windows 2003 R2 Server

    If I create a new user and then I add that user to the admin role it works. If I add all the users to the admin role it works.

    Dropped all the tables, download again wordpress, deleted everything and tryed again and ..the same.

    I do the same install on my lapto with windows xp and on my laptop works fine but not on the server.

    The only difference is that in may laptop I use "localhost.domain" as the computer name and in the server is community.bitam.com (a subdomain)

    any clue?
    Any help will be apreciated

    Adrian

  2. VentureMaker
    Member
    Posted 16 years ago #

    Did you try to clear cookies, cache, restarting browser and loggin in as user then?

  3. veeco
    Member
    Posted 16 years ago #

    This was happening to me. The problem is that when you create a user, it actually DOES NOT assign it a Role. Go in and check the user's role and it most likely will be -No Role for this Blog-. If you assign it a role, you will be able to log in.

    I found that adding a user through Users -> Add New, produces this problem. If you add a user from Site Admin -> Users, then assign it a role, this doesn't happen.

    Is this a bug? Why are users not given the role they are assigned when added?

  4. diossabot
    Member
    Posted 16 years ago #

    Venture,

    did id many times. No working.

    Veeco

    yes, there is no role. But in my case I an using the "create new blog" option on the login page of wordpress.

    What is very frustating, is that I can not find the difference between my laptop and the server

    Thanks both of you
    Adrian

  5. VentureMaker
    Member
    Posted 16 years ago #

    did you use www with domain on your server?

  6. diossabot
    Member
    Posted 16 years ago #

    no wwww, just:

    subdomain.domain.com

  7. VentureMaker
    Member
    Posted 16 years ago #

    I mean, when you installed WPMU, did you use www?
    Can you show your .htaccess and wp-config.php files?

  8. diossabot
    Member
    Posted 16 years ago #

    Thanks Venture

    my .htaccess:

    RewriteEngine On
    RewriteBase /wp/

    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ $1/ [R=301,L]

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

    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

  9. diossabot
    Member
    Posted 16 years ago #

    the wp_config:
    <?php
    /**
    * The base configurations of the WordPress.
    *
    **************************************************************************
    * Do not try to create this file manually. Read the README.txt and run the
    * web installer.
    **************************************************************************
    *
    * This file has the following configurations: MySQL settings, Table Prefix,
    * Secret Keys, WordPress Language, and ABSPATH.
    *
    * This file is used by the wp-config.php creation script during the
    * installation.
    *
    * @package WordPress
    */

    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('DB_NAME', 'wordpress');

    /** MySQL database username */
    define('DB_USER', 'wordpress');

    /** MySQL database password */
    define('DB_PASSWORD', 'w0rdpr3ss');

    /** MySQL hostname */
    define('DB_HOST', 'localhost');

    /** Database Charset to use in creating database tables. */
    define('DB_CHARSET', 'utf8');

    /** The Database Collate type. Don't change this if in doubt. */
    define('DB_COLLATE', '');
    define('VHOST', 'no');
    $base = '/wp/';
    define('DOMAIN_CURRENT_SITE', 'community.bitam.com' );
    define('PATH_CURRENT_SITE', '/wp/' );
    define('BLOGID_CURRENT_SITE', '1' );

    /**#@+
    ...
    /**#@-*/

    /**
    * WordPress Database Table prefix.
    *
    * You can have multiple installations in one database if you give each a unique
    * prefix. Only numbers, letters, and underscores please!
    */
    $table_prefix = 'wp_';

    /**
    * WordPress Localized Language, defaults to English.
    *
    * Change this to localize WordPress. A corresponding MO file for the chosen
    * language must be installed to wp-content/languages. For example, install
    * de.mo to wp-content/languages and set WPLANG to 'de' to enable German
    * language support.
    */
    define ('WPLANG', '');

    // double check $base
    if( $base == 'BASE' )
    die( 'Problem in wp-config.php - $base is set to BASE when it should be the path like "/" or "/blogs/"! Please fix it!' );

    // uncomment this to enable wp-content/sunrise.php support
    //define( 'SUNRISE', 'on' );

    // uncomment to move wp-content/blogs.dir to another relative path
    // remember to change WP_CONTENT too.
    // define( "UPLOADBLOGSDIR", "fileserver" );

    // If VHOST is 'yes' uncomment and set this to a URL to redirect if a blog does not exist or is a 404 on the main blog. (Useful if signup is disabled)
    // For example, the browser will redirect to http://examples.com/ for the following: define( 'NOBLOGREDIRECT', 'http://example.com/' );
    // define( 'NOBLOGREDIRECT', '' );
    // On a directory based install you can use the 404 handler.

    // Location of mu-plugins
    // define( 'WPMU_PLUGIN_DIR', '' );
    // define( 'WPMU_PLUGIN_URL', '' );
    // define( 'MUPLUGINDIR', 'wp-content/mu-plugins' );

    // Uncomment to disable the site admin bar
    //define( 'NOADMINBAR', 1 );

    define( "WP_USE_MULTIPLE_DB", false );

    /* That's all, stop editing! Happy blogging. */

    /** WordPress absolute path to the Wordpress directory. */
    if ( !defined('ABSPATH') )
    define('ABSPATH', dirname(__FILE__) . '/');

    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');
    ?>

  10. VentureMaker
    Member
    Posted 16 years ago #

    OK, so you installed WPMU into community.bitam.com/wp/ ?

    And users blogs are created like community.bitam.com/wp/username ?

  11. diossabot
    Member
    Posted 16 years ago #

    yes, that is right

  12. veeco
    Member
    Posted 16 years ago #

    diossabot,
    if those are your actual DB_NAME, DB_USER, DB_PASSWORD, I suggest you change them now because you just made that information public. If they're fake, forget I even said anything...

  13. diossabot
    Member
    Posted 16 years ago #

    Thanks!

  14. VentureMaker
    Member
    Posted 16 years ago #

    OK... Maybe I am just tired, or...
    Or you seem to have .htaccess file of subdomain install, while you're using subdirectory install.

  15. andrea_r
    Moderator
    Posted 16 years ago #

    the htaccess files are the same in both cases VM.

  16. diossabot
    Member
    Posted 16 years ago #

    By the answer of Andrea, I deduce the file is the same in both cases VentureMaker

    thanks!

  17. VentureMaker
    Member
    Posted 16 years ago #

    OK, I was really tired :)

  18. VentureMaker
    Member
    Posted 16 years ago #

    Try adding this into config file:

    define('ADMIN_COOKIE_PATH', '/');
    define('COOKIE_DOMAIN', '');
    define('COOKIEPATH', '');
    define('SITECOOKIEPATH', '');

  19. diossabot
    Member
    Posted 16 years ago #

    pasted as is in the config file, didn't work.

  20. VentureMaker
    Member
    Posted 16 years ago #

    OK, where can I signup and test? :)

  21. diossabot
    Member
    Posted 16 years ago #

    sure! be my guest!

  22. VentureMaker
    Member
    Posted 16 years ago #

    An error occurred during the activation
    Invalid activation key.

    This is what I get on certain step.

  23. diossabot
    Member
    Posted 16 years ago #

    I really appreciate your help VM

    Will hold this testing a bit, while I find another server for my testing and start over again.

    Thanks!!

About this Topic

  • Started 16 years ago by diossabot
  • Latest reply from diossabot