Forum Replies Created
-
AuthorPosts
-
MaxenceTPParticipant
Thank you ! I really need it quickly as it’s in production
MaxenceTPParticipantThis reply has been marked as private.MaxenceTPParticipantThank 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?
MaxenceTPParticipantYou need to test with products that have a vendor 🙂
Products without vendors doesn’t call MVX so it works.
MaxenceTPParticipantThis reply has been marked as private.MaxenceTPParticipantThis reply has been marked as private.MaxenceTPParticipantWhen this will be updated ?
This API is 5 years old…MaxenceTPParticipantHello, any update please ?
MaxenceTPParticipantHello, I’ve got a bit more information about the problem.
The user uses a VPN when checking out (he can’t do without), and it seems that the error is linked to his account, as he’s the only one to have reported it. The error is still there as he reported it to me again today.
In the debug logs I have lots of messages for other orders that work fine, but for his transaction I only have this:
————————————-
Before creating customer record with Stripe. Stripe Data: s:0:””;
————————————-
Before creating customer record with Stripe. Stripe Data: a:1:{s:5:”email”;s:22:”gamer6847865xxxxxxxxxxxxxx”;}
————————————-MaxenceTPParticipantHe mentions Alipay in the message, is it the same problem with Giropay & Bancontact?
Can you get back to me when a solution has been implemented?
MaxenceTPParticipantIt’s been 5 months since I reported this problem and I still haven’t heard anything 🙁
MaxenceTPParticipantI’m talking about the module “Store Analytics”.
I don’t want to show the data, I’m just reporting the bug that the tracking script doesn’t work.The code added by the plugin in the page is : https://paste-me.net/vataj
But google ask to put this one : https://paste-me.net/iqidiHow can I change the tracking script added to the page ?
MaxenceTPParticipantHello,
Any update about this ?
MaxenceTPParticipantHello,
Any update about this please ? 🙂
MaxenceTPParticipantOk, please keep me informed
-
AuthorPosts