Symptoms
-
Unable to login to Plesk with the error:
Server Error
500
Session_Exception
Unable to set up default locale: default locale does not exist or undefined.
Type Session_Exception
Message Unable to set up default locale: default locale does not exist or undefined.
File Panel.php
Line 72 -
Variable names are shown instead of human-readable output in Command Prompt commands, e.g:
plesk bin server_pref --locales-list
cu_servpref__locales_available
Cause
Corrupted locale files.
Resolution
-
Connect to the server via RDP.
-
Download the latest version of package
plesk-locale-base-en-US.msi
from the Windows repository:2.1. Select the directory of the latest Plesk version listed.
2.2. Open thedist-windows/
directory and download the locale file. -
Make a backup of
%plesk_dir%adminapplication
and%plesk_dir%adminplib
directories. -
Create a temporary directory for the extraction of the package (e.g.:
C:locales
) -
Open the Command Prompt and extract the downloaded package into the temporary directory using the following commands:
cd C:UsersAdministratorDownloads
msiexec /a "plesk-locale-base-en-US.msi" /qb targetdir=C:locales
Note: Replace the download and extraction temporary paths accordingly if differs from the above ones.
-
Copy the extracted files and directories from
C:locales
to%plesk_dir%adminapplication
and%plesk_dir%adminplib
, replacing old data. -
Reinstall any missing Plesk components running the following CMD command:
plesk installer update