Hey
We have fixed this issue.
You can download the updated package with the fix from here:
https://github.com/retainful/woocommerce/releases/download/2.5.8/retainful-wordpress.zip
Instructions:
1. Please remove the existing plugin
2. Install the above pack and activate it
This should fix the issue.
The fix will be included in the upcoming release.
Feel free to reach out to us if you have any further issues.
Thanks
Team Retainful
Thank you, I’ve already updated the plugin and so far it’s working fine.
Hello, I activated the check payments option in woocommerce and started having problems with the plugin again. Here are the details from my debug log:
PHP Fatal error: Uncaught TypeError: method_exists(): Argument
#1 ($object_or_class) must be of type object|string, int given in /plugins/retainful-next-order-coupon-for-woocommerce/src/WcFunctions.php:396
Stack trace:
#0 /plugins/retainful-next-order-coupon-for-woocommerce/src/WcFunctions.php(396): method_exists(3742, 'add_order_note')
#1 /plugins/retainful-next-order-coupon-for-woocommerce/src/Api/AbandonedCart/RestApi.php(447): Rnoc\Retainful\WcFunctions->setOrderNote(3742, 'Order recovered...')
#2 /plugins/retainful-next-order-coupon-for-woocommerce/src/Api/AbandonedCart/Order.php(148): Rnoc\Retainful\Api\AbandonedCart\RestApi->markOrderAsRecovered(3742)
#3 /plugins/retainful-next-order-coupon-for-woocommerce/src/Api/AbandonedCart/Order.php(217): Rnoc\Retainful\Api\AbandonedCart\Order->getCompletedAt(Object(Automattic\WooCommerce\Admin\Overrides\Order))
#4 /wp-content/plugins/retainful-next-order-coupon-for-woocommerce/src/Api/AbandonedCart/Checkout.php(130): Rnoc\Retainful\Api\AbandonedCart\Order->getOrderData(Object(Automattic\WooCommerce\Admin\Overrides\Order))
#5 /plugins/retainful-next-order-coupon-for-woocommerce/src/Api/AbandonedCart/Checkout.php(77): Rnoc\Retainful\Api\AbandonedCart\Checkout->syncOrder(3742)
#6 /wp-includes/class-wp-hook.php(289): Rnoc\Retainful\Api\AbandonedCart\Checkout->orderUpdated(3742)
#7 /wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(3742, Array)
#8 /wp-includes/plugin.php(484): WP_Hook->do_action(Array)
#9 /wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php(173): do_action('woocommerce_upd...', 3742, Object(Automattic\WooCommerce\Admin\Overrides\Order))
#10 /plugins/woocommerce/includes/class-wc-data-store.php(179): WC_Order_Data_Store_CPT->update(Object(Automattic\WooCommerce\Admin\Overrides\Order))
#11 /plugins/woocommerce/includes/abstracts/abstract-wc-order.php(185): WC_Data_Store->update(Object(Automattic\WooCommerce\Admin\Overrides\Order))
#12 /plugins/woocommerce/includes/class-wc-order.php(220): WC_Abstract_Order->save()
#13 /plugins/woocommerce/includes/class-wc-order.php(333): WC_Order->save()
#14 /plugins/woocommerce/includes/gateways/cheque/class-wc-gateway-cheque.php(122): WC_Order->update_status('on-hold', 'Pago de cheque ...')
#15 /plugins/woocommerce/includes/class-wc-checkout.php(959): WC_Gateway_Cheque->process_payment(3742)
#16 /plugins/woocommerce/includes/class-wc-checkout.php(1171): WC_Checkout->process_order_payment(3742, 'cheque')
#17 /plugins/woocommerce/includes/class-wc-ajax.php(465): WC_Checkout->process_checkout()
#18 /wp-includes/class-wp-hook.php(287): WC_AJAX::checkout('')
#19 /wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
#20 /wp-includes/plugin.php(484): WP_Hook->do_action(Array)
#21 /plugins/woocommerce/includes/class-wc-ajax.php(90): do_action('wc_ajax_checkou...')
#22 /wp-includes/class-wp-hook.php(287): WC_AJAX::do_wc_ajax('')
#23 /wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(false, Array)
#24 /wp-includes/plugin.php(484): WP_Hook->do_action(Array)
#25 /wp-includes/template-loader.php(13): do_action('template_redire...')
#26 /wp-blog-header.php(19): require_once('/www/charlysand...')
#27 /index.php(17): require('/www/charlysand...')
#28 {main}
thrown in /plugins/retainful-next-order-coupon-for-woocommerce/src/WcFunctions.php on line 396
Hi
Our apologies. Can you please try this updated package?
https://github.com/retainful/woocommerce/releases/download/2.5.8/retainful-wordpress.zip
This should help.
Thanks
Team Retainful
Thanks for the update,
So I proceeded to reinstall MercadoPago payment gateway again after installing the updated plugin.
While testing payments in sandbox mode it was working fine. However payments where remaining as “pending payment” in woocommerce, therefore the confirmation email + retainful discount code was not being sent.
I proceeded to try and update the order status in woocommerce and then recieved the following error:
Fatal error: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given in /plugins/retainful-next-order-coupon-for-woocommerce/src/WcFunctions.php:961
Stack trace:
#0 /plugins/retainful-next-order-coupon-for-woocommerce/src/WcFunctions.php(961): method_exists(NULL, 'get_cart')
#1 /plugins/retainful-next-order-coupon-for-woocommerce/src/Api/AbandonedCart/Cart.php(405): Rnoc\Retainful\WcFunctions->getCart()
#2 /wp-includes/class-wp-hook.php(287): Rnoc\Retainful\Api\AbandonedCart\Cart->isZeroValueCart(true)
#3 /wp-includes/plugin.php(212): WP_Hook->apply_filters(true, Array)
#4 /wp-content/plugins/retainful-next-order-coupon-for-woocommerce/src/Api/AbandonedCart/RestApi.php(660): apply_filters('rnoc_can_track_...', true)
#5 /plugins/retainful-next-order-coupon-for-woocommerce/src/Api/AbandonedCart/Order.php(173): Rnoc\Retainful\Api\AbandonedCart\RestApi->canTrackAbandonedCarts('181.116.28.28')
#6 /plugins/retainful-next-order-coupon-for-woocommerce/src/Api/AbandonedCart/Checkout.php(130): Rnoc\Retainful\Api\AbandonedCart\Order->getOrderData(Object(Automattic\WooCommerce\Admin\Overrides\Order))
#7 /plugins/retainful-next-order-coupon-for-woocommerce/src/Api/AbandonedCart/Checkout.php(77): Rnoc\Retainful\Api\AbandonedCart\Checkout->syncOrder(3804)
#8 /wp-includes/class-wp-hook.php(289): Rnoc\Retainful\Api\AbandonedCart\Checkout->orderUpdated(3804)
#9 /wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(3804, Array)
#10 /plugin.php(484): WP_Hook->do_action(Array)
#11 /plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php(173): do_action('woocommerce_upd...', 3804, Object(Automattic\WooCommerce\Admin\Overrides\Order))
#12 /www/charlysandoval.com.ar/htdocs/lasmariasweb/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(179): WC_Order_Data_Store_CPT->update(Object(Automattic\WooCommerce\Admin\Overrides\Order))
#13 /plugins/woocommerce/includes/abstracts/abstract-wc-order.php(185): WC_Data_Store->update(Object(Automattic\WooCommerce\Admin\Overrides\Order))
#14 /plugins/woocommerce/includes/class-wc-order.php(220): WC_Abstract_Order->save()
#15 /plugins/woocommerce/includes/abstracts/abstract-wc-order.php(1630): WC_Order->save()
#16 /plugins/woocommerce/includes/admin/wc-admin-functions.php(414): WC_Abstract_Order->update_taxes()
#17 /plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-items.php(54): wc_save_order_items(3804, Array)
#18 /wp-includes/class-wp-hook.php(289): WC_Meta_Box_Order_Items::save(3804)
#19 /wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
#20 /wp-includes/plugin.php(484): WP_Hook->do_action(Array)
#21 /plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(220): do_action('woocommerce_pro...', 3804, Object(WP_Post))
#22 /wp-includes/class-wp-hook.php(289): WC_Admin_Meta_Boxes->save_meta_boxes(3804, Object(WP_Post))
#23 /wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
#24 /wp-includes/plugin.php(484): WP_Hook->do_action(Array)
#25 /wp-includes/post.php(4309): do_action('save_post', 3804, Object(WP_Post), true)
#26 /wp-includes/post.php(4411): wp_insert_post(Array, false, true)
#27 /wp-admin/includes/post.php(419): wp_update_post(Array)
#28 /wp-admin/post.php(227): edit_post()
#29 {main} thrown in /plugins/retainful-next-order-coupon-for-woocommerce/src/WcFunctions.php on line 961
Update: I also uninstalled MercadoPago payment gateway and tried to update the order status from “pending payment” to “completed” or “in process” but I still get the same error message so it looks like it has nothing to do with the MercadoPago plugin.
Hey
That is strange. We tried to re-produce the issue locally here and we could not.
May we know your
– WordPress version
– PHP version
– WooCommerce version
Is it possible to open a ticket at https://www.retainful.com/support
with the above details, and your site url.
This will help us troubleshoot and help you out.
Thanks
Team Retainful
Hey
Just wanted to update.
We pro-actively went ahead and added a few more checks for the objects (which usually be available in all environments as objects).
Here is an updated package:
https://github.com/retainful/woocommerce/releases/download/2.5.8/retainful-wordpress.zip
Hope this helps.
If you still face an issue, please open a ticket at https://www.retainful.com/support or use the Live Chat icon at our site / app to reach out. We are happy to assist you.
Thanks
Team Retainful
Hey
Just wanted to update on this thread.
We have fixed the compatibility issues and released an update today.
Upgrading to the latest version solves the issues.
Let us go ahead and close this thread. Feel free to open a new ticket at https://www.retainful.com/support if you have any further questions.
Happy to help 🙂
Team Retainful