Thanks for the response. There was a single file in that directory: cache-root.json
I deleted the file, and then clicked on Find Instances. WP workbench find the instances, but I still have the same error when I return to the dashboard. Thanks
Can you check the ~/logs directory for any error messages for each domain? The log files are in ~/logs/wp_cli_log or ~/logs/wp_debug_log (if that file exists).
I suspect one of the plugins or themes is emitting compressed or other binary output during WP-CLI execution, and WP Workbench is then surfacing that bad output somehow.
And, could you also run the following as the domain owner and paste the output for all domains (or a broken one only if you manage to find one)?
cd ~
~/bin/wp --path=public_html option get siteurl
~/bin/wp --path=public_html option get siteurl 2>&1 | hexdump -C | head -40
Then run the same command with plugins and themes skipped:
cd ~
~/bin/wp --path=public_html option get siteurl --skip-plugins --skip-themes
~/bin/wp --path=public_html option get siteurl --skip-plugins --skip-themes 2>&1 | hexdump -C | head -40
Here are the results:
wp_cli_log shows the following:
PHP Warning: Attempt to read property "ID" on false in phar:///home/xxxx/bin/wp/vendor/wp-cli/eval-command/src/Eval_Command.php(39) : eval()'d code on line 1
Warning: Attempt to read property "ID" on false in phar:///home/xxxx/bin/wp/vendor/wp-cli/eval-command/src/Eval_Command.php(39) : eval()'d code on line 1
Error: Failed to get latest version (HTTP code 403).
xxxx@server:~$ ~/bin/wp --path=public_html option get siteurl
https://gren...com
xxxx@server:~$ ~/bin/wp --path=public_html option get siteurl 2>&1 | hexdump -C | head -40
00000000 68 74 74 70 73 3a 2f 2f 67 72 65 6e 61 64 61 68 |https://gren...|
00000010 6f 75 73 74 6f 6e 61 73 73 6f 63 69 61 74 69 6f |xxxxxxxxxxxx|
00000020 6e 2e 6f 72 67 0a |n.com.|
00000026
Did you set up those WordPress sites through Virtualmin, or were they already installed? If they existed before, did you use the “Import Instances” option in the WP Workbench Manager?
Also, which WP-CLI version are those domains running?
Can you send me this WordPress website along with its database in DM? I’d like to take a closer look at what was going on to make WP Workbench more resilient.