Symptoms
Unable to remove WordPress instances via Domains > example.com > Applications > Remove:
Permission Denied
Page just reloads with no errors
In some cases, the process finishes with the message below, but the WordPress instance is still shown:
{"status":"success"}
The following error can be observed with debug enabled in
%plesk_dir%adminlogsphp_error.log:2019-06-19 21:45:55] ERR [extension/wp-toolkit] An error occurred when dispatching action 'removeAction': Permission denied
[2019-06-19 21:45:55] DEBUG [extension/wp-toolkit] pm_Exception: Permission denied
file: C:Program Files (x86)ParallelsPleskadminplibmoduleswp-toolkitlibraryControllerAction.phpAttempts to remove the instance return
{"status":"success"}on a blank page in a browser
Cause
This issue is reported as bug ID EXTWPTOOLK-3043 which will be fixed in future updates.
Resolution
Until the issue is resolved, the following workaround can be applied:
When the instance is shown in WP Toolkit
- Log into Plesk.
- Remove instance via WP Toolkit
When the instance is not shown in WP Toolkit
Connect to the server via SSH
Run the following command to find the ID of the instance:
# plesk ext wp-toolkit --list |grep example.com |awk {'print $1"t"$7'}
365 http://example.com/oldRemove the instance with the following command. Use the ID from step 2. as value after
-instance-id:# plesk ext wp-toolkit --detach -instance-id 365
Remove the WordPress related files of the removed instance in the file system