Title: Undefined offset error when filter shows
Last modified: April 19, 2019

---

# Undefined offset error when filter shows

 *  Resolved [James Hunt](https://wordpress.org/support/users/bonkerz/)
 * (@bonkerz)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/undefined-offset-error-when-filter-shows/)
 * Hi
    I’m getting an error when adding the filter to my page:
 * `Notice: Undefined offset: 0 in /xxx/wp-content/plugins/woocommerce/includes/
   class-wc-query.php on line 453`
 * The filter subsequently doesn’t filter
 * Any ideas on why this error is showing?
 * Thanks!

Viewing 1 replies (of 1 total)

 *  Thread Starter [James Hunt](https://wordpress.org/support/users/bonkerz/)
 * (@bonkerz)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/undefined-offset-error-when-filter-shows/#post-11445799)
 * My bad, this was caused by a custom pre_get_posts that was not playing nice with
   the plugin. Once I disabled that, the error went away.

Viewing 1 replies (of 1 total)

The topic ‘Undefined offset error when filter shows’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-ajax-filters/assets/icon-256x256.gif?rev=2770304)
 * [Advanced AJAX Product Filters](https://wordpress.org/plugins/woocommerce-ajax-filters/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-ajax-filters/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-ajax-filters/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-ajax-filters/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-ajax-filters/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-ajax-filters/reviews/)

## Tags

 * [undefined offset](https://wordpress.org/support/topic-tag/undefined-offset/)

 * 1 reply
 * 1 participant
 * Last reply from: [James Hunt](https://wordpress.org/support/users/bonkerz/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/undefined-offset-error-when-filter-shows/#post-11445799)
 * Status: resolved