Unable to login after admin language change

Having Problems? Need Help? Post here!

Unable to login after admin language change

Postby pauloc » Tue Jan 13, 2009 4:19 pm

Hello, I'm getting this behaviour for diferent instalations: once I configure the languages I want to use (English and Spanish, and spanish as default), I click on the spanish flag which is supoused to translate the administration, I'm logged out and I can't log in again. Some times it says I have not enought permision and others just try to redirect to a diferent page and goes back to de login page.
I have the en_US.mo and the es_ES.mo files in the languages folder.
I've tryed installing on an default download wordpress and first, on a spanish wordpress version, both 2.7.

Hope you can help, and thanks for your great work, Paulo.
pauloc
 

Re: Unable to login after admin language change

Postby ivoez » Sat Jan 17, 2009 6:56 am

I had the same issue while using qtranslate. the moment i activated the plug in (with spanish as main language) i could not login in to the system again.
Took me a while but found the problem, but the *frenchies* ;) had the same problem as portrayed in one of the messages in the forum. the file
wp-content/languages/es_ES.php
had a "$wp_default_secret_key" phrase in portuguese! while the wp-config.php file had a 'AUTH_KEY'= "put your unique phrase here"
which made the two of those different and that mismatch broke the whole thing.
so just make the phrases the same and have a happy ending.

hope this helps,
cheers
ivoez
 

Re: Unable to login after admin language change

Postby pauloc » Sun Jan 18, 2009 11:49 pm

Wooh, many, many, many thanks, ivoez. I was thinking there was some misconfiguration on my apaches' testing machine, or the was imposible to make the plugin work on spanish instalations, and is so simple and so anoying.
Thanks again, and thanks to Qian for this great plugin.
pauloc
 

Re: Unable to login after admin language change

Postby BeStMaker » Sun Apr 05, 2009 4:21 am

Hey, many thanks for the help.

I have to say for the people who have tha same problem and the ivoez tip don't work, jus't go to \wp-content\languages and see if have all the PHP file's of the languages in use.

Example:

i have my site in two lang: spanish and german, i check the ivoez tip and it's done, and the problem persist...
and then in \wp-content\languages folder i duplicate the "es_ES.php" and rename for "de_DE.php", and that's all!

Sorry for my bad english!
BeStMaker
 
Posts: 3
Joined: Sun Apr 05, 2009 3:57 am

Re: Unable to login after admin language change

Postby anhera » Tue Apr 21, 2009 4:00 pm

hey there!
i have the same problem, i activated the qtranslate plugin then i was configurating the languages i need (spanish and japanese) it was working fine... but because of the plugin and the english language selected by default, my wordpress was in english (before that was in spanish) so i activated the spanish language, everything fine until that, when i selected spanish in the left side the error appear T_T
now when i deactivate qtranslate everything is back to normal, i activate it and again, please help!!

and sorry for my english jaja
anhera
 
Posts: 2
Joined: Tue Apr 21, 2009 3:41 pm

Re: Unable to login after admin language change

Postby anhera » Tue Apr 21, 2009 4:46 pm

