Unable to set up default locale: default locale does not exist or undefined

Created:

2016-11-16 12:45:57 UTC

Modified:

2017-02-13 06:13:54 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to set up default locale: default locale does not exist or undefined

For Linux version of KB see this article .

Symptoms

Plesk which runs under Windows OS shows the following error when upon logging in:

ERROR: Session_Exception: Unable to set up default locale: default locale does not exist or undefined. (Session.php:113)

Cause

The most possible reason is absent locale or locales folders in:

C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\plib\\Locale

Resolution

  1. Make sure that Plesk Administrator user is a member of Administrators security group. If it is not, add it to the group and restart Plesk Control Panel service.

  2. Make sure that folders with name locale exist:

    C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\plib>dir *local*

    Directory of C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\plib
    16/07/2013 21:29 <DIR> Locale
    15/07/2013 13:05 3,663 LocaleDebug.php
    13/06/2013 19:31 <DIR> locales
  3. If folder is absent, extract 'locale' folder from plesk.msi (in C:\\ParallelsInstaller\\parallels\\PANEL-WIN_<plesk_version>\\dist-msi-Microsoft-2003-i386 ) to some temporary folder like below:

    msiexec /a f:\\plesk.msi /qb TARGETDIR=c:\  mp
  4. Copy the missing file or folder from C:\ mp

  5. Make sure that table with name locales exists in Plesk database:

    "%plesk_bin%"\\dbclient --direct-sql --sql="select * from locales"
    id active
    de-DE true
    en-US true
    es-ES true
    fr-FR true
    it-IT true
    ja-JP true
    ko-KR true
    nl-NL true
    pl-PL true
    pt-BR true
    ru-RU true
    zh-CN true
    zh-TW true
  6. Default locale is set:

    "%plesk_bin%"\\dbclient --direct-sql --sql="select * from misc where param like '%local%'"

    param val
    admin_locale en-US
    def_locale en-US
    1. If the above did not help, replace the content of C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\plib\\locales\\en-US with one from a test environment.
Have more questions? Submit a request
Please sign in to leave a comment.