Undefined array key 2″ Error in class_ycve_admin.php
-
Hello,
I am experiencing an issue with the “Variation Auto Expire for WooCommerce” plugin on my website. A PHP warning appears when saving product variations, indicating an “undefined array key 2.” The full error message is as follows:
Warning: Undefined array key 2 in wp-content/plugins/variation-auto-expire-for-woocommerce/admin/class_ycve_admin.php on line 143The error occurs when saving variations of a product, both in the backend and when saving via AJAX (triggered by
wp_ajax_woocommerce_save_variations
).Error Message:
Object
component: “Plugin: variation-auto-expire-for-woocommerce”
file: “wp-content/plugins/variation-auto-expire-for-woocommerce/admin/class_ycve_admin.php”
key: “44ab36dbd58769a96bc003ba0da43226”
line: 143
message: “Undefined array key 2”
stack: (5) [‘Ycve\Variation\Ycve_Admin->ycve_save_exp_date_variations()’, “do_action(‘woocommerce_save_product_variation’)”, ‘WC_Meta_Box_Product_Data::save_variations()’, ‘WC_AJAX::save_variations()’, “do_action(‘wp_ajax_woocommerce_save_variations’)”]
type: “warning”Question:
- Can you please assist me in resolving this issue? Are there any known fixes or adjustments that need to be made in order to prevent this error from occurring?
Thank you in advance for your help!
Best regards
- You must be logged in to reply to this topic.