• Resolved fabsworld

    (@fabsworld)


    Hello,

    When i try to checkout I get this message

    Fatal error: Call to undefined method WC_Order::get_status() in /home/fabsworl/domains/fabsworld.nl/public_html/wp-content/plugins/pronamic-ideal/vendor/wp-pay-extensions/woocommerce/src/Gateway.php on line 213

    When I look on line 213 I get this:
    if ( $new_status_slug === $order->get_status() || isset( $order->wc_deposits_remaining ) ) {

    Please help me, I dont know how to solve it

    https://wordpress.org/plugins/pronamic-ideal/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Reüel

    (@pronamic_reuel)

    Which version of WooCommerce do you use?

    Thread Starter fabsworld

    (@fabsworld)

    2.1.9

    Plugin Author Reüel

    (@pronamic_reuel)

    The latest version of WooCommerce is 2.6.4 (see https://wordpress.org/plugins/woocommerce/). 4.5.3 is the version number of WordPress.

    Please see the Plugins page in your WordPress dashboard to find the version number of WooCommerce.

    Thread Starter fabsworld

    (@fabsworld)

    Yes I know, our WooCommerce version is 2.1.9

    Plugin Author Reüel

    (@pronamic_reuel)

    I see you’ve updated your post with the correct version number 🙂 WooCommerce 2.1.9 is outdated (released in May 2014), but you can restore compatibility fairly easy by changing the mentioned line 213 in the file /wp-content/plugins/pronamic-ideal/vendor/wp-pay-extensions/src/Gateway.php.

    Replace the current line:

    if ( $new_status_slug === $order->get_status() || isset( $order->wc_deposits_remaining ) ) {

    with:

    if ( method_exists( $this->order, 'get_status' ) ) {
    	$order_status = $order->get_status();
    } else {
    	$order_status = $order->status;
    }
    
    if ( $new_status_slug === $order_status || isset( $order->wc_deposits_remaining ) ) {

    We’ll add this fix to restore compatibility with older versions of WooCommerce in the next update of Pronamic iDEAL too.

    Thread Starter fabsworld

    (@fabsworld)

    Thankyou very much!! It worked ! 😀

    Plugin Author Reüel

    (@pronamic_reuel)

    You’re welcome, glad it’s working!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Fatal error’ is closed to new replies.