• Resolved supportowpok

    (@supportowpok)


    hi,

    today we have received this error

    Fatal error: Uncaught Automattic\WooCommerce\GoogleListingsAndAds\Exception\InvalidValue: Invalid coupon ID: 6030 in /home/user/public_html/wp-content/plugins/google-listings-and-ads/src/Exception/InvalidValue.php:95 Stack trace: #0 /home/user/public_html/wp-content/plugins/google-listings-and-ads/src/Coupon/CouponHelper.php(190): Automattic\WooCommerce\GoogleListingsAndAds\Exception\InvalidValue::not_valid_coupon_id(6030) #1 /home/user/public_html/wp-content/plugins/google-listings-and-ads/src/Admin/MetaBox/CouponChannelVisibilityMetaBox.php(138): Automattic\WooCommerce\GoogleListingsAndAds\Coupon\CouponHelper->get_wc_coupon(6030) #2 /home/user/public_html/wp-content/plugins/google-listings-and-ads/src/Admin/MetaBox/AbstractMetaBox.php(107): Automattic\WooCommerce\GoogleListingsAndAds\Admin\MetaBox\CouponChannelVisibilityMetaBox->get_view_context(Object(WP_Post), Array) #3 /home/user/public_html/wp-admin/includes/template.php(1443): Automattic\WooCommerce\GoogleListingsAndAds\Admin\MetaBox\AbstractMetaBox->handle_callback(Object(WP_Post), Array) #4 /home/user/public_html/wp-admin/edit-form-advanced.php(681): do_meta_boxes(Object(WP_Screen), ‘side’, Object(WP_Post)) #5 /home/user/public_html/wp-admin/post.php(206): require(‘/home/userle…’) #6 {main} thrown in /home/user/public_html/wp-content/plugins/google-listings-and-ads/src/Exception/InvalidValue.php on line 95

    We cannot edit a coupon because your plugin get to fatal error

    Can you check?

Viewing 1 replies (of 1 total)
  • anastas10s

    (@anastas10s)

    Hi there @supportowpok ??

    Thank you for reaching out about this. I’d be happy to help you with it.

    We cannot edit a coupon because your plugin get to fatal error
    Can you check?

    I went ahead with investigating on this, and it appears that no changes have been recorded in the plugin’s changelog, in the past two available versions, nor a related issue posted on GitHub.

    Just to clarify, under what circumstances did the error started appearing?

    Furthermore, just to note, when you create or update a coupon in WP Admin under?Marketing > Coupons,?you’ll see a?Channel Visibility?settings box on the right; select?Show coupon on Google?to enable it. This is currently available in Australia, Canada, Germany, France, India, the United Kingdom, and the United States.

    To get an idea of how your site is configured, could you please share a copy of your site’s System Status, as exemplified here? Once you’ve done that, paste it here in your response.

    Looking forward to hearing from you!

Viewing 1 replies (of 1 total)
  • The topic ‘Invalid coupon’ is closed to new replies.