The MU forums have moved to WordPress.org

Completely exhausted - Endless login loop still not fixed (2 posts)

  1. markydb77
    Member
    Posted 10 years ago #

    Hi all,
    Please Help? I've searched through (and tried every possible option I've come across and I still have the same problem. I've searched through every single query relating to this that I can find & tried the solutions there. I've trashed the database and install 3 times and started again & I'm still struggling. Please help?

    I have MU installed with Dynonames & then did another install on a different hosting account & different domain. The install went fine - with sub DIRECTORIES, and I am able to go into wp-admin and create new blogs & new users.
    I created 2 new blogs after I loaded the domain_mapping plugins into the respective directories. I did not "install" the plugin via the control panel - plugins.
    I dont have any other plugins enabled (or even loaded).

    Whenever I try to goto Site Admin - Blogs - Backend, I get a login screen & then find myself in this endless loop back to the login screen - with no error message. Irrespective of username, or being logged into the primary domain or not.

    My A records are pointing to the correct IP Address and I can tell that by typing in the domain name to the address bar & getting to the host blog page.

    I've tried to logout of site admin & login to site2.org/wp-admin, but still no luck.
    I've also tried adding cookies - again no luck.

    Install is with sub-directories using the domain mapping plugin.
    The primary domain & site is fine.
    sunrise.php is in wp-content
    domain_mapping.php is in mu_plugins

    I have 1 sub-dir domain edited to remove the host dir and I have another un-edited at all, but I still cant get to the backend to edit the domain mapping for the sub-domains.

    .HTACCESS IS A FOLLOWS:

    RewriteEngine On
    RewriteBase /

    #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>

    WP_CONFIG.PHP IS AS FOLLOWS:

    <?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. You can find more information by
    * visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
    * wp-config.php} Codex page. You can get the MySQL settings from your web host.
    *
    * 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', 'mydbasename - same as username');

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

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

    /** MySQL hostname */
    define('DB_HOST', 'lastchanceblah.....com');

    /** 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 = '/';
    define('DOMAIN_CURRENT_SITE', '3dtvsite.org' );
    define('PATH_CURRENT_SITE', '/' );
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOGID_CURRENT_SITE', '1' );

    /* Uncomment to allow blog admins to edit their users. See http://trac.mu.wordpress.org/ticket/1169 */
    //define( "EDIT_ANY_USER", true );
    /* Uncomment to enable post by email options. See http://trac.mu.wordpress.org/ticket/1084 */
    //define( "POST_BY_EMAIL", true );

    /**#@+
    * Authentication Unique Keys.
    *
    * Change these to different unique phrases!
    * You can generate these using the {@link http://api.wordpress.org/secret-key/1.1/wpmu/salt WordPress.org secret-key service}
    * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
    *
    * @since 2.6.0
    */
    define('AUTH_KEY', 'f15f4e69f678d2547522d6e66275f3294dfff1a9f6717f61698f72bb85ed4096');
    define('SECURE_AUTH_KEY', 'f3150258e2b6cb0eba5741dc52d878a6b31715b9973cbe3aa5284bfca7e5d3c1');
    define('LOGGED_IN_KEY', 'eab1724e9bf461b8df46943ebdae5cdad33b0a38daad176785f91c972caf2290');
    define('NONCE_KEY', 'b66d04ebe741116a8840d43d8a08c80a19fe82c4eaf475d16e484529082b7609');
    define('AUTH_SALT', 'aa02ab4f1cf9460400638028e0fbdb82d4b56f2e1a3b66b04014d5c4323cb841');
    define('LOGGED_IN_SALT', '23a9c7c40eb9696b992d3fbd89ad82466f39d164e83d33b339e842b84b12ac7a');
    define('SECURE_AUTH_SALT', '66f5ac9ea2d5ba7c789399acbe98be79de1093401d7c1be25154ae031f70bc4a');
    /**#@-*/

    /**
    * 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_DIR/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/' );
    // Set this value to %siteurl% to redirect to the root of the site
    // define( 'NOBLOGREDIRECT', '' );
    // On a directory based install you must use the theme 404 handler.

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

    define( "WP_USE_MULTIPLE_DB", false );

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

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

    /** 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');

    Any advice would be GREATLY Appreciated.

    Mark

  2. andrea_r
    Moderator
    Posted 10 years ago #

    Comment this out in wp-config.php:

    define('DOMAIN_CURRENT_SITE', '3dtvsite.org' );

    Try that, and also try the trunk version of the domain mapping plugin.
    http://plugins.trac.wordpress.org/browser/wordpress-mu-domain-mapping/trunk/domain_mapping.php?rev=235858

About this Topic

  • Started 10 years ago by markydb77
  • Latest reply from andrea_r