I’m seeing the exact same error with woocommerce subscriptions.
`
2019-11-17 00:51:42 +0000
action created
2019-12-17 00:52:35 +0000
action started
2019-12-17 00:52:41 +0000
unexpected shutdown: PHP Fatal error Uncaught Error: Call to a member function get() on null in /home/s1/html/wp-content/plugins/pixel-caffeine/includes/supports/class-aepc-woocommerce-addon-support.php:183 Stack trace: #0 /home/s1/html/wp-content/plugins/pixel-caffeine/includes/supports/class-aepc-woocommerce-addon-support.php(533): AEPC_Woocommerce_Addon_Support->get_session_user_id() #1 /home/s1/html/wp-content/plugins/pixel-caffeine/includes/supports/class-aepc-woocommerce-addon-support.php(542): AEPC_Woocommerce_Addon_Support->get_queue_transient_name(”) #2 /home/s1/html/wp-content/plugins/pixel-caffeine/includes/supports/class-aepc-woocommerce-addon-support.php(161): AEPC_Woocommerce_Addon_Support->get_purchase_queue(”) #3 /home/s1/html/wp-includes/class-wp-hook.php(286): AEPC_Woocommerce_Addon_Support->register_purchase_event(90706) #4 /home/s1/html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #5 /home/s1/html/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #6 /home/s1/html/wp-content/plugins/woocommerc in /home/s1/html/wp-content/plugins/pixel-caffeine/includes/supports/class-aepc-woocommerce-addon-support.php on line 183
`
Not sure it’ll fix it, but as a bandaid fix I am going to try commenting out the last two add_actions in the setup function in class-aepc-woocommerce-addon-support.php:73-89
/**
* Method where set all necessary hooks launched from 'init' action
*/
public function setup() {
// Hooks when pixel is enabled.
if ( version_compare( WC()->version, '3.3', '<' ) ) {
add_filter( 'woocommerce_params', array( $this, 'add_currency_param' ) );
} else {
add_filter( 'woocommerce_get_script_data', array( $this, 'add_currency_param' ), 10, 2 );
}
add_action( 'woocommerce_after_shop_loop_item', array( $this, 'add_content_category_meta' ), 99 );
add_action( 'woocommerce_registration_redirect', array( $this, 'save_registration_data' ), 5 );
add_action( 'wp_footer', array( $this, 'register_add_to_cart_params' ), 10 );
add_action( 'wp_footer', array( $this, 'register_add_payment_info_params' ), 10 );
// add_action( 'woocommerce_checkout_order_processed', array( $this, 'register_user_id' ), 10, 3 );
// add_action( 'woocommerce_payment_complete', array( $this, 'register_purchase_event' ) );
}
-
This reply was modified 5 years, 3 months ago by
Jon Brown.