Not compatible with custom WooCommerce session handlers
-
This plugin does not support the use of custom WooCommerce session handlers.
I have users wanting to use this plugin with my plugin CoCart which uses a custom session handler but there is an issue with this file in your plugin that is preventing compatibility.
TypeError: Argument 2 passed to WPDesk\FS\TableRate\FreeShipping\FreeShippingNotice::__construct() must be an instance of WC_Session, instance of CoCart_Session_Handler given, called in C:\Users\Sebastien\Local Sites\cocart-dev\app\public\wp-content\plugins\flexible-shipping\classes\class-flexible-shipping-plugin.php on line 501 in file C:\Users\Sebastien\Local Sites\cocart-dev\app\public\wp-content\plugins\flexible-shipping\src\WPDesk\FS\TableRate\FreeShipping\FreeShippingNotice.php on line 45
I don’t know why the class names are specified in the
__construct()
but ifWC_Session
is removed like so it works fine.public function __construct( WC_Cart $cart, $session, WP $wp ) {
Please can you provide a patch asap.
Thank you.
- The topic ‘Not compatible with custom WooCommerce session handlers’ is closed to new replies.