• Resolved vasdevdesign

    (@vasdevdesign)


    Hello,

    One of our websites is throwing a fatal error when updating to the latest version (9.3.0) of the Stripe Gateway plugin. I have copied the error log below, I haven’t been able to figure out a way around this but it doesn’t look like it has anything to do with a theme/other plugin conflict.

    php_fatal
    +------------------------------------------------------------------------------------------------------------------------------------------------------+
    | Count | Message |
    |-------+----------------------------------------------------------------------------------------------------------------------------------------------|
    | 4 | Uncaught Error: Call to undefined method Automattic\WooCommerce\Admin\Overrides\OrderRefund::get_order_key() in |
    | | /nas/content/live/organicshroom/wp-content/plugins/woocommerce-gateway-stripe/includes/abstracts/abstract-wc-stripe-payment-gateway.php:239… |
    | | trace:#012#0 |
    | | /nas/content/live/organicshroom/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-webhook-handler.php(1304): |
    | | WC_Stripe_Payment_Gateway->get_order_signature(Object(Automattic\WooCommerce\Admin\Overrides\OrderRefund))#012#1 |
    | | /nas/content/live/organicshroom/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-webhook-handler.php(967): |
    | | WC_Stripe_Webhook_Handler->get_order_from_intent(Object(stdClass))#012#2 |
    | | /nas/content/live/organicshroom/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-webhook-handler.php(1265): |
    | | WC_Stripe_Webhook_Handler->process_payment_intent(Object(stdClass))#012#3 |
    | | /nas/content/live/organicshroom/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-webhook-handler.php(107): |
    | | WC_Stripe_Webhook_Handler->process_webhook('{\n "id": "evt_...')#012#4 /nas/content/live/organicshroom/wp-includes/class-wp-hook.php(324): |
    | | WC_Stripe_Webhook_Handler->check_for_webhook('')#012#5 /nas/content/live/organicshroom/wp-includes/class-wp-hook.php(348): |
    | | WP_Hook->apply_filters('', Array)#012#6 /nas/content/live/organicshroom/wp-includes/plugin.php(517): WP_Hook->do_action(Array)#012#7 |
    | | /nas/content/live/organicshroom/wp-content/plugins/woocommerce/src/Internal/Utilities/LegacyRestApiStub.php(166): |
    | | do_action('woocommerce_api...')#012#8 |
    | | /nas/content/live/organicshroom/wp-content/plugins/woocommerce/src/Internal/Utilities/LegacyRestApiStub.php(95): |
    | | Automattic\WooCommerce\Internal\Utilities\LegacyRestApiStub::maybe_process_wc_api_query_var()#012#9 |
    | | /nas/content/live/organicshroom/wp-includes/class-wp-hook.php(324): |
    | | Automattic\WooCommerce\Internal\Utilities\LegacyRestApiStub::parse_legacy_rest_api_request(Object(WP))#012#10 |
    | | /nas/content/live/organicshroom/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)#012#11 |
    | | /nas/content/live/organicshroom/wp-includes/plugin.php(565): WP_Hook->do_action(Array)#012#12 |
    | | /nas/content/live/organicshroom/wp-includes/class-wp.php(418): do_action_ref_array('parse_request', Array)#012#13 |
    | | /nas/content/live/organicshroom/wp-includes/class-wp.php(813): WP->parse_request('')#012#14 |
    | | /nas/content/live/organicshroom/wp-includes/functions.php(1336): WP->main('')#012#15 /nas/content/live/organicshroom/wp-blog-header.php(16): |
    | | wp()#012#16 /nas/content/live/organicshroom/index.php(17): require('/nas/content/li...')#012#17 {main}#012 thrown in |
    | | /nas/content/live/organicshroom/wp-content/plugins/woocommerce-gateway-stripe/includes/abstracts/abstract-wc-stripe-payment-gateway.php on |
    | | line 2391 |

    Thank you for any help 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • We’re experiencing the same thing. Our wp-admin times out and we get a 502.

    To add some context that might help with this, is we disable the WooCommerce Subscriptions plugin, the site works again.

    @vasdevdesign do you use that plugin as well?

    Fix for now is to stay on version 9.2.0 of the Stripe Payment Gateway plugin.

    I wonder if this is the same problem as I’m experiencing. I too use Woo Subscriptions. Using the Query Monitor plugin I can see that, when I’m accessing wp-admin, on every page there are 181 calls to api.stripe.com. It’s not causing a crash, but it is making each page take over 45 seconds to load.

    I’ve reverted back to 9.2.0 and the problem has stopped, so I suggest you do the same!

    Thread Starter vasdevdesign

    (@vasdevdesign)

    @noplanman yes, we have WooCommerce Subscriptions as well so that would make sense. I rolled back to 9.2.0 when I figured this was the issue and am waiting for a fix before updating again.

    One of our websites is throwing a fatal error when updating to the latest version (9.3.0) of the Stripe Gateway plugin

    Thank you for the report. The development team hasn’t been able to reproduce this yet, but we’re including a defensive fix in a shortly upcoming patch: https://github.com/woocommerce/woocommerce-gateway-stripe/pull/4075

    Can you provide any more information about what plugins or themes that may be installed that could introduce a compatibility issue here?

    Thread Starter vasdevdesign

    (@vasdevdesign)

    @cshultz88 everything indicates that it is a conflict with WooCommerce Subscriptions – tried disabling everything else and that’s the plugin where the issue comes up.

    Thank you, @vasdevdesign. The development team has released a 9.3.1 patch that should address this. Please let us know how that goes once you are able to update.

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

The topic ‘New version wp-admin error’ is closed to new replies.