Can not create subscription using non-english language

Refers to:

  • Plesk 11.5 for Linux

Created:

2016-11-16 13:10:35 UTC

Modified:

2016-12-21 20:07:15 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Can not create subscription using non-english language

Symptoms

When subscription created under reseller using non-english language or after you have created a new locale or customised existing one. The following error appears in Plesk GUI:

Internal error.
{"redirect":"\\/subscription\\/edit\\/id\\/1609\\/?redirect=%2Fsubscription%2Flist","status":"success","statusMessages":[]}

If use English locale then no errors appear in GUI.

Cause

When a .php file is saved in UTF-8 format with the UTF-8 BOM (Byte Order Mark) as the first three bytes of the file (EF BB BF), PHP doesn't ignore these bytes when loading and compiling the file. But instead considers them output coming prior to the <?php .

Resolution

Remove BOM (Byte Order Mark) from Plesk locale files

# for i in ` grep -rl $'\\xEF\\xBB\\xBF' /usr/local/psa/admin/smb/`;do sed -i '1 s/^\\xef\\xbb\\xbf//' $i;
Have more questions? Submit a request
Please sign in to leave a comment.