• Resolved Daniel Harper

    (@danhrpr)


    I’m getting the following errors in the PHP log file since updating to latest WooCommerce

    WC: 9.6.0
    Payment plugin version: 3.2.60

    [17-Feb-2025 10:20:40 UTC] Payment gateway with handle 'wc-braintree-blocks-applepay' has been deactivated in Cart and Checkout blocks because its dependency 'wc-braintree-blocks-commons' 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
    [17-Feb-2025 10:20:40 UTC] Payment gateway with handle 'wc-braintree-blocks-paypal' has been deactivated in Cart and Checkout blocks because its dependency 'wc-braintree-blocks-commons' 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
    [17-Feb-2025 10:20:40 UTC] Payment gateway with handle 'wc-braintree-blocks-googlepay' has been deactivated in Cart and Checkout blocks because its dependency 'wc-braintree-blocks-commons' 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
    [17-Feb-2025 10:20:40 UTC] Payment gateway with handle 'wc-braintree-blocks-credit-card' has been deactivated in Cart and Checkout blocks because its dependency 'braintree-web-hosted-fields' 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

    Cheers Dan

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Clayton R

    (@mrclayton)

    Hi @danhrpr

    Those are not PHP errors, they’re notices which should be harmless. Are you using Elementor? If so have you tested to see if these notices get generated with Elementor disabled?

    We’ve seen similar notices in the past and it was caused by a compatibility issue between Elementor and the WooCommerce blocks.

    Kind Regards

    Thread Starter Daniel Harper

    (@danhrpr)

    I am not using elementor.

    Although harmless I want the log file as clean as possible so when we get real errors it’s easier to find them rather than wading through notices and exceptions. Other than this and one other plugin adding an exception the log file is clean.

    Are you saying that this plugin registers everything correctly as per the docs?

    Plugin Author Clayton R

    (@mrclayton)

    Are you saying that this plugin registers everything correctly as per the docs?

    Yes, that is correct. We are not able to reproduce those log notices nor do we have any other reports from large merchants that this is happening.

    Here is the original ticket that was submitted when we found an issue between Elementor and the WooCommerce blocks. This may help with your troubleshooting:

    https://github.com/woocommerce/woocommerce-blocks/issues/7907

    I’d recommend using process of elimination and start with just WooCommerce and Braintree active and work your way up until the notices start showing. That will give an idea of what’s triggering it.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP errors’ is closed to new replies.