Support » Plugin: WooCommerce Coupon Schedule » notice error

  • vocmarcello

    (@vocmarcello)


    errore in backend when i try to create a new schedule coupon
    Notice: Undefined offset: 1 in /public_html/wp-content/plugins/woocommerce-coupon-schedule/coupon-schedule.php on line 119
    if i publish first time coupon, the error gone and then i can put the date start/end and working with this trick
    why so? how fix

    and if i use this coupon in frontend in checkout page i have this very nice string

    Notice: id è stato richiamato in maniera scorretta. Coupon properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/enfold/page.php’), get_template_part, locate_template, load_template, require(‘/themes/enfold/includes/loop-page.php’), the_content, apply_filters(‘the_content’), WP_Hook->apply_filters, call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, WC_Shortcodes::checkout, WC_Shortcodes::shortcode_wrapper, call_user_func, WC_Shortcode_Checkout::output, WC_Shortcode_Checkout::checkout, do_action(‘woocommerce_check_cart_items’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Cart->check_cart_coupons, WC_Coupon->is_valid, apply_filters(‘woocommerce_coupon_is_valid’), WP_Hook->apply_filters, call_user_func_array, WooCommerceCouponSchedule->woocoupon_schedule_check_validity, WC_Legacy_Coupon->__get, wc_doing_it_wrong Leggi /public_html/wp-includes/functions.php on line 4139

    Notice: id è stato richiamato in maniera scorretta. Coupon properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/enfold/page.php’), get_template_part, locate_template, load_template, require(‘/themes/enfold/includes/loop-page.php’), the_content, apply_filters(‘the_content’), WP_Hook->apply_filters, call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, WC_Shortcodes::checkout, WC_Shortcodes::shortcode_wrapper, call_user_func, WC_Shortcode_Checkout::output, WC_Shortcode_Checkout::checkout, WC_Cart->calculate_totals, WC_Cart->get_discounted_price, WC_Coupon->is_valid, apply_filters(‘woocommerce_coupon_is_valid’), WP_Hook->apply_filters, call_user_func_array, WooCommerceCouponSchedule->woocoupon_schedule_check_validity, WC_Legacy_Coupon->__get, wc_doing_it_wrong Leggi Debugging in WordPress per maggiori i in /public_html/wp-includes/functions.php on line 4139

    Notice: id è stato richiamato in maniera scorretta. Coupon properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/enfold/page.php’), get_template_part, locate_template, load_template, require(‘/themes/enfold/includes/loop-page.php’), the_content, apply_filters(‘the_content’), WP_Hook->apply_filters, call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, WC_Shortcodes::checkout, WC_Shortcodes::shortcode_wrapper, call_user_func, WC_Shortcode_Checkout::output, WC_Shortcode_Checkout::checkout, WC_Cart->calculate_totals, WC_Cart->get_discounted_price, WC_Coupon->is_valid, apply_filters(‘woocommerce_coupon_is_valid’), WP_Hook->apply_filters, call_user_func_array, WooCommerceCouponSchedule->woocoupon_schedule_check_validity, WC_Legacy_Coupon->__get, wc_doing_it_wrong Leggi Debugging in WordPress per maggiori i in /public_html/wp-includes/functions.php on line 4139

    • This topic was modified 10 months ago by  vocmarcello.
  • The topic ‘notice error’ is closed to new replies.