• Resolved Sergei Richard

    (@sergeirichardhotmailcom)


    Something seems to be up with 2.8.0. As soon as I upgraded, settings for currency display broke, and I received this fatal error from the WordPress install itself:

    Error Details
    =============
    An error of type E_ERROR was caused in line 45 of the file /home/l561098/public_html/jimdemo/wp-content/plugins/woocommerce-payments/includes/admin/class-wc-rest-payments-orders-controller.php. Error message: Uncaught ArgumentCountError: Too few arguments to function WC_REST_Payments_Orders_Controller::__construct(), 2 passed in /home/l561098/public_html/jimdemo/wp-content/plugins/woocommerce-payments/includes/class-wc-payments.php on line 712 and exactly 3 expected in /home/l561098/public_html/jimdemo/wp-content/plugins/woocommerce-payments/includes/admin/class-wc-rest-payments-orders-controller.php:45
    Stack trace:
    #0 /home/l561098/public_html/jimdemo/wp-content/plugins/woocommerce-payments/includes/class-wc-payments.php(712): WC_REST_Payments_Orders_Controller->__construct(Object(WC_Payments_API_Client), Object(WCPay\Payment_Methods\CC_Payment_Gateway))
    #1 /home/l561098/public_html/jimdemo/wp-includes/class-wp-hook.php(303): WC_Payments::init_rest_api(Object(WP_REST_Server))
    #2 /home/l561098/public_html/jimdemo/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
    #3 /home/l561098/public_html/jimdemo/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #4 /home/l561098/public_html/jimdemo/wp-

    So I’m disabling WooCommerce Payments, at least for now. To be honest, I couldn’t see any advantage to using it anyway.

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

    (@melindahelt)

    Automattic Happiness Engineer

    Hi there!

    It appears that the end of the error might be cut off, could you please make sure to share the entire error. You can find this from WooCommerce > Status > Log files

    Also, Could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response.

    Finally, you mentioned “currency display broke” – can you explain a bit more about what you are seeing?

    Plugin Support 3 Sons Development – a11n

    (@3sonsdevelopment)

    Hi @sergeirichardhotmailcom,

    If you haven’t updated to the latest patched version (2.8.3) go and do that now. Let us know if you run into issues after that.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Version 2.8.0 broken?’ is closed to new replies.