Symptoms
-
WordPress plugin fails to be updated via WordPress > Example.com > Plugins:
PLESK_ERROR: Failed to update selected items.
Passed ‘exception’ value must be an Exception object -
With enabled Plesk debug, the following error can be found in
/var/log/plesk/panel.log
:trace: #0 /usr/local/psa/admin/plib/modules/wp-toolkit/library/Service/Logger/ContextValueStringifyDecorator.php(43): PleskExtWpToolkitApplicationPleskPleskLogger->log(string 'error', string 'Failed to retrieve report data: {exception}', array)
#1 /usr/local/psa/admin/plib/vendor/psr/log/Psr/Log/LoggerTrait.php(70): PleskExtWpToolkitServiceLoggerContextValueStringifyDecorator->log(string 'error', string 'Failed to retrieve report data: {exception}', array)
#2 /usr/local/psa/admin/plib/modules/wp-toolkit/library/Statistics/ReportBuilder/ReportBuilderHelper.php(26): PleskExtWpToolkitServiceLoggerContextValueStringifyDecorator->error(string 'Failed to retrieve report data: {exception}', array)
Cause
Product issue:
-
#EXTWPTOOLK-6445 "Updates no longer fail to be installed on sites with more than 30 plugins and themes."
Fixed in:- WP Toolkit 5.3.2 17 February 2021
Resolution
Please consider updating your server:
Workaround
Perform the upgrade of Plesk WP Toolkit extension How to manage Plesk extensions (install, disable, remove, update)
If the upgrade is not possible for whatever reason consider the following workaround
Update plugins via the command line interface:Â
- Connect to the server via SSH / RDP
- Determine instance ID:
# plesk ext wp-toolkit –list
For example here instance ID is 101:
# plesk ext wp-toolkit –list
ID Main Domain ID Main Domain’s Path Owner ID Alive Site URL Name Version
. . .
101 26 /httpdocs 1 true https://example.com My CMS 4.9.5 - Execute the following:
# plesk ext wp-toolkit –wp-cli -instance-id 101 — plugin update <plugin name>