Help with an error

WCMp Stripe Marketplace

Help with an error Resolved

Viewing 6 reply threads
  • Author
    • #133055

      Hi 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

    • #133088

      Hi, 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.

    • #133103

      Hi 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.

    • #133157

      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?

    • #133162

      We 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.

    • #133161

      We 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.

    • #133244

      Sorry, this is our development version. You have the correct version. We have explained here #13315

Viewing 6 reply threads

The topic ‘Help with an error’ is closed to new replies.

Buy all Marketplace addons together!!

Check Slashed Price