i've found the solution in another blog :D
for the poor people with this problem:
- go to http://api.wordpress.org/secret-key/1.1/
- copy the generated keys in wp-config.php
define('AUTH_KEY',
define('SECURE_AUTH_KEY',
define('LOGGED_IN_KEY',
define('NONCE_KEY',
and that's it, after this it works with any plugin n_n
have a niiiiiiiiiiice day :mrgreen:
anhera
 
Posts: 2
Joined: Tue Apr 21, 2009 3:41 pm

Re: Unable to login after admin language change

Postby Tim » Tue Aug 18, 2009 2:38 pm

Hey there!

I still have the same Problem and both solutions on top do not work : -(.
We dont' t find this de_DE.php file to compare it with the Key in the Config.php.
In our language Folder there are olny de_DE.mo and de_DE.po files.

The english login part works perfekt but our german login do nothing.

For any help we would be very happy!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Greetz

Tim
Tim
 
Posts: 2
Joined: Tue Aug 18, 2009 2:30 pm

Re: Unable to login after admin language change

Postby Graveto » Wed Aug 19, 2009 10:59 am

Hi,

I've the same problem. Login works only in the defalult language. And I dont have php-files in my languages folder. Only *.mo and *.po.
Hope someone can help or post some Links to other threads about this problem. Can't find them.

Thx,
Graveto
Graveto
 
Posts: 2
Joined: Wed Aug 19, 2009 10:54 am

Re: Unable to login after admin language change

Postby Graveto » Thu Aug 20, 2009 11:50 am

Fixed.
I used the plugin AJAX Login to generate my Login/Logout-Form. After deleting the plugin and generating the form with the following code everthing worked fine.

Code: Select all
<?php
      global $user_ID, $user_identity;
      get_currentuserinfo();
      if (!$user_ID):
    ?>
    <h3><?php _e('Anmelden'); ?></h3>
    <ul>
      <li>
        <form name="loginform" id="loginform" action="<?php echo get_settings('siteurl'); ?>/wp-login.php" method="post">
        <div>
        <label><?php _e('Benutzername') ?>:
            <br />
            <input type="text" name="log" id="log" value="" size="20" tabindex="7" />
        </label>
            <br />
        <label><?php _e('Password') ?>:
            <br />
            <input type="password" name="pwd" id="pwd" value="" size="20" tabindex="8" />
        </label>
            <br />
            <a href="<?php bloginfo('url'); ?>/wp-login.php?action=lostpassword">Passwort vergessen &raquo;</a>
        <br />
            <input type="submit" name="submit" value="Login &raquo;" tabindex="9" id="loginbtn"/>
            <?php wp_register('', ' (Passwort wird zugeschickt)'); ?>
            <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/><br /><br />

        </div>
        </form>
      </li>
    </ul>
    <?php
    else:
    ?>
    <h3><?php echo $user_identity; ?></h3>
    <ul>
    <li><a href="<?php bloginfo('url'); ?>/wp-admin/index.php"><?php _e('Dashboard'); ?></a></li>
    <?php
      global $userdata, $user_identity, $wpdb;
      get_currentuserinfo();
    ?>

    <?php if ($userdata->user_level >= '1') { ?>
    <li><a href="<?php bloginfo('url'); ?>/wp-admin/post-new.php"><?php _e('Artikel verfassen'); ?></a></li>
    <li><a href="<?php bloginfo('url'); ?>/wp-admin/link-add.php"><?php _e('Link hinzuf&#252;gen'); ?></a></li>
    <li><?php if ( is_user_logged_in() ) : ?>
<a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="Logout">Logout</a>
<?php endif; ?></li>
    <?php } else {?>
    <li><?php if ( is_user_logged_in() ) : ?>
<a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="Logout">Logout</a>

<?php endif; ?></li>
    <?php } ?>
    </ul>
    <?php
    endif;
    ?>



Additionaly I did what ivoez suggested.

the file
wp-content/languages/es_ES.php had a "$wp_default_secret_key" phrase in portuguese! while the wp-config.php file had a 'AUTH_KEY'= "put your unique phrase here"
which made the two of those different and that mismatch broke the whole thing.
so just make the phrases the same


Thx.
graveto
Graveto
 
Posts: 2
Joined: Wed Aug 19, 2009 10:54 am

Re: Unable to login after admin language change

Postby bengo » Mon Aug 09, 2010 12:34 am

I still have this problem. I try all. When i write $wp_default_secret_key to xx_xx.php, i haven't accest to admin. When i try last fix, I login, change language and i am logget out. Sorry for english.
bengo
 
Posts: 10
Joined: Sat Jul 31, 2010 9:11 am

Next

Return to qTranslate Support Forum

Who is online

Users browsing this forum: Google Adsense [Bot] and 9 guests