Support » Fixing WordPress » Login Requires wp-config Reset Every Time

  • I’ve tried everything I know of, and this issue has not been resolved, so here I am.

    I’m running multiple local and remote installs of WordPress 3. I’ve experienced this issue in both local copies, and both remote copies, and in multiple browsers. I’ve also experienced it in installs with only the core plugins (askimet, hello dolly), and theme (twentyten), so we can rule those out.

    Basically, every time I attempt to login to my site admin, I enter the correct credentials, yet I’m returned to the login screen. In the query string, there is a name/value pair of reauth=1, which I’m assuming is causing this. I’ve tried clearing all my cookies/cache, no resolution. I’ve tried resetting my password in mysql using an MD5 hash generator, no resolution. I’ve tried deleting wp-config, and recreating using the browser install, this works.

    Unfortunately, I don’t want to reset my wp-config file every time I want to login, and this issue seems to be pointing to a WordPress 3 issue more than anything else.

    One question, does a WordPress install have to have a user named “admin”? I changed my user name on install in every case, so that’s the only thing I can think of that may be causing this.

    Really want to use WordPress, but this is getting really frustrating. Any help is much appreciated.

Viewing 6 replies - 1 through 6 (of 6 total)
  • As far as I know you can create a user with the equivalent role of admin and then delete Admin. Never tried it, too lazy.

    Thread Starter withinsight

    (@withinsight)

    Further testing, and when I visit http://www.mysite.local/wp-admin, I get this query string appended to wp-admin/:

    ?redirect_to=http%3A%2F%2Fwww.mysite.local%2Fmy_custom_folder%2Fwp-admin%2F&reauth=1

    I have a .htaccess rewrite rule telling requests to http://www.mysite.local to rewrite to my_custom_folder, but WordPress doesn’t seem to be understanding this. Here’s the rewrite:

    rewriteCond %{HTTP_HOST} ^www.mysite.local
    rewriteCond %{REQUEST_URI} !^/my_custom_folder/
    rewriteRule (.*) /my_custom_folder/$1 [L]

    Long shot, but make sure your rewrite rules are before WP’s rules.

    I have thee same issue with WP3.0 and login – see here … I don’t have anything special in my .htaccess, only some code to make permalinks work on 1&1 servers:

    # PHP5 auf 1und1 einschalten
    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php
    Options -MultiViews

    The problem seems to arise after adding the “network chunk” to wp-config.php:

    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'mydomain.de' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    I tried resetting passwords I-dont-know-how-many-times and started with clean installs four times – to no avail. As soon as I enable multiblogs, there’s no login into the backend possible anymore…

    I’d greatly appreciate any help – thanx in advance, Gabi

    veblogy

    (@veblogy)

    I have same issue. I need to created sub domains at the xyz.com and then it should be point xxx.pqr.com to the newly created subdomain for xyz.com.

    Front end is working fine, I am getting error when i tried to access admin panel of xxx.pqr.com/wp-admin

    Please help me.

    Thanks in advance.

    I ran into this exact issue with the infinite reauth loop tonight after I had to move a WP site from one domain to the other. What fixed it was making sure siteurl and home matched in the wpoptions table in the databsse. At first it was siteurl = http://www.xyz.com/x-y-z/ and home = http://www.xyz.com/. When I added the subdirectory to the home field it worked fine, it was like the admin was looking in the wrong spot to authorize the user or something. Hope this helps.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Login Requires wp-config Reset Every Time’ is closed to new replies.