woocommerce / woocommerce-gateway-stripe

The official Stripe Payment Gateway for WooCommerce
https://wordpress.org/plugins/woocommerce-gateway-stripe/
236 stars 206 forks source link

wc-stripe-blocks-integration deactivated #2429

Open robert-sterry opened 2 years ago

robert-sterry commented 2 years ago

Describe the bug

PHP Error message: Payment gateway with handle 'wc-stripe-blocks-integration' has been deactivated in Cart and Checkout blocks because its dependency 'react' is not registered. Read the docs about registering assets for payment methods: https://github.com/woocommerce/woocommerce-gutenberg-products-block/blob/trunk/docs/extensibility/payment-method-integration.md#registering-assets

To reproduce

Steps to reproduce the behavior:

n/a

Expected behavior

Unexpected error. We don't use Woocommerce Gutenberg Products Block plugin.

WordPress (please complete the following information):

Desktop (please complete the following information):

Additional context

Add any other context about the problem here.

senadir commented 2 years ago

Hello! I'm unable to reproduce this issue, in what page are you seeing this error and can you run some conflict check?

senadir commented 2 years ago

I moved this issue to Stripe repo because I don't think it is related to WooCommerce Blocks, while it's true that the error you see relates to blocks:

perezcarreno commented 2 years ago

Hello! I get this same error in PHP logs on every site I run with Elementor, WooCommerce, and the Stripe payment gateway plugin. It appears every day; it doesn't, however, affect anything for the user in the front end.

We do not use WooCommerce Blocks, so I agree with @senadir 's move to the Stripe repo.

Here is the most recent error:

2022/11/23 06:03:01 [error] 28496#28496: *96530 FastCGI sent in stderr: "PHP message: Payment gateway with handle 'wc-stripe-blocks-integration' has been deactivated in Cart and Checkout blocks because its dependency 'wc-blocks-registry' is not registered. Read the docs about registering assets for payment methods: https://github.com/woocommerce/woocommerce-blocks/blob/060f63c04f0f34f645200b5d4da9212125c49177/docs/third-party-developers/extensibility/checkout-payment-methods/payment-method-integration.md#registering-assetsPHP message: Payment gateway with handle 'wc-stripe-blocks-integration' has been deactivated in Cart and Checkout blocks because its dependency 'wc-settings' is not registered. Read the docs about registering assets for payment methods: https://github.com/woocommerce/woocommerce-blocks/blob/060f63c04f0f34f645200b5d4da9212125c49177/docs/third-party-developers/extensibility/checkout-payment-methods/payment-method-integration.md#registering-assets" while reading response header from upstream, client: MYIPADDRESS, server: MYSERVER, request: "GET /wp-admin/post.php?post=1843&action=elementor HTTP/1.1", upstream:

xue28 commented 1 year ago

https://wordpress.org/support/topic/wc-stripe-blocks-integration-has-been-deactivated-in-cart-and-checkout-blocks/

thisissandip commented 1 year ago

5791854-zen

shohanhossainnab commented 1 year ago

5795725-zen

Mxchael commented 1 year ago

This has been reported to work as a temporary fix.

As reported in 5795725-zen

stoltzrx commented 1 year ago

5951990-zen

kaushikasomaiya commented 1 year ago

The message originates from WooCommerce Blocks if one of the required libraries for Checkout/Cart blocks to support payment gateways is missing. Ex: Polyfill, WC-Settings, React etc. These scripts can be de-registered by any other plugins and Stripe only comes into the error if the Stripe plugin is active. If along with Stripe, COD or Cheque is enabled - the error path will show up that as well.

github-actions[bot] commented 1 month ago

Hi, This issue has gone 150 days (5 months) without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest version, you can help the project by responding to confirm the problem and by providing any updated reproduction steps. Thanks for helping out.

github-actions[bot] commented 1 day ago

This issue has gone 180 days (6 months) without any activity.