"Unable to get default language..." How do I fix it?

Refers to:

  • Plesk 10.x and below for Windows

Created:

2016-11-16 13:02:08 UTC

Modified:

2016-12-21 19:48:05 UTC

0

Was this article helpful?


Have more questions?

Submit a request

"Unable to get default language..." How do I fix it?

Resolution

The error like as following one occurs in Plesk

/clients/cl_new.php3: Unable to get default language., in on line , plesk_errormsg=,
php_errormsg=Cannot modify header information - headers already sent by (output started at /usr/local/psa/admin/plib/locale/messages_de.php3:2091)

Cause

This error can appear due to the fact that:

  1. Locale is absent from from psa.locales list
  2. Incorrect value is set in psa.misc table with param='def_locale' .

Resolution

  1. Ensure that required locale is defined in psa.locales

    # MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin psa -Ne "select * from locales where id='en-US';"
    • If the output is empty, then
      # MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin psa -Ne "insert into locales values ('en-US','true')";
  2. Set locale as default:

    # MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin psa -e "update misc set val='en-US' where param='def_locale';"
Have more questions? Submit a request
Please sign in to leave a comment.