woocommerce / woocommerce

A customizable, open-source ecommerce platform built on WordPress. Build any commerce solution you can imagine.
https://woocommerce.com
9.34k stars 10.75k forks source link

Payment Plugins for Stripe WooCommerce issue fatal error #51594

Open tomoveout opened 1 week ago

tomoveout commented 1 week ago

Prerequisites

Describe the bug

WordPress version 6.6.2 Thème actif : adforest child (version 1.0.0) Extension actuelle : Payment Plugins for Stripe WooCommerce (version 3.3.75) PHP version 8.1.27

Une erreur de type E_ERROR a été causée dans la ligne 62 du fichier /home/u196177799/domains/tomoveout.fr/public_html/wp-content/plugins/woo-stripe-payment/includes/class-wc-stripe-api-operation.php. Message d'erreur : Uncaught InvalidArgumentException: Property paymentMethodConfigurations is not a valid entry in /home/u196177799/domains/tomoveout.fr/public_html/wp-content/plugins/woo-stripe-payment/includes/class-wc-stripe-api-operation.php:62 Stack trace:

0 /home/u196177799/domains/tomoveout.fr/public_html/wp-content/plugins/woo-stripe-payment/includes/class-wc-stripe-gateway.php(107): WC_Stripe_API_Operation->__construct()

1 /home/u196177799/domains/tomoveout.fr/public_html/wp-content/plugins/woo-stripe-payment/includes/gateways/class-wc-payment-gateway-stripe-upm.php(503): WC_Stripe_Gateway->__get()

2 /home/u196177799/domains/tomoveout.fr/public_html/wp-includes/class-wp-hook.php(326): WC_Payment_Gateway_Stripe_UPM->handle_connection_success()

3 /home/u196177799/domains/tomoveout.fr/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()

4 /home/u196177799/domains/tomoveout.fr/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()

5 /home/u196177799/domains/tomoveout.fr/public_html/wp-content/plugins/woo-stripe-payment/includes/admin/settings/class-wc-stripe-account-settings.php(65): do_action()

6 /home/u196177799/domains/tomoveout.fr/public_html/wp-content/plugins/woo-stripe-payment/includes/admin/settings/class-wc-stripe-account-settings.php(83): WC_Stripe_Account_Settings->save_account_settings()

7 /home/u196177799/domains/tomoveout.fr/public_html/wp-includes/class-wp-hook.php(324): WC_Stripe_Account_Settings->post_api_update()

8 /home/u196177799/domains/tomoveout.fr/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()

9 /home/u196177799/domains/tomoveout.fr/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()

10 /home/u196177799/domains/tomoveout.fr/public_html/wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-page.php(265): do_action()

11 /home/u196177799/domains/tomoveout.fr/public_html/wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-payment-gateways.php(320): WC_Settings_Page->do_update_options_action()

12 /home/u196177799/domains/tomoveout.fr/public_html/wp-includes/class-wp-hook.php(324): WC_Settings_Payment_Gateways->save()

13 /home/u196177799/domains/tomoveout.fr/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()

14 /home/u196177799/domains/tomoveout.fr/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()

15 /home/u196177799/domains/tomoveout.fr/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-settings.php(84): do_action()

16 /home/u196177799/domains/tomoveout.fr/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-menus.php(179): WC_Admin_Settings::save()

17 /home/u196177799/domains/tomoveout.fr/public_html/wp-includes/class-wp-hook.php(324): WC_Admin_Menus->save_settings()

18 /home/u196177799/domains/tomoveout.fr/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()

19 /home/u196177799/domains/tomoveout.fr/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()

20 /home/u196177799/domains/tomoveout.fr/public_html/wp-settings.php(722): do_action()

21 /home/u196177799/domains/tomoveout.fr/public_html/wp-config.php(111): require_once('/home/u19617779...')

22 /home/u196177799/domains/tomoveout.fr/public_html/wp-load.php(50): require_once('/home/u19617779...')

23 /home/u196177799/domains/tomoveout.fr/public_html/wp-admin/admin.php(34): require_once('/home/u19617779...')

24 {main}

thrown

Expected behavior

I expect to happen when customers paid by credit card with stripe plugin on checkout page the detail and thank you page properly.

Actual behavior

Now when I'm trying in test mode fatal error appears and no transaction is possible on my website.

image

Steps to reproduce

image

image

image

image

WordPress Environment

SystemStatusReport_tomoveout.fr_2024-09-20T21-02-47.txt

Isolating the problem

lanej0 commented 1 week ago

Hi @tomoveout,

The Stripe plugin you're using looks like it was developed by FunnelKit: https://funnelkit.com/docs/stripe-gateway-for-woocommerce/ -- probably best to get in touch with them if you've having trouble with it erroring.

tomoveout commented 6 days ago

Hi @lanej0,

Thank you for your answer. I'm trying to disable FunnelKit and stripe gateway for woocommerce plugin however I obtain the same result so I copy/paste critical log for woocommerce here for your information and if some people have same issue :

Uncaught TypeError: Automattic\WooCommerce\Utilities\OrderUtil::remove_status_prefix(): Argument #1 ($status) must be of type string, null given, called in /home/u196177799/domains/tomoveout.fr/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php on line 629 and defined in /home/u196177799/domains/tomoveout.fr/public_html/wp-content/plugins/woocommerce/src/Utilities/OrderUtil.php:239

Regards.