Support » Plugin: WooCommerce » Internal Server Error after update to 4.0 Tail Log

  • Resolved elitster

    (@elitster)


    Here is the tail log to the error I am receiving when submitting a purchase from my cart. Updated to plugin 4.0 and updated database. Can you please assist? Thank you

    [18-Mar-2020 22:21:45 UTC] prices_include_tax was called incorrectly. Order properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_checkout’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Paypal_Advanced->process_payment, WC_Paypal_Advanced->get_secure_token, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
    [18-Mar-2020 22:21:45 UTC] PHP Fatal error: Uncaught Error: Call to undefined method WC_Order::get_order_discount() in /home1/whitell3/public_html/wp-content/plugins/woocommerce-gateway-paypal-advanced/class-wc-paypal-advanced.php:389
    Stack trace:
    #0 /home1/whitell3/public_html/wp-content/plugins/woocommerce-gateway-paypal-advanced/class-wc-paypal-advanced.php(752): WC_Paypal_Advanced->get_secure_token(Object(WC_Order))
    #1 /home1/whitell3/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(928): WC_Paypal_Advanced->process_payment(2060)
    #2 /home1/whitell3/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1131): WC_Checkout->process_order_payment(2060, ‘paypal_advanced’)
    #3 /home1/whitell3/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(464): WC_Checkout->process_checkout()
    #4 /home1/whitell3/public_html/wp-includes/class-wp-hook.php(288): WC_AJAX::checkout(”)
    #5 /home1/whitell3/public_html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(”, Array)
    #6 /home1/whitell3/public_ in /home1/whitell3/public_html/wp-content/plugins/woocommerce-gateway-paypal-advanced/class-wc-paypal-advanced.php on line 389

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support wbrubaker

    (@wbrubaker)

    The call to get_order_discount was removed from PayPal Advanced in 2015. You will want to update PayPal Advanced to the most recent version to solve this particular fatal error.

    Plugin Support wbrubaker

    (@wbrubaker)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Internal Server Error after update to 4.0 Tail Log’ is closed to new replies.