Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Vidish

    (@vidishp)

    @timchannel Sorry for the trouble caused.

    Can you please share the error log for our plugin? You can find it under Woocommerce >> Status >> Logs (select today’s date log)

    That will help me understand the issue.

    THank you,
    Vidish

    Thread Starter TimDD

    (@timchannel)

    Hi Vidish,

    Does this help?

    2021-04-30T08:36:31+00:00 CRITICAL Uncaught Exception: Invalid coupon. in /var/www/html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-coupon-data-store-cpt.php:118
    Stack trace:
    #0 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): WC_Coupon_Data_Store_CPT->read()
    #1 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-coupon.php(133): WC_Data_Store->read()
    #2 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-coupon.php(121): WC_Coupon->read_object_from_database()
    #3 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1706): WC_Coupon->__construct()
    #4 /var/www/html/wp-content/plugins/woocommerce/includes/legacy/class-wc-legacy-cart.php(306): WC_Cart->apply_coupon()
    #5 /var/www/html/wp-content/plugins/first-order-discount-woocommerce/fodw-coupon.php(55): WC_Legacy_Cart->add_discount()
    #6 /var/www/html/wp-includes/class-wp-hook.php(292): fodw_apply_discount()
    #7 /var/www/html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()
    #8 /var/www/html/wp- in /var/www/html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-coupon-data-store-cpt.php on line 118

    Plugin Author Vidish

    (@vidishp)

    @timchannel Yes! That helps!

    Can you try to do following:
    1. Deactivate our plugin
    2. Activate our plugin
    3. Save it’s configuration

    Let me know if this fixes the issue.

    Thanks,
    Vidish

    Thread Starter TimDD

    (@timchannel)

    Hey @vidishp Fails with the same error and stack trace.

    Plugin Author Vidish

    (@vidishp)

    Ok, can you please check following:

    1. In your options table, there is an id with this meta_key “_fodw_coupon_id”
    2. The id that you found in #1, does that really exist in your system? Try editing it.
    3. If the id exists in #2, then can you try applying the coupon manually on your cart and see if you are able to apply the coupon?

    Let me know results for above steps.

    Thank you,
    Vidish

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WordPress 5.7 Woo 5.2.2’ is closed to new replies.