Support » Plugin: YITH Donations for WooCommerce » Undefined Index Errors on Cart Page

  • Howdy_McGee


    I’m receiving the following PHP error on the cart page:

    PHP Notice:  Undefined index: ywcds_product_id in wp-content\plugins\yith-donations-for-woocommerce\includes\classes\class.yith-woocommerce-donations.php on line 628
    PHP Stack trace:
    PHP   1. {main}() index.php:0
    PHP   2. require() index.php:17
    PHP   3. require_once() wp-blog-header.php:19
    PHP   4. include() wp-includes\template-loader.php:78
    PHP   5. the_content() wp-content\themes\mytheme\page.php:13
    PHP   6. apply_filters() wp-includes\post-template.php:247
    PHP   7. WP_Hook->apply_filters() wp-includes\plugin.php:208
    PHP   8. do_shortcode() wp-includes\class-wp-hook.php:286
    PHP   9. preg_replace_callback() wp-includes\shortcodes.php:199
    PHP  10. do_shortcode_tag() wp-includes\shortcodes.php:199
    PHP  11. WC_Shortcodes::cart() wp-includes\shortcodes.php:325
    PHP  12. WC_Shortcodes::shortcode_wrapper() wp-content\plugins\woocommerce\includes\class-wc-shortcodes.php:85
    PHP  13. WC_Shortcode_Cart::output() wp-content\plugins\woocommerce\includes\class-wc-shortcodes.php:72
    PHP  14. wc_get_template() wp-content\plugins\woocommerce\includes\shortcodes\class-wc-shortcode-cart.php:93
    PHP  15. include() wp-content\plugins\woocommerce\includes\wc-core-functions.php:249
    PHP  16. apply_filters() wp-content\plugins\woocommerce\templates\cart\cart.php:77
    PHP  17. WP_Hook->apply_filters() wp-includes\plugin.php:208
    PHP  18. YITH_WC_Donations->print_cart_item_donation() wp-includes\class-wp-hook.php:286

    This error appears after I’ve added a donation to my cart.

Viewing 1 replies (of 1 total)
  • Plugin Author YITHEMES



    Thank you again for your reporting. It will be fixed in the next version of the plugin.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.