- This topic has 15 replies, 4 voices, and was last updated 2 years, 3 months ago by
Sangita Support Squad.
-
AuthorPosts
-
-
January 16, 2024 at 3:23 AM #216169
MaxenceTP
ParticipantHello,
I got the following critical error with the latest version of Woocommerce :
An error of type E_ERROR was caused in line 541 of the file /var/www/wordprss/wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-mvx-order.php. Error message: Uncaught Error: Call to a member function get() on null in /var/www/wordprss/wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-mvx-order.php:541
Stack trace:
#0 /var/www/wordprss/wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-mvx-order.php(343): MVX_Order::create_vendor_order()
#1 /var/www/wordprss/wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-mvx-order.php(303): MVX_Order->mvx_create_orders()
#2 /var/www/wordprss/wp-includes/class-wp-hook.php(324): MVX_Order->mvx_create_orders_hpos()
#3 /var/www/wordprss/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#4 /var/www/wordprss/wp-includes/plugin.php(517): WP_Hook->do_action()
#5 /var/www/wordprss/wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php(194): do_action()
#6 /var/www/wordprss/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(196): WC_Order_Data_Store_CPT->update()
#7 /var/www/wordprss/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php(212): WC_Data_Store->update()
#8 /var/www/wordprss/wp-content/plugins/woocommerce/includes/class-wc-order.php(252): WC_Abstract_Order->save()
#9 /var/www/wordprss/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php(714): WC_Order->save()
#10 /var/www/wordprss/wp-includes/class-wp-hook.php(326): WC_Meta_Box_Order_Data::save()
#11 /var/www/wordprss/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#12 /var/www/wordprss/wp-includes/plugin.php(517): WP_Hook->do_action()
#13 /var/www/wordprss/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(263): do_action()
#14 /var/www/wordprss/wp-includes/class-wp-hook.php(326): WC_Admin_Meta_Boxes->save_meta_boxes()
#15 /var/www/wordprss/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#16 /var/www/wordprss/wp-includes/plugin.php(517): WP_Hook->do_action()
#17 /var/www/wordprss/wp-includes/post.php(4760): do_action()
#18 /var/www/wordprss/wp-includes/post.php(4862): wp_insert_post()
#19 /var/www/wordprss/wp-admin/includes/post.php(453): wp_update_post()
#20 /var/www/wordprss/wp-admin/post.php(227): edit_post()
#21 {main}
thrownDoes your plugin is compatible with this version ?
-
January 16, 2024 at 12:44 PM #216185
NerdySupportExpert Moumita
KeymasterHi @MaxenceTP, sorry to hear that you have faced this issue.
Our team has tested the flow with the latest version of WooCommerce, but didn’t face any issue.
So, can you please share a temporary admin, ftp access so we can check and assist you with this.Also, please do share how to recreate the issue for your site. While sharing the access, don’t forget to mark the response as private.
-
January 16, 2024 at 4:14 PM #216207
MaxenceTP
ParticipantThis reply has been marked as private. -
January 16, 2024 at 4:25 PM #216210
MaxenceTP
ParticipantYou need to test with products that have a vendor 🙂
Products without vendors doesn’t call MVX so it works.
-
January 16, 2024 at 5:08 PM #216217
Sangita Support Squad
Keymaster@MaxenceTP, Thanks for sharing the access. Our team is looking into the issue on your end. Kindly provide us some time.
-
January 16, 2024 at 5:26 PM #216225
MaxenceTP
ParticipantThank you. I’d like to clarify a few points:
– This error only occurs when you create the order via wp-admin
– This version of the plugin is in production, so it’s breaking my site, it’s quite urgentI have another error on my production site that I haven’t managed to reproduce in dev.
When a user places an order, there’s another critical error:[16-Jan-2024 11:27:26 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_meta() on bool in /var/www/wordpress/wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-mvx-vendor-order.php:34
Stack trace:
#0 /var/www/wordpress/wp-content/plugins/dc-woocommerce-multi-vendor/includes/mvx-order-functions.php(82): mvx_vendor_order->__construct()
#1 /var/www/wordpress/wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-mvx-order.php(1662): mvx_get_order()
#2 /var/www/wordpress/wp-includes/class-wp-hook.php(326): MVX_Order->mvx_refund_order_status_save()
#3 /var/www/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#4 /var/www/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()
#5 /var/www/wordpress/wp-includes/post.php(4760): do_action()
#6 /var/www/wordpress/wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-mvx-post-commission.php(92): wp_insert_post()
#7 /var/www/wordpress/wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-mvx-calculate-commission.php(51): MVX_Commission::create_commission()
#8 /var/www/wordpress/wp-includes/class-wp-hook.php(324): MVX_Calculate_Commission->mvx_create_commission()
#9 /var/www/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#10 /var/www/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()
#11 /var/www/wordpress/wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-mvx-order.php(353): do_action()
#12 /var/www/wordpress/wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-mvx-order.php(303): MVX_Order->mvx_create_orders()
#13 /var/www/wordpress/wp-includes/class-wp-hook.php(324): MVX_Order->mvx_create_orders_hpos()
#14 /var/www/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#15 /var/www/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()
#16 /var/www/wordpress/wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php(103): do_action()
#17 /var/www/wordpress/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(186): WC_Order_Data_Store_CPT->create()
#18 /var/www/wordpress/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php(214): WC_Data_Store->create()
#19 /var/www/wordpress/wp-content/plugins/woocommerce/includes/class-wc-order.php(252): WC_Abstract_Order->save()
#20 /var/www/wordpress/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(452): WC_Order->save()
#21 /var/www/wordpress/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1264): WC_Checkout->create_order()
#22 /var/www/wordpress/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(508): WC_Checkout->process_checkout()
#23 /var/www/wordpress/wp-includes/class-wp-hook.php(324): WC_AJAX::checkout()
#24 /var/www/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#25 /var/www/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()
#26 /var/www/wordpress/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action()
#27 /var/www/wordpress/wp-includes/class-wp-hook.php(324): WC_AJAX::do_wc_ajax()
#28 /var/www/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#29 /var/www/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()
#30 /var/www/wordpress/wp-includes/template-loader.php(13): do_action()
#31 /var/www/wordpress/wp-blog-header.php(19): require_once(‘…’)
#32 /var/www/wordpress/index.php(17): require(‘…’)
#33 {main}
thrown in /var/www/wordpress/wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-mvx-vendor-order.php on line 34In the class-mvx-vendor-order.php file I’ve replaced :
$this->vendor_id = absint( $this->order->get_meta( ‘_vendor_id’, true) );
by the previous line :
$this->vendor_id = absint( get_post_meta($this->id, ‘_vendor_id’, true) );And it seems to be working. Why is this a problem?
-
January 16, 2024 at 5:38 PM #216228
Sangita Support Squad
KeymasterThis reply has been marked as private. -
January 16, 2024 at 5:41 PM #216231
MaxenceTP
ParticipantThis reply has been marked as private. -
January 16, 2024 at 6:55 PM #216239
MVX Support Ninja
Keymaster@MaxenceTP, thanks for the access.
We are able to recreate the issue on our end. Our team is working on a fix.
Once we will have the update, will let you know.
-
January 16, 2024 at 7:24 PM #216243
MaxenceTP
ParticipantThank you ! I really need it quickly as it’s in production
-
January 17, 2024 at 10:38 AM #216252
Sangita Support Squad
KeymasterThis reply has been marked as private. -
January 18, 2024 at 1:03 AM #216380
MaxenceTP
ParticipantThis reply has been marked as private. -
January 18, 2024 at 1:04 AM #216382
MaxenceTP
ParticipantThis reply has been marked as private. -
January 18, 2024 at 11:17 AM #216390
Sangita Support Squad
KeymasterThis reply has been marked as private. -
January 18, 2024 at 7:15 PM #216485
MaxenceTP
ParticipantI don’t know how to reproduce this error, so unfortunately I can’t confirm it.
However, if you think it’s OK, you can close this post
-
January 19, 2024 at 12:55 PM #216505
Sangita Support Squad
KeymasterThe error message that you have shared was coming on the reviews tab of the vendor store page on the MultiVendorX 4.1.0 version. We have already added a fix for that in the latest 4.1.1 version.
So we are closing this thread.
If you need any help or face issues in future please create a new support ticket.
-
-
AuthorPosts
- The topic ‘Error with woocommerce 8.5.1’ is closed to new replies.






