Symptoms
-
The WordPress instance is marked as broken in Plesk > WordPress > example.com. The error is
ERR [extension/wp-toolkit] Failed to reset cache for the instance #1, reason:
Warning: require_once(): open_basedir restriction in effect. File(C:Program Files (x86)PleskAdditionalmoduleswp-toolkitwp-clivendorwp-cliwp-cliphpboot-fs.php) is not within the allowed path(s): (C:/Inetpub/vhosts/example.com;C:WindowsTemp) in C:Program Files (x86)PleskAdditionalmoduleswp-toolkitwp-cliwpt-wp-cli.php on line 31Warning: require_once(C:Program Files (x86)PleskAdditionalmoduleswp-toolkitwp-clivendorwp-cliwp-cliphpboot-fs.php): Failed to open stream: Operation not permitted in C:Program Files (x86)PleskAdditionalmoduleswp-toolkitwp-cliwpt-wp-cli.php on line 31
Fatal error: Uncaught Error: Failed opening required 'C:Program Files (x86)PleskAdditionalmoduleswp-toolkitwp-cli/vendor/wp-cli/wp-cli/php/boot-fs.php' (include_path='.;.includes;.pear') in C:Program Files (x86)PleskAdditionalmoduleswp-toolkitwp-cliwpt-wp-cli.php:31
Stack trace:
#0 {main}
thrown in C:Program Files (x86)PleskAdditionalmoduleswp-toolkitwp-cliwpt-wp-cli.php on line 31 - It's not possible to install WordPress with the same error.
Cause
Product issue:
-
#EXTWPTOOLK-9045 "WordPress can now be installed if PHP 8.1 is used."
Fixed in:- WP Toolkit 5.10.2 15 April 2022 (Windows)
Resolution
Workaround
If update is not possible for some reason you may try the following
workaround
As a Workaround:
- Log into Plesk.
- Switch PHP version from 8.1. to 8.0 in Domains > example.com > PHP Settings and apply changes.
- Go back to WP Toolkit > example.com > Refresh WordPress Instance.