• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

plesk error on login page

R

Roosta21

Guest
I have just got this message from plesk login page...

any clues


ERROR: PleskFatalException
Unable to create Session object: Unable to set up default locale: default locale does not exist or undefined.

0: /usr/local/psa/admin/plib/common_func.php3:155
psaerror(string 'Unable to create Session object: Unable to set up default locale: default locale does not exist or undefined.')
1: /usr/local/psa/admin/auto_prepend/auth.php3:158
 
Hi,

check what default locale is installed:
mysql -uadmin -p`head /etc/psa/.psa.shadow` -D psa -e "select * from locales;";

and set it to English:

mysql -uadmin -p`head /etc/psa/.psa.shadow` -D psa -e "insert into locales(id, lang) values('en', 'English');";
 
Hi

I typed this line

mysql -uadmin -p`head /etc/psa/.psa.shadow` -D psa -e "select * from locales;";

and it returned

+-------+--------+
| id | active |
+-------+--------+
| de-DE | true |
| en-US | true |
| fr-FR | true |
+-------+--------+

mysql -uadmin -p`head /etc/psa/.psa.shadow` -D psa -e "insert into locales(id, lang) values('en', 'English');";

and returned

ERROR 1054 (42S22) at line 1: Unknown column 'lang' in 'field list'

(im not good with using mysql on the command line)
 
Originally posted by Roosta21
I have just got this message from plesk login page...

any clues


ERROR: PleskFatalException
Unable to create Session object: Unable to set up default locale: default locale does not exist or undefined.

0: /usr/local/psa/admin/plib/common_func.php3:155
psaerror(string 'Unable to create Session object: Unable to set up default locale: default locale does not exist or undefined.')
1: /usr/local/psa/admin/auto_prepend/auth.php3:158

Please try the following command:

mysql> update misc set val='en-US' where param='def_locale';

or this one (if the previous one fails):

mysql> insert into misc values ('def_locale','en-US');

Based on content of psa.locales from your latest e-mail, this should resolve the problem.

./anb
 
Back
Top