• When I am in the frontend and try to change the existing payment method for a WC subscription and choosing credit card where I added extra fees I will get following error:

    Fatal error: Uncaught Error: Call to a member function get_the_args_global()?on bool in?/home/customer/www/test-site.com/public_html/wp-content/plugins/checkout-fees-for-woocommerce/includes/class-alg-wc-checkout-fees.php:415

    Stack Trace
    
    1.        
    
    Alg_WC_Checkout_Fees->add_gateways_fees(Object(WC_Cart))
    
    /home/customer/www/testsite.com/public_html/wp-includes/class-wp-hook.php:307
    
    2.        
    
    WP_Hook->apply_filters(NULL, Array)
    
    /home/customer/www/testsite.com/public_html/wp-includes/class-wp-hook.php:331
    
    3.        
    
    WP_Hook->do_action(Array)
    
    /home/customer/www/testsite.com/public_html/wp-includes/plugin.php:474
    
    4.        
    
    do_action('woocommerce_car...', Object(WC_Cart))
    
    /home/customer/www/testsite.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php:1888
    
    5.        
    
    WC_Cart->calculate_fees()
    
    /home/customer/www/testsite.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:272
    
    6.        
    
    /home/customer/www/testsite.com/public_html/wp-content/plugins/woocommerce/includes/clas in /home/customer/www/testsite.com/public_html/wp-content/plugins/checkout-fees-for-woocommerce/includes/class-alg-wc-checkout-fees.php on line 415
Viewing 1 replies (of 1 total)
  • Plugin Author tychesoftwares

    (@tychesoftwares)

    Hi @animesubways,

    Thank you so much for bringing our notice to this. We will certainly work on this to address this bug.

    To reproduce this, may I know the PHP version you are using? I’ll keep trying to replicate this on our end.

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error when trying to change payment method for WooCommerce Subscription’ is closed to new replies.