Support » Plugin: Product Customer List for WooCommerce » Errors on latest Woo

  • Resolved Mihai Joldis

    (@misulicus)



    PHP Fatal error:  Uncaught Error: Call to undefined method WC_Order_Refund::get_refunds() in /wp-content/plugins/wc-product-customer-list/views/table-customer-list.php:123
    PHP Fatal error:  Uncaught Error: Call to undefined method WC_Order_Refund::get_order_number() in /wp-content/plugins/wc-product-customer-list/views/table-customer-list.php:128
    
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Kokomo

    (@kokomoweb)

    Hi Mihai,

    Can you confirm that wordpress, woocommerce and my plugin are all at the latest version? ALso, are you sure that woocommerce is activated?

    Yep everything is up to date.

    Plugin Author Kokomo

    (@kokomoweb)

    Have you tried deactivating all plugins except for my plugin and Woocommerce? If that doesn’t work, please try changing your theme to twentysixteen or another default theme, so we can rule out a theme problem

    Woo does not have a get_order_number method anymore in the order refund class
    And yes tested with just bare plugins and default theme

    Yep tried that

    Plugin Author Kokomo

    (@kokomoweb)

    Ok let me have a quick look and i’ll get back to you. thank-you!

    Plugin Author Kokomo

    (@kokomoweb)

    Actually i’m checking first if the order is a refund or not, and then I use the function, which is in the WC 3.0 docs:
    https://docs.woocommerce.com/wc-apidocs/class-WC_Order.html

    I’ll investigate further, but it’s strange since none of my installs have that issue and you are the only person that got this issue up to now, of over 1000 active installs.

    Plugin Author Kokomo

    (@kokomoweb)

    I just pushed an update (2.4.8) that might fix your issue. Please update the plugin to the latest version and let me know if it works.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Errors on latest Woo’ is closed to new replies.