Article ID: 118542, created on Nov 11, 2013, last review on May 9, 2014

  • Applies to:
  • Plesk Automation 11.1

Symptoms

On the attempt to open httpdocs folder in Customer Control Panel > Websites & Domains > File Manager I get "Internal Error".

The /var/log/sw-cp-server/error_log shows the following error:

    (mod_fastcgi.c.2746) FastCGI-stderr: PHP Warning: json_encode(): Invalid UTF-8 sequence in argument; File: /usr/local/psa/admin/plib/Service/Agent/Transport/JsonRpc.php, Line: 446

Cause

The folder you are tying to open includes files that have names with non-UTF symbols.

Resolution

  1. Login to the service node with the subscription in question.

  2. Run the following command to find a file with non-UTF symbols:

    #ls -laR /var/www/vhosts/example.com/httpdocs/ | grep --color='auto' -P -n "[\x80-\xFF]"
    

    The output will show files with non-UTF symbols in the name, for example:

    # ls -laR /var/www/vhosts/example.com/httpdocs/ | grep --color='auto' -P -n "[\x80-\xFF]"
    -rw-r--r--  1 root root    0 Oct 16 22:59 ▒▒▒▒▒y▒}▒u▒▒.▒y▒}▒u▒~▒y
    
  3. Rename these files:

    # mv /var/www/vhosts/example.com/httpdocs/▒▒▒▒▒y▒\}▒u▒▒.▒y▒\}▒u▒~▒y <new file name>
    

Search Words

Invalid UTF-8 sequence in argument

File manager dont list

e0aff7830fa22f92062ee4db78133079 c1ecc6010feff26cb42d1d14a7881dd6 caea8340e2d186a540518d08602aa065

Email subscription for changes to this article
Save as PDF