[#9507] Fatal error changing the language
Summary Fatal error changing the language
Queue Horde Base
Queue Version Git master
Type Bug
State Resolved
Priority 2. Medium
Owners slusarz@horde.org
Requester jan@horde.org
Created 2011-01-12 (3466 days ago)
Updated 2011-01-24 (3454 days ago)
Assigned 2011-01-14 (3464 days ago)
Resolved 2011-01-24 (3454 days ago)
Patch No

Jan Schneider <jan@horde.org> 2011-01-12 11:08:18
When changing the language preference, I get:

User is not authorized

1. Horde_Core_Prefs_Ui->handleForm() 
2. Horde_Core_Prefs_Ui->_handleForm() 
3. Horde_Registry->callAppMethod() 
4. call_user_func_array() 
5. Horde_Application->prefsCallback()
6. Horde_Prefs_Ui->prefsCallback() 
7. Horde_Registry->callAppMethod() 
8. Horde_Registry->pushApp() 

Git Commit <commits@lists.horde.org> 2011-01-12 19:10:45
Changes have been made in Git for this ticket:

Bug #9507: Only do language change callback to authenticated apps


Michael Slusarz <slusarz@horde.org> 2011-01-12 19:13:52
Sounds like the change language callback is trying to be run on a n 
application that is not authenticated to (e.g. imp).  This should be 

Although this raises a question: is the changeLanguage API call 
designed to potentially alter all stored data for an application (e.g. 
in persistent storage)?  Or is it understood to only be useful for 
changing the language for any data created for use in the current 

Jan Schneider <jan@horde.org> 2011-01-12 22:03:54
Good question. It was added for in-session changes. One could 
theoretically use it for persistant storage too, but I haven't come 
across such a need yet.

Git Commit <commits@lists.horde.org> 2011-01-13 19:12:48
Changes have been made in Git for this ticket:

Ticket #9507: Clarify changeLanguage() behavior


Michael Slusarz <slusarz@horde.org> 2011-01-13 19:13:45
Dealing with authentication to non-auth'd apps would be a very large 
undertaking.  The simpler solution for now is clearly indicating the 
method's behavior in the API documentation.

Jan Schneider <jan@horde.org> 2011-01-14 12:53:12
I don't get that error any more, but translations don't work anymore 
either. :)

Michael Slusarz <slusarz@horde.org> 2011-01-14 18:32:53
> I don't get that error any more, but translations don't work anymore 
> either. :)

I don't see this.  Changing the language works for me.  i.e. Default 
(English) -> Deutsch gets me German.  Changing from German -> English 
changes back.  Changing from German ->Default does nothing (it remains 
German), but that is expected.

Jan Schneider <jan@horde.org> 2011-01-22 17:10:13
The problem is that the language selected at the login screen takes 
precedence over the preference value now.

Git Commit <commits@lists.horde.org> 2011-01-24 23:44:23
Changes have been made in Git for this ticket:

Bug #9507: Pref language overrides login language