• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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