Articles in this section

An issue with the FTP user creation: Internal error Failed to load tree data.

kb: bug Plesk for Windows Plesk for Linux

Applicable to:

  • Plesk for Linux
    • Plesk for Windows

Symptoms

  • The following error is shown when attempting to create an additional FTP user via Plesk > Domains > example.com > Dashboard > FTP > click on a directory icon:

    PLESK_ERROR: Internal error
    Failed to load tree data.

  • Enabling debug with SQL queries shows that Plesk attempts to use an ID of another domain in plesk panel logs (/var/log/sw-cp-server/error_log or %plesk_dir%admin\logs\php_error.log):

    CONFIG_TEXT: DEBUG [dbquery] [748] SQL: SELECT domains.* FROM domains WHERE (id = 191)
    DEBUG [dbquery] [748] END: 0.00014 sec
    DEBUG [dbquery] [749] SQL: SELECT domains.* FROM domains WHERE (id = 191)

  • The ID of a domain in question is different:

    # plesk db "select id from domains where name='example.com';"
    130

    PS plesk db "select id from domains where name='example.com';"
    130

Cause

This is bug #PPPM-14790.

Resolution

Until the bug is fixed use the following workaround:

Click on a section to expand

For Linux

1. Download the file attached to this article;

# wget https://support.plesk.com/hc/en-us/article_attachments/29556710222359 -O FtpUser.php

2. Log into Plesk;

3. Go to Domains > example.com > Files and upload this file;

4. Then, log into the server via SSH;

5. Create a backup of /usr/local/psa/admin/plib/Smb/Form/Final/FtpUser.php file just in case:

# mv /usr/local/psa/admin/plib/Smb/Form/Final/FtpUser.php /usr/local/psa/admin/plib/Smb/Form/Final/FtpUser.php.back

6. Move the patched file to the same location from your files:

# mv /var/www/vhosts/example.com/httpdocs/FtpUser.php /usr/local/psa/admin/plib/Smb/Form/Final/

NOTE: it is needed to replace example.com with an existing domain in Plesk.

For Windows

1. Connect to the server via RDP;

2. Download the file attached to this article;

3. Open Files and proceed to C:\Program Files (x86)\Plesk\admin\plib\Smb\Form\Final\;

4. Create a backup of FtpUser.php file by renaming it to FtpUser.php.back extension just in case;

5. Place the downloaded file in the C:\Program Files (x86)\Plesk\admin\plib\Smb\Form\Final\ location.

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.