Getting fetal error on Json request
-
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
- The topic ‘Getting fetal error on Json request’ is closed to new replies.