WP CLI Parse Error
-
WebsThatRock
(@websthatrock)
2 days ago
Hello, using CLI PHP version PHP 7.3.33 and WooCommerce version 8.22 and tested again on version 8.6.1 when trying to run the CLI I get these error messages. Is this a bug that needs to be reported? Do I need CLI to use version PHP 7.4?
Michael
When testing with WooCommerce 8.22 I get this error.
Parse error: syntax error, unexpected ‘?’, expecting function (T_FUNCTION) or const (T_CONST) in /home/mtgshopp/public_html/wp-content/plugins/wp-all-import-pro/addon-api/classes/helpers.php on line 241
Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.
[mtgshopp@cloud-9dc319 pub
When testing with WooCommerce 8.6.1 I get this error.
arning: class_implements(): Class Automattic\WooCommerce\Internal\TransientFiles\TransientFilesEngine does not exist and could not be loaded in /home/mtgshopp/public_html/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/AbstractInterfaceServiceProvider.php on line 34
Parse error: syntax error, unexpected ‘LegacyProxy’ (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /home/mtgshopp/public_html/wp-content/plugins/woocommerce/src/Internal/TransientFiles/TransientFilesEngine.php on line 48
Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.
WebsThatRock
(@websthatrock)
2 days ago
I just had the host upgrade the PHP to 7.4 for the CLI and it received the same error.
- The topic ‘WP CLI Parse Error’ is closed to new replies.