Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter nkals722

    (@nkals722)

    This also is an issue in the WooDecimalProduct_quantity_Input_Min function in the same file. Basically anywhere you call method_exists you need to make sure $product is an actual product before calling the method

    Plugin Author wpgear

    (@wpgear)

    Hello nkals722

    Try v.10.33

    I could not see your screenshot.

    Thread Starter nkals722

    (@nkals722)

    Try this:
    https://snipboard.io/4e3rDR.jpg

    A specific error message is:

    PHP Fatal error: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, bool given in /path/plugins/decimal-product-quantity-for-woocommerce/includes/admin_order.php:20

    I’ve laid out the exact cause of the issue tho. If it is trying to apply this to a product that doesn’t exist, it blows up.

    Thread Starter nkals722

    (@nkals722)

    10.33 Does appear to fix it, thank you.

    Thread Starter nkals722

    (@nkals722)

    Marking as resolved

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal Error Admin Order method_exists’ is closed to new replies.