{"id":1138073,"date":"2016-07-11T06:57:12","date_gmt":"2016-07-11T13:57:12","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/syntax-errors-uncaught-reference-error-tribe_ev-is-not-defined\/"},"modified":"2016-07-11T06:57:12","modified_gmt":"2016-07-11T13:57:12","slug":"syntax-errors-uncaught-reference-error-tribe_ev-is-not-defined","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/syntax-errors-uncaught-reference-error-tribe_ev-is-not-defined\/","title":{"rendered":"Syntax errors &amp; Uncaught reference error: tribe_ev is not defined"},"content":{"rendered":"<p>Hi,<br \/>\nI&#8217;m investigating using the calendar plugin on a site using the Gridstack theme. I tested the calendar out by adding it to the site, but find I get a constantly spinning wheel when I go to the calendar. It works if I refresh the page, but it fails on the initial page load each time.<\/p>\n<p>I tried some of the the suggestions on your support page but had no luck.<\/p>\n<p>The errors I get are the follwoing..<\/p>\n<p>Uncaught SyntaxError: Unexpected token if<br \/>\n\t(anonymous function) @ jquery.ajaxify.js?ver=1.0.1:198<br \/>\n\teach @ jquery.js?ver=1.11.3:2<br \/>\n\teach @ jquery.js?ver=1.11.3:2<br \/>\n\tsuccess @ jquery.ajaxify.js?ver=1.0.1:187<br \/>\n\tj @ jquery.js?ver=1.11.3:2<br \/>\n\tfireWith @ jquery.js?ver=1.11.3:2<br \/>\n\tx @ jquery.js?ver=1.11.3:5<br \/>\n\tb @ jquery.js?ver=1.11.3:5<\/p>\n<p>Uncaught SyntaxError: Unexpected token =<br \/>\n\t(anonymous function) @ jquery.ajaxify.js?ver=1.0.1:198<br \/>\n\teach @ jquery.js?ver=1.11.3:2<br \/>\n\teach @ jquery.js?ver=1.11.3:2<br \/>\n\tsuccess @ jquery.ajaxify.js?ver=1.0.1:187<br \/>\n\tj @ jquery.js?ver=1.11.3:2<br \/>\n\tfireWith @ jquery.js?ver=1.11.3:2<br \/>\n\tx @ jquery.js?ver=1.11.3:5<br \/>\n\tb @ jquery.js?ver=1.11.3:5<\/p>\n<p>Uncaught SyntaxError: Unexpected token =<br \/>\n\t(anonymous function) @ jquery.ajaxify.js?ver=1.0.1:198<br \/>\n\teach @ jquery.js?ver=1.11.3:2<br \/>\n\teach @ jquery.js?ver=1.11.3:2<br \/>\n\tsuccess @ jquery.ajaxify.js?ver=1.0.1:187<br \/>\n\tj @ jquery.js?ver=1.11.3:2<br \/>\n\tfireWith @ jquery.js?ver=1.11.3:2<br \/>\n\tx @ jquery.js?ver=1.11.3:5<br \/>\n\tb @ jquery.js?ver=1.11.3:5<\/p>\n<p>Uncaught ReferenceError: tribe_ev is not defined<br \/>\n\t(anonymous function) @ tribe-events-ajax-calendar.min.js?ver=4.2.2:1<\/p>\n<p>This is followed by two 404 errors when it is unable to find<br \/>\n&#8230;\/events\/[[=imageSrc]]<br \/>\n\/&#8230;\/events\/[[=imageTooltipSrc]]<\/p>\n<p>Do you have any suggestions on what I could try to enable the use of the calendar?<\/p>\n<p>Thanks for your help.<\/p>\n","protected":false},"template":"","class_list":["post-1138073","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>Syntax errors &amp; Uncaught reference error: tribe_ev is not defined -<\/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\/syntax-errors-uncaught-reference-error-tribe_ev-is-not-defined\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Syntax errors &amp; Uncaught reference error: tribe_ev is not defined -\" \/>\n<meta property=\"og:description\" content=\"Hi, I&#8217;m investigating using the calendar plugin on a site using the Gridstack theme. I tested the calendar out by adding it to the site, but find I get a constantly spinning wheel when I go to the calendar. It works if I refresh the page, but it fails on the initial page load each [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/syntax-errors-uncaught-reference-error-tribe_ev-is-not-defined\/\" \/>\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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/syntax-errors-uncaught-reference-error-tribe_ev-is-not-defined\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/syntax-errors-uncaught-reference-error-tribe_ev-is-not-defined\/\",\"name\":\"Syntax errors &amp; Uncaught reference error: tribe_ev is not defined -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-07-11T13:57:12+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/syntax-errors-uncaught-reference-error-tribe_ev-is-not-defined\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/syntax-errors-uncaught-reference-error-tribe_ev-is-not-defined\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/syntax-errors-uncaught-reference-error-tribe_ev-is-not-defined\/#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\":\"Welcome!\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Pre-Sales Questions\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/pre-sales-questions\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Syntax errors &amp; Uncaught reference error: tribe_ev is not defined\"}]},{\"@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":"Syntax errors &amp; Uncaught reference error: tribe_ev is not defined -","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\/syntax-errors-uncaught-reference-error-tribe_ev-is-not-defined\/","og_locale":"en_US","og_type":"article","og_title":"Syntax errors &amp; Uncaught reference error: tribe_ev is not defined -","og_description":"Hi, I&#8217;m investigating using the calendar plugin on a site using the Gridstack theme. I tested the calendar out by adding it to the site, but find I get a constantly spinning wheel when I go to the calendar. It works if I refresh the page, but it fails on the initial page load each [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/syntax-errors-uncaught-reference-error-tribe_ev-is-not-defined\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/syntax-errors-uncaught-reference-error-tribe_ev-is-not-defined\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/syntax-errors-uncaught-reference-error-tribe_ev-is-not-defined\/","name":"Syntax errors &amp; Uncaught reference error: tribe_ev is not defined -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-07-11T13:57:12+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/syntax-errors-uncaught-reference-error-tribe_ev-is-not-defined\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/syntax-errors-uncaught-reference-error-tribe_ev-is-not-defined\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/syntax-errors-uncaught-reference-error-tribe_ev-is-not-defined\/#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":"Welcome!","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/"},{"@type":"ListItem","position":4,"name":"Pre-Sales Questions","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/pre-sales-questions\/"},{"@type":"ListItem","position":5,"name":"Syntax errors &amp; Uncaught reference error: tribe_ev is not defined"}]},{"@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\/1138073","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":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1138073\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1138073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}