Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hello, I’m getting the same error after upgrading woocommerce to 2.2:

    WARNING: MISSING ARGUMENT 1 FOR WC_ORDER::__CONSTRUCT(), CALLED IN
    /HOME/FASHI833/PUBLIC_HTML/WP-CONTENT/THEMES/LABOMBA/WOOCOMMERCE/MYACCOUNT/MY-ORDERS.PHP
    ON LINE 42 AND DEFINED IN /HOME/FASHI833/PUBLIC_HTML/WP-CONTENT/PLUGINS/WOOCOMMERCE/INCLUDES/CLASS-WC-ORDER.PHP ON LINE 19

    I saw here that the solution that worked for the rest was replacing:

    $order = new WC_Order();
    $order->populate( $some_var );

    with

    $order = new WC_Order( $order_id );

    Since I’m new to all of this, could you please let me know which .php file do I need to add this to?

    Thanks in advance.

Viewing 1 replies (of 1 total)