Title: Warning: Undefined array key &#8220;class&#8221;
Last modified: August 8, 2024

---

# Warning: Undefined array key “class”

 *  Resolved [fixait](https://wordpress.org/support/users/fixait/)
 * (@fixait)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-class/)
 * Hello,
 * In category page we have this error:
 * Warning: Undefined array key “class” in /disk_1/www/cz/xxx/www/wp-content/plugins/
   variation-swatches-woo/inc/swatches.php on line 683
 * We use Porto template. And last version on Woo. Where is the problem?
 * Thanks

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

 *  Plugin Support [Aamir](https://wordpress.org/support/users/aamiribsf/)
 * (@aamiribsf)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-class/#post-17949504)
 * Hello [@fixait](https://wordpress.org/support/users/fixait/),
 * Greetings for the day!
 * I have tride to check and replicate the same on my end but could see the warning
   message on category pages.
 * This could be due to some third-party plugin or theme conflict. Here’s what we
   can do to make sure:
 * Firstly, try to temporarily switch to another theme, like default themes like–
   Twenty-Twenty or Twenty Nineteen, and check if the error or issue persists.
 * Next, you can deactivate all the plugins temporarily variation swatches, and 
   WooCommerce and see if that solves the error. If it does then activate plugins
   one by one to see which plugin is causing the problem.
 * Learn more about troubleshooting in WordPress: [How to Troubleshoot a Conflict with the Plugin & Theme?](https://cartflows.com/docs/troubleshooting-steps/)
 * Hope this helps.
 * Let me know how it goes.
 *  Plugin Support [Aamir](https://wordpress.org/support/users/aamiribsf/)
 * (@aamiribsf)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-class/#post-17956774)
 * Hello [@fixait](https://wordpress.org/support/users/fixait/),
 * It’s been a while since we haven’t heard from you so we are marking this thread
   as resolved.
 * If you faced any other issues while using our product, feel free to start a new
   thread.
 * Best regards,

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

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

 * ![](https://ps.w.org/variation-swatches-woo/assets/icon.svg?rev=2850895)
 * [Variation Swatches for WooCommerce – Color, Image & Size Swatches](https://wordpress.org/plugins/variation-swatches-woo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/variation-swatches-woo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/variation-swatches-woo/)
 * [Active Topics](https://wordpress.org/support/plugin/variation-swatches-woo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/variation-swatches-woo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/variation-swatches-woo/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Aamir](https://wordpress.org/support/users/aamiribsf/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-class/#post-17956774)
 * Status: resolved