Title: Variable Product Error
Last modified: March 21, 2019

---

# Variable Product Error

 *  Resolved [Kézily Correa](https://wordpress.org/support/users/kezily/)
 * (@kezily)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/variable-product-error-2/)
 * Hello,
 * This error is showing in my error.log.
 * `Warning: array_filter() expects parameter 1 to be array, string given in /mypath/
   wp-content/plugins/woocommerce/includes/class-wc-product-variation.php on line
   170`
 * Only the WooCommerce plugin is installed and I’m using the Twenty Nineteen theme.
 * I tested it with other themes and the error remains.
 * WordPress: 5.1.1
    WooCommerce: 3.5.7

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

 *  [Peter Lawrenson](https://wordpress.org/support/users/lorro/)
 * (@lorro)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/variable-product-error-2/#post-11341309)
 * I was unable to reproduce the error. It has occurred in a section of code that
   makes the permalink for a product variation, and uses the variation’s attributes
   to make the permalink.
 * Perhaps you have a product variation in the cart, in an order or in a page link,
   and have since modified or deleted the attributes for that variation.
 *  Thread Starter [Kézily Correa](https://wordpress.org/support/users/kezily/)
 * (@kezily)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/variable-product-error-2/#post-11343619)
 * [@lorro](https://wordpress.org/support/users/lorro/) this error happens in the
   cart and mini cart. I have already exclude the products and create again, the
   error continues.
 * This error started on WooCommerce update.
 *  [Peter Lawrenson](https://wordpress.org/support/users/lorro/)
 * (@lorro)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/variable-product-error-2/#post-11345318)
 * Please post the url to your site.
 *  Thread Starter [Kézily Correa](https://wordpress.org/support/users/kezily/)
 * (@kezily)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/variable-product-error-2/#post-11345466)
 * I can not because it’s from a client.
 *  [Peter Lawrenson](https://wordpress.org/support/users/lorro/)
 * (@lorro)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/variable-product-error-2/#post-11345507)
 * I just loaded Twenty-Nineteen. Where did you put the mini-cart as 2019 doesn’t
   have a sidebar or header widget area. If I can I’ll try it.
 *  Plugin Support [John Coy a11n](https://wordpress.org/support/users/johndcoy/)
 * (@johndcoy)
 * Automattic Happiness Engineer
 * [7 years, 1 month ago](https://wordpress.org/support/topic/variable-product-error-2/#post-11367874)
 * Hi [@kezily](https://wordpress.org/support/users/kezily/)
 * [@lorro](https://wordpress.org/support/users/lorro/) is spot on. Typically issues
   like this are caused by a theme or plugin conflict. Try switching back to a default
   theme like Twenty Nineteen and diable all plugins except for WooCommerce. If 
   this helps, then re-enable each one at a time until you find the one that’s causing
   the conflict.
 *  Thread Starter [Kézily Correa](https://wordpress.org/support/users/kezily/)
 * (@kezily)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/variable-product-error-2/#post-11368023)
 * Thank you [@johndcoy](https://wordpress.org/support/users/johndcoy/), but as 
   I said, only the WooCommerce plugin is installed and I’m using the Twenty Nineteen
   theme.
 *  [Dat Hoang](https://wordpress.org/support/users/htdat/)
 * (@htdat)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/variable-product-error-2/#post-11377968)
 * [@kezily](https://wordpress.org/support/users/kezily/) – Thanks for replying 
   us.
 * 1. Since you can not provide us the website link, can you please give us the 
   steps to replicate the issue?
 * 2. This question from [@lorro](https://wordpress.org/support/users/lorro/) (thank
   you!) is valid to continue troubleshooting the issue. Please give us the info
   for it:
 * > Where did you put the mini-cart as 2019 doesn’t have a sidebar or header widget
   > area. If I can I’ll try it.
 * Thanks.
 * —–
 * Quick reference for the error line – [https://github.com/woocommerce/woocommerce/blob/3.5.7/includes/class-wc-product-variation.php#L170](https://github.com/woocommerce/woocommerce/blob/3.5.7/includes/class-wc-product-variation.php#L170)
 *  [Mike M. a11n](https://wordpress.org/support/users/mikedmoore/)
 * (@mikedmoore)
 * Automattic Happiness Engineer
 * [7 years ago](https://wordpress.org/support/topic/variable-product-error-2/#post-11435579)
 * Hi there,
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   if you have any further questions, you can start a new thread.

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

The topic ‘Variable Product Error’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [variable product](https://wordpress.org/support/topic-tag/variable-product/)

 * 9 replies
 * 5 participants
 * Last reply from: [Mike M. a11n](https://wordpress.org/support/users/mikedmoore/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/variable-product-error-2/#post-11435579)
 * Status: resolved