Replies: 7
We found an issue with Autoship Cloud 2.6.5 and WooPayments.
- Install and activate WooPayments.
- Ensure that WooCommerce Subscriptions is not installed.
- Install and activate Autoship Cloud 2.6.5.
This produces the following critical error:
Fatal error: Uncaught Error: Access to undeclared static property WC_Subscriptions::$version in /srv/htdocs/wp-content/plugins/woocommerce-payments/includes/compat/subscriptions/trait-wc-payments-subscriptions-utilities.php:119
Stack trace:
#0 /srv/htdocs/wp-content/plugins/woocommerce-payments/includes/compat/subscriptions/trait-wc-payments-subscriptions-utilities.php(26): WC_Payment_Gateway_WCPay->get_subscriptions_plugin_version()
#1 /srv/htdocs/wp-content/plugins/woocommerce-payments/includes/compat/subscriptions/trait-wc-payment-gateway-wcpay-subscriptions.php(118): WC_Payment_Gateway_WCPay->is_subscriptions_enabled()
#2 /srv/htdocs/wp-content/plugins/woocommerce-payments/includes/class-wc-payment-gateway-wcpay.php(527): WC_Payment_Gateway_WCPay->maybe_init_subscriptions()
#3 /srv/htdocs/wp-content/plugins/woocommerce-payments/includes/class-wc-payments.php(558): WC_Payment_Gateway_WCPay->__construct(Object(WC_Payments_API_Client), Object(WC_Payments_Account), Object(WC_Payments_Customer_Service), Object(WC_Payments_Token_Service), Object(WC_Payments_Action_Scheduler_Service), Object(WCPay\Payment_Methods\CC_Payment_Method), Array, Object(WCPay\Session_Rate_Limiter), Object(WC_Payments_Order_Service), Object(WCPay\Duplicate_Payment_Prevention_Service), Object(WC_Payments_Localization_Service), Object(WC_Payments_Fraud_Service), Object(WCPay\Duplicates_Detection_Service))
#4 /srv/htdocs/wp-content/plugins/woocommerce-payments/woocommerce-payments.php(152): WC_Payments::init()
#5 /wordpress/core/6.6.1/wp-includes/class-wp-hook.php(324): wcpay_init('')
#6 /wordpress/core/6.6.1/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#7 /wordpress/core/6.6.1/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#8 /wordpress/core/6.6.1/wp-settings.php(555): do_action('plugins_loaded')
#9 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1374): require('/wordpress/core...')
#10 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1293): WP_CLI\Runner->load_wordpress()
#11 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
#12 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/bootstrap.php(83): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
#13 phar:///usr/local/bin/wp-cli/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap()
#14 phar:///usr/local/bin/wp-cli/php/boot-phar.php(20): include('phar:///usr/loc...')
#15 /usr/local/bin/wp-cli(4): include('phar:///usr/loc...')
#16 {main}
thrown in /srv/htdocs/wp-content/plugins/woocommerce-payments/includes/compat/subscriptions/trait-wc-payments-subscriptions-utilities.php on line 119
It is suspected that this is because of some of the changes introduced in https://plugins.trac.wordpress.org/browser/autoship-cloud/trunk/src/products.php that can cause issues when WooCommerce Subscriptions isn’t active.