{"id":1018998,"date":"2015-10-27T11:27:15","date_gmt":"2015-10-27T18:27:15","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/js-error-when-using-filter-bar\/"},"modified":"2015-11-03T09:47:40","modified_gmt":"2015-11-03T17:47:40","slug":"js-error-when-using-filter-bar","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/js-error-when-using-filter-bar\/","title":{"rendered":"JS error when using Filter Bar"},"content":{"rendered":"<p>I&#8217;m getting a JS error when using the Filter Bar. This is with all other plugins deactivated, and with the site reverted to the twentyfourteen theme. It causes the Filter Bar JS interactions (expanding\/collapsing) to stop working.<\/p>\n<pre><code>\nInvalidValueError: not an Object\n(anonymous function)main.js:15:592\nMmain.js:19:1040\n(anonymous function)tribe-events-ajax-maps.min.js:1:3298\njjquery.js:1005\nfireWithjquery.js:1050\nreadyjquery.js:1118\nJjquery.js:1127\n<\/code><\/pre>\n<p>It seems this is something to do with Maps.<\/p>\n<p>As it wasn&#8217;t clear what was causing the error, I decided to start from scratch with a fresh WordPress install (using the twentyfifteen theme this time), installing the Events Calendar plugins, and then adding some events. I added the events by exporting them from the original site, and importing into the new site using the built in Export tool, and Import plugin.<\/p>\n<p>It was only when I imported the events that the error began to appear again. I then realised that each of the events had the &#8220;show Google Map&#8221; and &#8220;show Google Map link&#8221; options checked, but there was no address entered. I wondered if this was causing the issue. So I disabled the Google Map in the general settings (which seems to remove the &#8220;show Google Map&#8221; link from all events), and also went through each event and unchecked &#8220;show Google Map link&#8221;. However, the error remains.<\/p>\n<p>I even went as far, on the new site, as to delete all the events. Frustratingly, the error is still there, although with slightly different line numbers, probably due to using a different theme: <\/p>\n<pre><code>\nInvalidValueError: not an Object\n(anonymous function)js:37:592\nMjs:41:1040\n(anonymous function)tribe-events-ajax-maps.min.js:1:3298\njjquery.js:1:27314\nfireWithjquery.js:1:28123\nreadyjquery.js:1:29967\nJjquery.js:1:30327\n<\/code><\/pre>\n<p>This has rendered the Filter Bar useless. I really hope you can help!<\/p>\n<p>These sites are currently local only, I can&#8217;t give you a public link I&#8217;m afraid.<\/p>\n","protected":false},"template":"","class_list":["post-1018998","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>JS error when using Filter Bar -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/js-error-when-using-filter-bar\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JS error when using Filter Bar -\" \/>\n<meta property=\"og:description\" content=\"I&#8217;m getting a JS error when using the Filter Bar. This is with all other plugins deactivated, and with the site reverted to the twentyfourteen theme. It causes the Filter Bar JS interactions (expanding\/collapsing) to stop working. InvalidValueError: not an Object (anonymous function)main.js:15:592 Mmain.js:19:1040 (anonymous function)tribe-events-ajax-maps.min.js:1:3298 jjquery.js:1005 fireWithjquery.js:1050 readyjquery.js:1118 Jjquery.js:1127 It seems this is something [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/js-error-when-using-filter-bar\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-11-03T17:47:40+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/js-error-when-using-filter-bar\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/js-error-when-using-filter-bar\/\",\"name\":\"JS error when using Filter Bar -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-10-27T18:27:15+00:00\",\"dateModified\":\"2015-11-03T17:47:40+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/js-error-when-using-filter-bar\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/js-error-when-using-filter-bar\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/js-error-when-using-filter-bar\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Community Events\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"JS error when using Filter Bar\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JS error when using Filter Bar -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/js-error-when-using-filter-bar\/","og_locale":"en_US","og_type":"article","og_title":"JS error when using Filter Bar -","og_description":"I&#8217;m getting a JS error when using the Filter Bar. This is with all other plugins deactivated, and with the site reverted to the twentyfourteen theme. It causes the Filter Bar JS interactions (expanding\/collapsing) to stop working. InvalidValueError: not an Object (anonymous function)main.js:15:592 Mmain.js:19:1040 (anonymous function)tribe-events-ajax-maps.min.js:1:3298 jjquery.js:1005 fireWithjquery.js:1050 readyjquery.js:1118 Jjquery.js:1127 It seems this is something [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/js-error-when-using-filter-bar\/","article_modified_time":"2015-11-03T17:47:40+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/js-error-when-using-filter-bar\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/js-error-when-using-filter-bar\/","name":"JS error when using Filter Bar -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-10-27T18:27:15+00:00","dateModified":"2015-11-03T17:47:40+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/js-error-when-using-filter-bar\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/js-error-when-using-filter-bar\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/js-error-when-using-filter-bar\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Community Events","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/"},{"@type":"ListItem","position":5,"name":"JS error when using Filter Bar"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1018998","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":2,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1018998\/revisions"}],"predecessor-version":[{"id":1019779,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1018998\/revisions\/1019779"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1018998"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}