Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Not compatible with custom WooCommerce session handlers

$
0
0

Replies: 0

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 if WC_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.


Viewing all articles
Browse latest Browse all 59525

Trending Articles