Title: Warning: Undefined array key &#8220;id&#8221;
Last modified: September 22, 2022

---

# Warning: Undefined array key “id”

 *  Resolved [Redyan](https://wordpress.org/support/users/redyan/)
 * (@redyan)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-id-2/)
 * Good morning everyone,
    within the detail of each product, if I choose the Variations
   item from the menu and expand a single variation, I have the following error:
 *     ```
       Warning: Undefined array key "id" in /wp-content/plugins/woocommerce/includes/admin/wc-meta-box-functions.php on line 68
   
       Warning: Undefined array key "id" in /wp-content/plugins/woocommerce/includes/admin/wc-meta-box-functions.php on line 69
   
       Custom name
   
       Warning: Undefined array key "id" in /wp-content/plugins/woocommerce/includes/admin/wc-meta-box-functions.php on line 75
       ```
   
 * Unfortunately I have no idea how to fix the problem. WordPress version is updated
   to 6.0.2 with PHP 8
 * Can anyone help me?
 * Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Redyan](https://wordpress.org/support/users/redyan/)
 * (@redyan)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-id-2/#post-16046433)
 * After a debugging session I found the source of the error. Is a wordpress theme
   plugin (BoldThemes WordPress Importer). I will open a ticket to their support
   service. Thank you all and sorry for the inconvenience.
 *  [JiveDig](https://wordpress.org/support/users/jivedig/)
 * (@jivedig)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-id-2/#post-16325967)
 * [@redyan](https://wordpress.org/support/users/redyan/) I’m hitting the same thing
   on a custom theme. Did you ever figure this out? I’ve hit this on another site
   and it has me looking for an alternative.
 * When I dump the `$variation` variable, I get:
 * `Array
   ([name] => woovr_name[16337][label] => Custom name[value] =>[placeholder]
   =>[class] => short[style] =>[wrapper_class] =>[type] => text[desc_tip] =>)
 * There is no key/index of `id`.
 * Seems like there should be a `wp_parse_args()` there or something to make sure
   all required attributes are there.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Warning: Undefined array key “id”’ is closed to new replies.

 * ![](https://ps.w.org/wpc-variations-radio-buttons/assets/icon-128x128.png?rev
   =2136729)
 * [WPC Variations Radio Buttons for WooCommerce](https://wordpress.org/plugins/wpc-variations-radio-buttons/)
 * [Support Threads](https://wordpress.org/support/plugin/wpc-variations-radio-buttons/)
 * [Active Topics](https://wordpress.org/support/plugin/wpc-variations-radio-buttons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpc-variations-radio-buttons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpc-variations-radio-buttons/reviews/)

## Tags

 * [radio buttons](https://wordpress.org/support/topic-tag/radio-buttons/)
 * [variations](https://wordpress.org/support/topic-tag/variations/)

 * 2 replies
 * 2 participants
 * Last reply from: [JiveDig](https://wordpress.org/support/users/jivedig/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-id-2/#post-16325967)
 * Status: resolved