• Hi there

    The versions 2.x of your plugin throws this fatal error on the checkout page (?wc-ajax=checkout).

    Fatal error: Uncaught Error: Call to a member function getId() on null in /wp-content/plugins/woo-payrexx-gateway/src/Model/PaymentMethod/Abstract/Base.php:103
    
    Stack trace:
    #0 /wp-content/plugins/woo-payrexx-gateway/src/Model/PaymentMethod/Abstract/Base.php(94): WC_Payrexx_Gateway_Base->process_redirect(NULL, Object(WC_Order))
    
    #1 /wp-content/plugins/woo-payrexx-gateway/src/Model/PaymentMethod/Abstract/SubscriptionBase.php(88): WC_Payrexx_Gateway_Base->process_payment(2185)
    
    #2 /wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1050): WC_Payrexx_Gateway_SubscriptionBase->process_payment(2185)
    
    #3 /wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1279): WC_Checkout->process_order_payment(2185, 'payrexx')
    
    #4 /wp-content/plugins/woocommerce/includes/class-wc-ajax.php(507): WC_Checkout->process_checkout()
    
    #5 /wp-includes/class-wp-hook.php(308): WC_AJAX::checkout('')
    
    #6 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    
    #7 /wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    
    #8 /wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action('wc_ajax_checkou...')
    
    #9 /wp-includes/class-wp-hook.php(308): WC_AJAX::do_wc_ajax('')
    
    #10 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(false, Array)
    
    #11 /wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    
    #12 /wp-includes/template-loader.php(13): do_action('template_redire...')
    
    #13 /wp-blog-header.php(19): require_once('...')
    
    #14 /index.php(17): require('...')
    
    #15 {main} thrown in /wp-content/plugins/woo-payrexx-gateway/src/Model/PaymentMethod/Abstract/Base.php on line 103

    Version 1.9.10 is the latest version which works for us.

    WordPress: 6.2.2
    WooCommerce: 7.8.0
    PHP 8.1.20

    Steps to reproduce:
    Add some stuff to the cart.
    Go to checkout.
    Fill address information.
    Select Payrexx as payment option.
    Accept terms and conditions.
    Open Chrome dev tools, select network tab.
    Click order now button.
    See the latest response entry in dev tools..

    Is there any solution to this?

    Thanks in?advance and kind regards

  • The topic ‘Fatal Error on Checkout Page’ is closed to new replies.