Autologout disabled, locale.module enabled (no i18n), enabled "it" and "en", default language "it"
Language switcher block is enabled for user 1, so that administration can be carried out in English.

Enable Autologout. Can't switch language anymore. E.g.: en/admin is redirected to admin
(that is the default "it" language)

Disabling Autologout brings things back to normal.

Comments

translector’s picture

I can confirm the above bug report...

Cheers.

drupaul.z’s picture

I did not see this issue.
It is the same problem with http://drupal.org/node/668996.
please merge them to one issue.

mauriziopinotti’s picture

the "boot" hook MUST NOT call drupal_init_language():

--- sites/all/modules/autologout/autologout.module.orig	2009-12-28 14:58:21.000000000 +0100
+++ sites/all/modules/autologout/autologout.module	2009-12-28 15:02:01.000000000 +0100
@@ -193,7 +193,6 @@
  */
 function autologout_boot() {
   include_once('includes/common.inc');
-  drupal_init_language();
   global $user;
   if ($user->uid < 2 || _autologout_by_role()) {
     _autologout_debug("  block doesn't apply");
jvandervort’s picture

Status: Active » Fixed

Fixed in the dev snapshot, please give it a test.

skizzo’s picture

I don't see the the reported error any more with current 6.x-2.x dev version.
I am now switching back to 6.x-2.3 while waiting for next official release.
Thank you!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.