• 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 143

    The 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


Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author yakacj

    (@yakacj)

    Hello @bulls_shark,

    I’ve reviewed your message and tested the issue with my current setup: WordPress 6.7.2 and WooCommerce 9.6.2.

    Unfortunately, I couldn’t replicate the issue. To better assist you, could you please provide more details about your system’s current versions and the exactly on which action you’re getting this error or warning message? Your additional information will help me resolve the issue promptly.

    Thanks for using our Plugin, waiting for more details, so I can correctly addressed the issue and resolve it asap.

    Thread Starter bulls_shark

    (@bulls_shark)

    Hello, thank you, we wrote about an extension with the date readout. You already have the data. Thanks for the support

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