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
.* FROMdomains
WHERE (id
= 191)
DEBUG [dbquery] [748] END: 0.00014 sec
DEBUG [dbquery] [749] SQL: SELECTdomains
.* FROMdomains
WHERE (id
= 191) - The ID of a domain in question is different:
# plesk db "select id from domains where name='example.com';"
130PS 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
1. Download the file attached to this article;
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.
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.
Comments
0 comments
Please sign in to leave a comment.