• Resolved thuisfeestje

    (@thuisfeestje)


    Hi,

    My woocommerce site just crashed and this is the error that I have:
    Nothing changed on the website, just some auto update and it seems to have crashed all.

    I have also deleted and reinstalled the Woocommerce Stripe payment gateway, but no luck.
    When deactivating the plugin, all works again.

    WordPress version 6.5.3
    Active theme: Kadence
    Current plugin: WooCommerce Stripe Gateway (version 8.3.0)
    PHP version 8.1.2-1ubuntu2.17

    Who knows what to do here?
    When uninstalling 8.3.0 and installing 8.2.0 all works again.

    Thanks in advance!!!
    Mitch

    An error of type E_ERROR was caused in line 142 of the file /var/www/domain.com/wp-content/plugins/woocommerce-gateway-stripe/includes/payment-methods/class-wc-stripe-upe-payment-gateway.php. Error message: Uncaught ArgumentCountError: Too few arguments to function WC_Stripe_UPE_Payment_Gateway::__construct(), 0 passed in /var/www/domain.com/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php on line 103 and exactly 1 expected in /var/www/domain.com/wp-content/plugins/woocommerce-gateway-stripe/includes/payment-methods/class-wc-stripe-upe-payment-gateway.php:142 Stack trace: #0 /var/www/domain.com/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(103): WC_Stripe_UPE_Payment_Gateway->__construct() #1 /var/www/domain.com/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(76): WC_Payment_Gateways->init() #2 /var/www/domain.com/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(49): WC_Payment_Gateways->__construct() #3 /var/www/domain.com/wp-content/plugins/woocommerce/includes/class-woocommerce.php(1040): WC_Payment_Gateways::instance() #4 /var/www/domain.com/wp-content/plugins/woocommerce/src/Internal/Admin/WcPayWelcomePage.php(391): WooCommerce->payment_gateways() #5 /var/www/domain.com/wp-content/plugins/woocommerce/src/Internal/Admin/WcPayWelcomePage.php(80): Automattic\WooCommerce\Internal\Admin\WcPayWelcomePage->get_incentive() #6 /var/www/domain.com/wp-content/plugins/woocommerce/src/Internal/Admin/WcPayWelcomePage.php(98): Automattic\WooCommerce\Internal\Admin\WcPayWelcomePage->must_be_visible() #7 /var/www/domain.com/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Internal\Admin\WcPayWelcomePage->register_payments_welcome_page() #8 /var/www/domain.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #9 /var/www/domain.com/wp-includes/plugin.php(517): WP_Hook->do_action() #10 /var/www/domain.com/wp-admin/includes/menu.php(161): do_action() #11 /var/www/domain.com/wp-admin/menu.php(422): require_once(‘…’) #12 /var/www/domain.com/wp-admin/admin.php(158): require(‘…’) #13 /var/www/domain.com/wp-admin/index.php(10): require_once(‘…’) #14 {main} thrown

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter thuisfeestje

    (@thuisfeestje)

    seems there is already a pull request for this issue: https://github.com/woocommerce/woocommerce-gateway-stripe/issues/3151

    Thread Starter thuisfeestje

    (@thuisfeestje)

    @shameemreza would you be so kind to explain why this is a 3rd party issue and not a fault in your plugin?

    I see there is already an approved pull request… so it looks to me it’s more on your side… but please do explain.

    Pull request: https://github.com/woocommerce/woocommerce-gateway-stripe/issues/3151

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @thuisfeestje

    would you be so kind to explain why this is a 3rd party issue and not a fault in your plugin?

    They mentioned that this issue occurs only with subscription type products added by a third-party plugin. However, it works perfectly fine with simple products or products added by the WooCommerce core.

    I see there is already an approved pull request… so it looks to me it’s more on your side… but please do explain. Pull request: https://github.com/woocommerce/woocommerce-gateway-stripe/issues/3151

    As I mentioned in my previous response, that isn’t a pull request; instead, it’s a bug report that another user created.

    However, when I tried to replicate the issue using the default setup (which includes the WooCommerce plugin, a default theme, and the WooCommerce Stripe Payment Gateway plugin), I couldn’t. This suggests that other factors are at play here.

    The error message hints that the function WC_Stripe_UPE_Payment_Gateway::__construct() isn’t receiving an expected argument. It’s possible that a custom code or another plugin is trying to access it. You can pinpoint the cause by conducting a conflict test. More info: https://woocommerce.com/document/how-to-test-for-conflicts/

    I hope this provides some clarity. Please let us know if you have any other questions!

    Gal Baras

    (@galbaras)

    Man, this is like a game of Chinese Whispers ??

    There is now an approved pull request that should fix the issue (makes sense to me that it will). This should be released soon.

    @shameemreza can you expedite?

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @galbaras

    Man, this is like a game of Chinese Whispers ??

    Yes.

    can you expedite?

    While I can’t provide an exact timeline or expedite it, as soon as the pull request is approved and merged, it will be included in the next update of the plugin. I recommend keeping an eye on the GitHub thread for the latest updates.

    We appreciate everyone’s understanding and patience in this matter.

    Cheers!

    • This reply was modified 10 months ago by Shameem R. a11n. Reason: typo and format
    Gal Baras

    (@galbaras)

    Looks like a fix has been released. Can anyone confirm it works?

    Hey there, @thuisfeestje! Thanks for contacting us. I’m happy to help you.

    Can you please run a conflict test to see if something external is interfering with this?

    To test, you’ll first want to change the theme on your site to Storefront, then check to see if the issue is still present with Stripe 8.3. If that resolves the issue, you’ll want to get in touch with your theme’s developer and see if they have an update or fix for you.

    If changing the theme doesn’t help, you’ll want to deactivate all plugins except for WooCommerce and Stripe and take a look. If that fixes the problem, re-enable the other plugins one by one (gradually), checking after each, to see where the issue is coming from.

    — Be sure you have a good backup in place of your full site and database. You can ask your host for backup functionality or you can consider using a service like Jetpack. If something goes wrong, you will be able to restore it.

    — It is important to consider as well a staging functionality in case you would not like to touch your production site (you can ask your host if they offer this service), or you can use WP Staging for quickly spinning up a new test site.

    You can find more about this in this guide.

    Please let us know about your findings.

    Have a wonderful day!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘8.3.0 crashes my woocommerce site’ is closed to new replies.