Title: Error when add to sidebar
Last modified: August 18, 2023

---

# Error when add to sidebar

 *  [Dennis](https://wordpress.org/support/users/dennisskr/)
 * (@dennisskr)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/error-when-add-to-sidebar/)
 *     ```wp-block-code
       I got the following Error when i add the filter to the Shop Sidebar instead of the filter:
   
       Warning: array_intersect(): Expected parameter 1 to be an array, string given in /home/customer/www/coontex.de/public_html/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-query.php on line 1041
   
       Warning: count(): Parameter must be an array or an object that implements Countable in /home/customer/www/coontex.de/public_html/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/filters/class-yith-wcan-filter-tax.php on line 396
   
       Warning: array_intersect(): Expected parameter 1 to be an array, string given in /home/customer/www/coontex.de/public_html/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-query.php on line 1041
   
       Warning: count(): Parameter must be an array or an object that implements Countable in /home/customer/www/coontex.de/public_html/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/filters/class-yith-wcan-filter-tax.php on line 396
   
       Warning: array_intersect(): Expected parameter 1 to be an array, string given in /home/customer/www/coontex.de/public_html/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-query.php on line 1041
   
       Warning: count(): Parameter must be an array or an object that implements Countable in /home/customer/www/coontex.de/public_html/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/filters/class-yith-wcan-filter-tax.php on line 396
   
       Warning: array_intersect(): Expected parameter 1 to be an array, string given in /home/customer/www/coontex.de/public_html/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-query.php on line 1041
   
       Warning: count(): Parameter must be an array or an object that implements Countable in /home/customer/www/coontex.de/public_html/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/filters/class-yith-wcan-filter-tax.php on line 396
   
       Warning: array_intersect(): Expected parameter 1 to be an array, string given in /home/customer/www/coontex.de/public_html/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-query.php on line 1041
   
       Warning: count(): Parameter must be an array or an object that implements Countable in /home/customer/www/coontex.de/public_html/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/filters/class-yith-wcan-filter-tax.php on line 396
   
       Warning: array_intersect(): Expected parameter 1 to be an array, string given in /home/customer/www/coontex.de/public_html/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-query.php on line 1041
   
       Warning: count(): Parameter must be an array or an object that implements Countable in /home/customer/www/coontex.de/public_html/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/filters/class-yith-wcan-filter-tax.php on line 396
   
       Warning: array_intersect(): Expected parameter 1 to be an array, string given in /home/customer/www/coontex.de/public_html/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-query.php on line 1041
   
       Warning: count(): Parameter must be an array or an object that implements Countable in /home/customer/www/coontex.de/public_html/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/filters/class-yith-wcan-filter-tax.php on line 396
   
       Warning: array_intersect(): Expected parameter 1 to be an array, string given in /home/customer/www/coontex.de/public_html/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-query.php on line 1041
   
       Warning: count(): Parameter must be an array or an object that implements Countable in /home/customer/www/coontex.de/public_html/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/filters/class-yith-wcan-filter-tax.php on line 396
   
       Warning: array_intersect(): Expected parameter 1 to be an array, string given in /home/customer/www/coontex.de/public_html/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-query.php on line 1041
   
       Warning: count(): Parameter must be an array or an object that implements Countable in /home/customer/www/coontex.de/public_html/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/filters/class-yith-wcan-filter-tax.php on line 396
   
       Warning: array_intersect(): Expected parameter 1 to be an array, string given in /home/customer/www/coontex.de/public_html/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-query.php on line 1041
   
       Warning: count(): Parameter must be an array or an object that implements Countable in /home/customer/www/coontex.de/public_html/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/filters/class-yith-wcan-filter-tax.php on line 396
   
       Warning: array_intersect(): Expected parameter 1 to be an array, string given in /home/customer/www/coontex.de/public_html/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-query.php on line 1041
   
       Warning: count(): Parameter must be an array or an object that implements Countable in /home/customer/www/coontex.de/public_html/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/filters/class-yith-wcan-filter-tax.php on line 396
   
       Warning: array_intersect(): Expected parameter 1 to be an array, string given in /home/customer/www/coontex.de/public_html/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-query.php on line 1041
   
       Warning: count(): Parameter must be an array or an object that implements Countable in /home/customer/www/coontex.de/public_html/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/filters/class-yith-wcan-filter-tax.php on line 396
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-when-add-to-sidebar%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Facundo A.](https://wordpress.org/support/users/aranofacundo/)
 * (@aranofacundo)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/error-when-add-to-sidebar/#post-16995275)
 * Hi there,
 * We have been able to replicate the issue, but we will need to do some more tests
   to find the solution.
 * In the meantime, please, try adding the following PHP code in the functions.php
   file of your current theme and then check if the issue is solved:
 *     ```wp-block-code
       add_filter( 'yith_wcan_suppress_cache', '__return_true' );
       ```
   
 * Let us know if this helped you.
 *  Thread Starter [Dennis](https://wordpress.org/support/users/dennisskr/)
 * (@dennisskr)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/error-when-add-to-sidebar/#post-16995317)
 * Hi,
 * thanks for your reply. It helps the filters are now showing without any problems.
 * best regards
 *  Plugin Support [Alessio Torrisi](https://wordpress.org/support/users/alessio91/)
 * (@alessio91)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/error-when-add-to-sidebar/#post-17006427)
 * Hi there,
 * we’re going to release a new version Today, please remove the code we provided
   as soon as you’ll update.
 * Thank you for your great cooperation.

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

The topic ‘Error when add to sidebar’ is closed to new replies.

 * ![](https://ps.w.org/yith-woocommerce-ajax-navigation/assets/icon-256x256.gif?
   rev=3129944)
 * [YITH WooCommerce Ajax Product Filter](https://wordpress.org/plugins/yith-woocommerce-ajax-navigation/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yith-woocommerce-ajax-navigation/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yith-woocommerce-ajax-navigation/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-woocommerce-ajax-navigation/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-woocommerce-ajax-navigation/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-woocommerce-ajax-navigation/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Alessio Torrisi](https://wordpress.org/support/users/alessio91/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/error-when-add-to-sidebar/#post-17006427)
 * Status: not resolved