• Resolved suresh b

    (@suneth2)


    when we pass this kind of requests via ajax
    /wp-json/wc/store/v1/products/testproduct-name/

    But that url giving fetal error, getting below error

    <b>Fatal error</b>: Uncaught Error: Call to a member function set_customer_session_cookie() on null in /wp-content/plugins/woocommerce-gateway-stripe/includes/payment-methods/class-wc-stripe-payment-request.php:182 Stack trace: #0 /wp-includes/class-wp-hook.php(310): WC_Stripe_Payment_Request->set_session(”) #1 /wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) #2 /wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /wp-includes/template-loader.php(13): do_action(‘template_redire…’) #4 /wp-blog-header.php(19): require_once(‘/ba…’) #5 /index.php(17): require(‘/ba…’) #6 {main} thrown in <b>/wp-content/plugins/woocommerce-gateway-stripe/includes/payment-methods/class-wc-stripe-payment-request.php</b> on line <b>182</b>

    can you please give a solution

    • This topic was modified 10 months, 2 weeks ago by suresh b.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support omnisendsupport

    (@omnisendsupport)

    Hello there, and thank you for your interest in the Omnisend for WooCommerce plugin!

    We can see that with this request, you are trying to access your test product in your WooCommerce plugin. It also seems that the error occurs due to a failure to set a cookie – set_customer_session_cookie() on null. Fatal errors occur in parts of the WC plugin that require a session cookie.?

    With this in mind, could you share with us your use case for Omnisend? What kind of request are you executing? Is it possible for you to share a full payload with us, as well as the method you used to parse it?

    Plugin Support omnisendsupport

    (@omnisendsupport)

    Hello!

    Since we haven’t heard from you, we’ll resolve this thread for now. Please feel free to reopen it anytime you need!

    If you have any questions or need any assistance, do not hesitate to create another support thread, we’ll be happy to help you.

    Have a good one!

    Thread Starter suresh b

    (@suneth2)

    I’m not certain about the use case, but the aforementioned request is sent by Omnisend via an AJAX request. I have encountered this issue on another website that also uses Omnisend. This issue doesn’t display anything to users, but I can see the error in the console. I’ll share some screenshot
    https://snipboard.io/IDUcn1.jpg

    • This reply was modified 10 months, 1 week ago by suresh b.
    Plugin Support omnisendsupport

    (@omnisendsupport)

    Hello!

    Would it be possible to share the request body with us so we could investigate? In case you’d like to keep things private, we suggest emailing it to [email protected] or opening a support ticket via the in-app chat.

    Please let us know of your decision!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Getting fetal error on Json request’ is closed to new replies.