{"id":913702,"date":"2014-12-09T20:28:49","date_gmt":"2014-12-10T04:28:49","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/issue-with-mini-calendar-shortcode\/"},"modified":"2015-01-13T11:57:49","modified_gmt":"2015-01-13T19:57:49","slug":"issue-with-mini-calendar-shortcode","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/issue-with-mini-calendar-shortcode\/","title":{"rendered":"Issue with mini calendar shortcode"},"content":{"rendered":"<p>My use case : I am calling a WooCommerce product page in the event description via its shortcode, using WooCommerce as a catalogue &#8211; no cart &#8211; to permanently store the description of a  product in the WooCommerce shop (the product page of a training session) and put it on sale as an event when scheduled, using wootickets. So far so good. Works great.<\/p>\n<p>However I wanted to use the mini calendar to show available dates for this training session in its WooCommerce product tab. A standard feature in such a case. And the reason I bought the Event Calendar Pro version.<\/p>\n<p>When adding the mini calendar shortcode to the product description tab in a WooCommerce product page  AND adding the product page shortcode in the event description text area I get the following error both in the main calendar and the event&#8217;s page :<br \/>\n(The same was happening with the Event Rocket plugin)<\/p>\n<p>Fatal error: Call to a member function get_upsells() on a non-object in \/var\/www\/dev2.sociatomdev.com\/chroot\/htdocs\/wp-content\/plugins\/woocommerce\/templates\/single-product\/up-sells.php on line 14<\/p>\n<p>For testing purposes only, I then put the mini calendar shortcode in the short description text area of the product page.<br \/>\nThis time no error message on the main calendar page, but the filter bar is not responding &amp; cannot be reset (showing a dead link, ending with \/#), the events in the calendar are all gone except the event in which the shortcode was put, and the following appears on the event page :<\/p>\n<p>Fatal error: Call to a member function get_sku() on a non-object in \/var\/www\/dev2.sociatomdev.com\/chroot\/htdocs\/wp-content\/plugins\/woocommerce\/templates\/single-product\/meta.php on line 21<\/p>\n<p>My guess is that the mini calendar shortcode is interfering with the next action in the page.<br \/>\nup-sells.php is called right after the full product description<br \/>\nmeta.php is called right after the short description<br \/>\n&gt;&gt;&gt; there is a pattern here : the shortcode is interfering with this logic<br \/>\nnote : this is happening regardless of using wootickets or not.<\/p>\n<p>(Hmm &#8230;Could you guys add automaticaly generated paragraphs in the discussion&#8217;s preview ? The result is hard to &#8230; preview.)<\/p>\n","protected":false},"template":"","class_list":["post-913702","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>Issue with mini calendar shortcode -<\/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\/issue-with-mini-calendar-shortcode\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Issue with mini calendar shortcode -\" \/>\n<meta property=\"og:description\" content=\"My use case : I am calling a WooCommerce product page in the event description via its shortcode, using WooCommerce as a catalogue &#8211; no cart &#8211; to permanently store the description of a product in the WooCommerce shop (the product page of a training session) and put it on sale as an event when [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/issue-with-mini-calendar-shortcode\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-01-13T19:57:49+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\/issue-with-mini-calendar-shortcode\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/issue-with-mini-calendar-shortcode\/\",\"name\":\"Issue with mini calendar shortcode -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2014-12-10T04:28:49+00:00\",\"dateModified\":\"2015-01-13T19:57:49+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/issue-with-mini-calendar-shortcode\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/issue-with-mini-calendar-shortcode\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/issue-with-mini-calendar-shortcode\/#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\":\"Issue with mini calendar shortcode\"}]},{\"@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":"Issue with mini calendar shortcode -","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\/issue-with-mini-calendar-shortcode\/","og_locale":"en_US","og_type":"article","og_title":"Issue with mini calendar shortcode -","og_description":"My use case : I am calling a WooCommerce product page in the event description via its shortcode, using WooCommerce as a catalogue &#8211; no cart &#8211; to permanently store the description of a product in the WooCommerce shop (the product page of a training session) and put it on sale as an event when [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/issue-with-mini-calendar-shortcode\/","article_modified_time":"2015-01-13T19:57:49+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\/issue-with-mini-calendar-shortcode\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/issue-with-mini-calendar-shortcode\/","name":"Issue with mini calendar shortcode -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2014-12-10T04:28:49+00:00","dateModified":"2015-01-13T19:57:49+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/issue-with-mini-calendar-shortcode\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/issue-with-mini-calendar-shortcode\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/issue-with-mini-calendar-shortcode\/#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":"Issue with mini calendar shortcode"}]},{"@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\/913702","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":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/913702\/revisions"}],"predecessor-version":[{"id":932253,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/913702\/revisions\/932253"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=913702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}