Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wc-stripe-blocks-integration deactivated #2429

Open
robert-sterry opened this issue Sep 20, 2022 · 9 comments
Open

wc-stripe-blocks-integration deactivated #2429

robert-sterry opened this issue Sep 20, 2022 · 9 comments
Labels
type: bug The issue is a confirmed bug.

Comments

@robert-sterry
Copy link

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):

  • Core version: 6.0.2
  • Gutenberg version: not installed
  • WooCommerce version: 6.9.2
  • WooCommerce Blocks version: not installed
  • Site language: English
  • Any other plugins installed: WC Stripe Gateway, WC Multicurrency, WC GoCardless, WC Royal Mail, WC Advanced Notificatrions

Desktop (please complete the following information):

  • OS: Windows
  • Browser Chrome
  • Version 105.0.5195.127

Additional context

Add any other context about the problem here.

@robert-sterry robert-sterry added the type: bug The issue is a confirmed bug. label Sep 20, 2022
@senadir
Copy link
Member

senadir commented Sep 22, 2022

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

@senadir senadir transferred this issue from woocommerce/woocommerce-blocks Sep 22, 2022
@senadir
Copy link
Member

senadir commented Sep 22, 2022

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:

  • The error shouldn't be visible if you're not using Cart/Checkout.
  • If you're, then there's an issue with dependencies or a third party plugin.
    In both cases, there's nothing we can do on WooCommerce Blocks to fix this.

@perezcarreno
Copy link

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:

@thisissandip
Copy link

5791854-zen

@shohanhossainnab
Copy link

5795725-zen

@Mxchael
Copy link
Member

Mxchael commented Dec 20, 2022

This has been reported to work as a temporary fix.

As reported in 5795725-zen

@stoltzrx
Copy link

5951990-zen

@kaushikasomaiya
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug The issue is a confirmed bug.
Projects
None yet
Development

No branches or pull requests