Help with an error
Home / Topic / WCMp Stripe Marketplace / Help with an error
WCMp Stripe Marketplace
Help with an error Resolved
- This topic has 5 replies, 3 voices, and was last updated 6 months, 4 weeks ago by
Raju The Cool Guy.
-
AuthorPosts
-
-
January 12, 2022 at 7:54 PM #133055
inkanov
ParticipantHi WCMP team,
Could you help check if this is an issue with the Stripe marketplace plugin or if it is something with our installation. We disabled all plugins and snippets except woocommerce, WCMp and Stripe Marketplace and this issue still shows up. Unable to share a staging as this is on localhost.
When we put in an arbitrary order by modifying the URL in my-account>orders>view-order (for example: /my-account/view-order/420045/ and 420045 isn’t an existing order)
we are getting an error:Fatal error: Uncaught Error: Call to a member function get_payment_method() on bool in /var/www/html/wp-content/plugins/wcmp-stripe-marketplace/classes/class-wcmp-stripe-marketplace-payment-method.php:3023 Stack trace: #0 /var/www/html/wp-content/plugins/wcmp-stripe-marketplace/classes/class-wcmp-stripe-marketplace-payment-method.php(2722): WCMp_Stripe_Marketplace_Gateway->verify_intent_after_checkout(false) #1 /var/www/html/wp-includes/class-wp-hook.php(303): WCMp_Stripe_Marketplace_Gateway->check_intent_status_on_order_page(‘420045’) #2 /var/www/html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #3 /var/www/html/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #4 /var/www/html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(3134): do_action(‘woocommerce_acc…’, ‘420045’) #5 /var/www/html/wp-includes/class-wp-hook.php(303): woocommerce_account_content(”) #6 /var/www/html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #7 /var/www/html/wp-includes in /var/www/html/wp-content/plugins/wcmp-stripe-marketplace/classes/class-wcmp-stripe-marketplace-payment-method.php on line 3023
-
January 13, 2022 at 6:34 PM #133088
Little Assistant Tithi
KeymasterHi, thank you for your query.
Kindly confirm if you are using the current version of WCMp Stripe Marketplace 2.0.1 and also confirm whether you have done any modification in our plugin.
Because the error that you are facing is not in our current code. -
January 13, 2022 at 9:16 PM #133103
inkanov
ParticipantHi Tithi, thanks for the quick revert.
We are on 2.0.1 and no modifications to the plugin.
Based on what we could see in the error message and the code, line 3023 checks for $payment_method = $order->get_payment_method();
However if order number is arbitrary, this line would fail as there’s no check that order number is valid and should be visible to the user. Anybody could change the URL and try, so we can’t limit that, so we need a catch statement before this. Hopefully this is the issue. -
January 14, 2022 at 8:43 PM #133157
Raju The Cool Guy
KeymasterHi,
Currently, 2.0.2 is our latest version. That’s why this doesn’t match with our latest. So what you can explain, you are getting error from $order->get_payment_method(); this section, within verify_intent_after_checkout this function right??. So you need a try-catch. But we have already done it here verify_intent. Please check. There might be some conflict with other codes. Can you please check again?
Thanks -
January 14, 2022 at 10:26 PM #133162
inkanov
ParticipantWe still have version 2.0.1, can’t see an update on the My-Accounts/API-Downloads or other places. Has this just been released, we can check when its available.
-
January 17, 2022 at 10:28 AM #133161
inkanov
ParticipantWe still have version 2.0.1, don’t see an update on the https://wc-marketplace.com/product/wcmp-stripe-marketplace/->Change Log or in the plugins.php Admin page or in the https://wc-marketplace.com/my-account/api-downloads/
Has it just been released, if so can check when latest version is available. -
January 17, 2022 at 9:15 PM #133244
Raju The Cool Guy
KeymasterHi,
Sorry, this is our development version. You have the correct version. We have explained here #13315
Thanks
-
-
AuthorPosts
The topic ‘Help with an error’ is closed to new replies.