{"id":17494416,"date":"2024-03-12T16:34:58","date_gmt":"2024-03-12T16:34:58","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/wp-cli-parse-error\/"},"modified":"2024-03-13T21:33:53","modified_gmt":"2024-03-13T21:33:53","slug":"wp-cli-parse-error","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/wp-cli-parse-error\/","title":{"rendered":"WP CLI Parse Error"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/wordpress.org\/support\/users\/websthatrock\/\">WebsThatRock<\/a>&nbsp;<br \/><br \/>(@websthatrock)<br \/><br \/><a href=\"https:\/\/wordpress.org\/support\/topic\/wp-cli-syntax-errors-in-source-code\/#post-17488315\">2 days ago<\/a><br \/><br \/>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?<br \/><br \/>Michael<br \/><br \/>When testing with WooCommerce 8.22 I get this error.<br \/><br \/>Parse error: syntax error, unexpected \u2018?\u2019, 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<br \/>Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.<br \/>[mtgshopp@cloud-9dc319 pub<br \/><br \/>When testing with WooCommerce 8.6.1 I get this error.<br \/><br \/>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<br \/>Parse error: syntax error, unexpected \u2018LegacyProxy\u2019 (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<br \/>Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.<br \/><br \/><a href=\"https:\/\/wordpress.org\/support\/users\/websthatrock\/\">WebsThatRock<\/a>&nbsp;<br \/><br \/>(@websthatrock)<br \/><br \/><a href=\"https:\/\/wordpress.org\/support\/topic\/wp-cli-syntax-errors-in-source-code\/#post-17488407\">2 days ago<\/a><br \/><br \/>I just had the host upgrade the PHP to 7.4 for the CLI and it received the same error.<\/p>\n","protected":false},"template":"","class_list":["post-17494416","topic","type-topic","status-publish","hentry","topic-tag-transients","topic-tag-wp-cli"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17494416","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17494416\/revisions"}],"predecessor-version":[{"id":17498567,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17494416\/revisions\/17498567"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=17494416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}