• Customers haven’t been able to checkout for 2 days now!

    From the WP log:

    [27-Apr-2017 18:00:46 UTC] PHP Fatal error: Uncaught Error: Call to undefined method WC_Order::get_id() in /var/www/mysite.com/wp-content/plugins/gift-cards-for-woocommerce/includes/giftcard-checkout.php:423
    Stack trace:
    #0 /var/www/mysite.com/wp-includes/class-wp-hook.php(298): rpgc_add_order_giftcard(Array, Object(WC_Order))
    #1 /var/www/mysite.com/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array)
    #2 /var/www/mysite.com/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php(1928): apply_filters(‘woocommerce_get…’, Array, Object(WC_Order))
    #3 /var/www/mysite.com/wp-content/plugins/woocommerce/templates/emails/email-order-details.php(49): WC_Abstract_Order->get_order_item_totals()
    #4 /var/www/mysite.com/wp-content/plugins/woocommerce/includes/wc-core-functions.php(199): include(‘/var/www/blendb…’)
    #5 /var/www/mysite.com/wp-content/plugins/woocommerce/includes/class-wc-emails.php(266): wc_get_template(’emails/email-or…’, Array)
    #6 /var/www/mysite.com/wp-includes/class-wp-hook.php(298): WC_Emails->ord in /var/www/mysite.com/wp-content/plugins/gift-cards-for-woocommerce/includes/giftcard-checkout.php on line 423

Viewing 4 replies - 1 through 4 (of 4 total)
  • @imkane – Can you try uninstalling the plugin and reinstalling the plugin? Please backup your site before doing so!

    I have same problem after giftcard update
    /wp-content/plugins/gift-cards-for-woocommerce/includes/giftcard-checkout.php:423

    Jason

    (@galapogos01)

    I have the same problem. You broke my cart. Seems to be a compatibility issue with WC 2.6. Not happy!

    I’ve just had this issue myself too. You’re correct in that it is a compatibility issue with WooCommerce 2.6. From what I can see the get_id() method for WC_Order wasn’t introduced until 2.7, and the gift cards plugin is using this method to get the orders id.

    If you’re not sure about updating WooCommerce to 3.0.5 just yet, then an update to 2.7 should fix the issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Latest update BROKE EVERYTHING! EMERGENCY’ is closed to new replies.