Title: JS error when filter is checked
Last modified: September 1, 2016

---

# JS error when filter is checked

 *  Resolved [gfardoux](https://wordpress.org/support/users/gfardoux/)
 * (@gfardoux)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/js-error-when-filter-is-checked/)
 * Hi
 * Sorry for my english, i’m french.. so i’ll try to explain my bug.
 * I made my own template, based on 0 parent template. When i want to include the
   filter as widget on my taxonomy page, i got a bug :
 * VM34672:1 Uncaught SyntaxError: Unexpected token < in JSON at position 0
 * i got them when i click a checkbox filter.
 * i tried to display on simple page the shortcode.. and same result. I got wp_head()
   and wp_footer in my template, and i load jquery normaly.
 * Can you help me please ? Because i really need this amazing plugin.. thanks for
   it !
 * This is the link of the custom website : [http://www.gfardoux.ovh/type-offre/mobile/](http://www.gfardoux.ovh/type-offre/mobile/)
 * [https://wordpress.org/plugins/filter-custom-fields-taxonomies-light/](https://wordpress.org/plugins/filter-custom-fields-taxonomies-light/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [websupporter](https://wordpress.org/support/users/websupporter/)
 * (@websupporter)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/js-error-when-filter-is-checked/#post-7564577)
 * Hi gfardoux,
    it looks like you found another filter solution already?
 * Regarding the JS Error. The ajax output needs to be in a proper JSON format. 
   It can happen that due to other plugins or the theme the output is not in a proper
   JSON because they output characters before my plugin outputs the JSON string 
   and exits WordPress.
 * So a solution would be to check, which plugin might be involved in this by disabeling
   the plugins one after the other.

Viewing 1 replies (of 1 total)

The topic ‘JS error when filter is checked’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/filter-custom-fields-taxonomies-light_ffffff.
   svg)
 * [Filter Custom Fields & Taxonomies Light](https://wordpress.org/plugins/filter-custom-fields-taxonomies-light/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/filter-custom-fields-taxonomies-light/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/filter-custom-fields-taxonomies-light/)
 * [Active Topics](https://wordpress.org/support/plugin/filter-custom-fields-taxonomies-light/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/filter-custom-fields-taxonomies-light/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/filter-custom-fields-taxonomies-light/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [websupporter](https://wordpress.org/support/users/websupporter/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/js-error-when-filter-is-checked/#post-7564577)
 * Status: resolved