{"id":101768,"date":"2014-02-06T21:13:04","date_gmt":"2014-02-07T05:13:04","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/plugin-conlict-js-errors-from-tec-front-end-acf-form-on-an-event-template\/"},"modified":"2014-06-07T08:04:54","modified_gmt":"2014-06-07T15:04:54","slug":"plugin-conlict-js-errors-from-tec-front-end-acf-form-on-an-event-template","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/plugin-conlict-js-errors-from-tec-front-end-acf-form-on-an-event-template\/","title":{"rendered":"Plugin Conlict &#8211; JS errors from TEC + front-end ACF form on an event template"},"content":{"rendered":"<p>Cross-posted onto ACF support forum: http:\/\/support.advancedcustomfields.com\/forums\/topic\/front-end-form-with-template-and-the-events-calendar\/#post-11530<\/p>\n<p>The issue occurs in requiring to run acf_form_head() function above get_header(). I&#8217;ve added that into my theme copy of default-template.php from plugin\/views. Receive the following JS errors:<\/p>\n<ul>\n<li><code>TypeError: e.fn.datepicker.noConflict is not a function<\/code> calling from wp-content\/plugins\/the-events-calendar\/resources\/tribe-events.min.js?ver=3.4.1<\/li>\n<li><code>TypeError: g is undefined<\/code> calling from \/wp-includes\/js\/tinymce\/tiny_mce.js?ver=359-20131026<\/li>\n<\/ul>\n<p>It seems one is coming from TEC files and the other (wp-include) likely tied to what ACF uses to bring the media library and functionality to front-end.<\/p>\n<p>A working standard page template example:<\/p>\n<pre><code>&lt;?php\n\/*\nTemplate Name: Front-End Form\n*\/\n\nacf_form_head();\n\nget_header(); ?&gt;\n\t\t\t\n\t\t\t&lt;div id=&quot;content&quot; class=&quot;clearfix row-fluid&quot;&gt;\n\t\t\t\n\t\t\t\t&lt;div id=&quot;main&quot; class=&quot;span12 clearfix&quot; role=&quot;main&quot;&gt;\n\n\t\t\t\t\t&lt;?php the_post(); ?&gt;\n \n\t\t\t\t\t&lt;?php \n \n\t\t\t\t\t\t$args = array(\n\t\t\t\t\t\t\t&#039;post_id&#039; =&gt; &#039;new&#039;,\n\t\t\t\t\t\t\t&#039;field_groups&#039; =&gt; array( 252 )\n\t\t\t\t\t\t);\n \t\n\t\t\t\t\t\tacf_form( $args ); \n \n\t\t\t\t\t?&gt;\n\t\t\t\n\t\t\t\t&lt;\/div&gt; &lt;!-- end #main --&gt;\n   \n    \n\t\t\t&lt;\/div&gt; &lt;!-- end #content --&gt;\n\n&lt;?php get_footer(); ?&gt;<\/code><\/pre>\n<p>The default-template.php which is having errors:<\/p>\n<pre><code>\n&lt;?php\n\/**\n * Default Events Template\n * This file is the basic wrapper template for all the views if &#039;Default Events Template&#039; \n * is selected in Events -&gt; Settings -&gt; Template -&gt; Events Template.\n * \n * Override this template in your own theme by creating a file at [your-theme]\/tribe-events\/default-template.php\n *\n * @package TribeEventsCalendar\n * @since  3.0\n * @author Modern Tribe Inc.\n *\n *\/\n\nif ( !defined(&#039;ABSPATH&#039;) ) { die(&#039;-1&#039;); }\n\nacf_form_head();\n\nget_header(); ?&gt;\n\n&lt;div id=&quot;tribe-events-pg-template&quot;&gt;\n\t&lt;?php tribe_events_before_html(); ?&gt;\n\t&lt;?php tribe_get_view(); ?&gt;\n\t&lt;?php tribe_events_after_html(); ?&gt;\n&lt;\/div&gt; &lt;!-- #tribe-events-pg-template --&gt;\n&lt;?php get_footer(); ?&gt;<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-101768","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>Plugin Conlict - JS errors from TEC + front-end ACF form on an event template -<\/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\/plugin-conlict-js-errors-from-tec-front-end-acf-form-on-an-event-template\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Plugin Conlict - JS errors from TEC + front-end ACF form on an event template -\" \/>\n<meta property=\"og:description\" content=\"Cross-posted onto ACF support forum: http:\/\/support.advancedcustomfields.com\/forums\/topic\/front-end-form-with-template-and-the-events-calendar\/#post-11530 The issue occurs in requiring to run acf_form_head() function above get_header(). I&#8217;ve added that into my theme copy of default-template.php from plugin\/views. Receive the following JS errors: TypeError: e.fn.datepicker.noConflict is not a function calling from wp-content\/plugins\/the-events-calendar\/resources\/tribe-events.min.js?ver=3.4.1 TypeError: g is undefined calling from \/wp-includes\/js\/tinymce\/tiny_mce.js?ver=359-20131026 It seems one is coming from [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/plugin-conlict-js-errors-from-tec-front-end-acf-form-on-an-event-template\/\" \/>\n<meta property=\"article:modified_time\" content=\"2014-06-07T15:04:54+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\/plugin-conlict-js-errors-from-tec-front-end-acf-form-on-an-event-template\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/plugin-conlict-js-errors-from-tec-front-end-acf-form-on-an-event-template\/\",\"name\":\"Plugin Conlict - JS errors from TEC + front-end ACF form on an event template -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2014-02-07T05:13:04+00:00\",\"dateModified\":\"2014-06-07T15:04:54+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/plugin-conlict-js-errors-from-tec-front-end-acf-form-on-an-event-template\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/plugin-conlict-js-errors-from-tec-front-end-acf-form-on-an-event-template\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/plugin-conlict-js-errors-from-tec-front-end-acf-form-on-an-event-template\/#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\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Plugin Conlict &#8211; JS errors from TEC + front-end ACF form on an event template\"}]},{\"@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":"Plugin Conlict - JS errors from TEC + front-end ACF form on an event template -","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\/plugin-conlict-js-errors-from-tec-front-end-acf-form-on-an-event-template\/","og_locale":"en_US","og_type":"article","og_title":"Plugin Conlict - JS errors from TEC + front-end ACF form on an event template -","og_description":"Cross-posted onto ACF support forum: http:\/\/support.advancedcustomfields.com\/forums\/topic\/front-end-form-with-template-and-the-events-calendar\/#post-11530 The issue occurs in requiring to run acf_form_head() function above get_header(). I&#8217;ve added that into my theme copy of default-template.php from plugin\/views. Receive the following JS errors: TypeError: e.fn.datepicker.noConflict is not a function calling from wp-content\/plugins\/the-events-calendar\/resources\/tribe-events.min.js?ver=3.4.1 TypeError: g is undefined calling from \/wp-includes\/js\/tinymce\/tiny_mce.js?ver=359-20131026 It seems one is coming from [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/plugin-conlict-js-errors-from-tec-front-end-acf-form-on-an-event-template\/","article_modified_time":"2014-06-07T15:04:54+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\/plugin-conlict-js-errors-from-tec-front-end-acf-form-on-an-event-template\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/plugin-conlict-js-errors-from-tec-front-end-acf-form-on-an-event-template\/","name":"Plugin Conlict - JS errors from TEC + front-end ACF form on an event template -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2014-02-07T05:13:04+00:00","dateModified":"2014-06-07T15:04:54+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/plugin-conlict-js-errors-from-tec-front-end-acf-form-on-an-event-template\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/plugin-conlict-js-errors-from-tec-front-end-acf-form-on-an-event-template\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/plugin-conlict-js-errors-from-tec-front-end-acf-form-on-an-event-template\/#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":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"Plugin Conlict &#8211; JS errors from TEC + front-end ACF form on an event template"}]},{"@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\/101768","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\/101768\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=101768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}