PHP versions WP CLI, WooCommerce, and Scalability Pro

Michael R. asked 1 month 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? I tried PHP 7.4 and received the same errors.MichaelWhen 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 241Error: 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 pubWhen 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 34Parse 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 48Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.
Michael R. replied 1 month ago

I finally got this solved. It turned out the PHP version of cli on the server was less than 7.4 and when it was changed to 7.4 everything imported fine via cli.

1 Answers
Dave Hilditch Staff answered 1 month ago

Parse error: syntax error, unexpected ‘?’

This sounds like you have added a function called ? inside one of your import fields.

With WP All Import, whatever you put inside [square brackets] will be considered a function call so probably you have [?] somewhere in your import field mappings?

Your Answer


Super Speedy Plugins
Logo