Hi,
My woocommerce site just crashed and this is the error that I have:
Nothing changed on the website, just some auto updates and it seems to have crashed all.
I have also deleted and reinstalled the Woocommerce Stripe payment gateway, but no luck.
Who knows what to do here?
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
[ad_2]
Make sure everything is up to date. If it’s still happening, contact the make of the plugin for support.
Looks like a function is expecting at least one argument, and 0 were passed to it. This is likely a code defect that should be reported to Stripe (the plugin owner) as u/elspic said . Many plugins also have a support board where you might post or find someone who has already encountered the problem:
[https://wordpress.org/support/plugin/woocommerce-gateway-stripe/](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/)