• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Cloning WordPress instance failed - Failed to reset cache for the instance

Christopher-James

Basic Pleskian
Server operating system version
CentOS Linux 7.9.2009 (Core)
Plesk version and microupdate number
Plesk Obsidian 18.0.51
Ive had this multiple times, ive searched all the forums with no resolution.

Clearing the cache with
Code:
plesk ext wp-toolkit --clear-cache -instance-id 9
just returns the following error
Code:
Failed to reset cache for the instance #9, reason: An error has occurred when decoding JSON: Decoding failed: Syntax error
Failed to reset cache for the instance #9: An error has occurred when decoding JSON: Decoding failed: Syntax error
exit status 3

All I'm trying to do is clone an instance

I need help

This is the error i see in the log files
Code:
Long task executor: id=14245 completed with error: Failed to reset cache for the instance #9: An error has occurred when decoding JSON: Decoding failed: Syntax error:
0: /usr/local/psa/admin/plib/Task/Async/Executor.php:46
    Task_Async_Executor->execute()
1: /usr/local/psa/admin/plib/scripts/task-async-executor.php:6

Failed to reset cache for the instance #9: An error has occurred when decoding JSON: Decoding failed: Syntax error
 
How to find out the plugin or theme:

1) Change current dir to website document root:
# cd /var/www/vhosts/example.com/httpdocs/

2) Download official WP-CLI from Wordpress: WP-CLI | WP-CLI

3) Run command on behalf of system user and using PHP version from domain use "theme list" or "plugin list" depending on what you want to check:
# sudo -u example /opt/plesk/php/7.4/bin/php ./wp-cli.phar theme list --fields=name --format=json

4) If any html code output except JSON body like below returned this means you have buggy plugin/theme, for example:
[{"name":"flatsome"},{"name":"twentytwenty"}]

or open a support ticket and ask for assistance:
 
Back
Top