{"id":970776,"date":"2015-06-17T15:10:05","date_gmt":"2015-06-17T22:10:05","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/fatal-error-class-tribewootickets-not-found-in-functions-php-on-line\/"},"modified":"2015-06-18T12:12:12","modified_gmt":"2015-06-18T19:12:12","slug":"fatal-error-class-tribewootickets-not-found-in-functions-php-on-line","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/fatal-error-class-tribewootickets-not-found-in-functions-php-on-line\/","title":{"rendered":"Fatal error: Class &#039;TribeWooTickets&#039; not found in &#8230;\/functions.php on line #"},"content":{"rendered":"<p>Hello guys&amp;girls,<\/p>\n<p>I have just updated the The Events Calendar PRO and WooCommerce Tickets plugins, however a fatal error occurred. I do have a custom theme, with custom code in the functions.php, which was working fine before the update.<\/p>\n<p>I was able to comment out the lines of code in my functions.php that were causing the error, but I&#8217;d still like to fix it, so I get those custom functions to work, as they modify my email templates.<\/p>\n<p>These are the following pieces of code that are causing the error:<\/p>\n<pre><code>add_action( &#039;init&#039;, &#039;wootickets_stop_sending_email&#039; );\nfunction wootickets_stop_sending_email() {\n \t$woo = TribeWooTickets::get_instance();\n\tremove_filter( &#039;woocommerce_email_classes&#039;, array( $woo, &#039;add_email_class_to_woocommerce&#039; ) );\n\t\/\/add_action( &#039;woocommerce_email_after_order_table&#039;, array( $woo, &#039;add_tickets_msg_to_email&#039; ) );\n}<\/code><\/pre>\n<p>and<br \/>\n<code>remove_action(&#039;woocommerce_email_after_order_table&#039;, array(TribeWooTickets::get_instance(), &#039;add_tickets_msg_to_email&#039;), 10, 2 );<\/code><br \/>\nI really appreaciate your help!<br \/>\nThanks,<br \/>\nCintia<\/p>\n","protected":false},"template":"","class_list":["post-970776","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>Fatal error: Class &#039;TribeWooTickets&#039; not found in ...\/functions.php on line # -<\/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\/fatal-error-class-tribewootickets-not-found-in-functions-php-on-line\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fatal error: Class &#039;TribeWooTickets&#039; not found in ...\/functions.php on line # -\" \/>\n<meta property=\"og:description\" content=\"Hello guys&amp;girls, I have just updated the The Events Calendar PRO and WooCommerce Tickets plugins, however a fatal error occurred. I do have a custom theme, with custom code in the functions.php, which was working fine before the update. I was able to comment out the lines of code in my functions.php that were causing [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/fatal-error-class-tribewootickets-not-found-in-functions-php-on-line\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-06-18T19:12:12+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=\"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\/fatal-error-class-tribewootickets-not-found-in-functions-php-on-line\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/fatal-error-class-tribewootickets-not-found-in-functions-php-on-line\/\",\"name\":\"Fatal error: Class &#039;TribeWooTickets&#039; not found in ...\/functions.php on line # -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-06-17T22:10:05+00:00\",\"dateModified\":\"2015-06-18T19:12:12+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/fatal-error-class-tribewootickets-not-found-in-functions-php-on-line\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/fatal-error-class-tribewootickets-not-found-in-functions-php-on-line\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/fatal-error-class-tribewootickets-not-found-in-functions-php-on-line\/#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\":\"Ticket Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Event Tickets Plus\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Fatal error: Class &#039;TribeWooTickets&#039; not found in &#8230;\/functions.php on line #\"}]},{\"@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":"Fatal error: Class &#039;TribeWooTickets&#039; not found in ...\/functions.php on line # -","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\/fatal-error-class-tribewootickets-not-found-in-functions-php-on-line\/","og_locale":"en_US","og_type":"article","og_title":"Fatal error: Class &#039;TribeWooTickets&#039; not found in ...\/functions.php on line # -","og_description":"Hello guys&amp;girls, I have just updated the The Events Calendar PRO and WooCommerce Tickets plugins, however a fatal error occurred. I do have a custom theme, with custom code in the functions.php, which was working fine before the update. I was able to comment out the lines of code in my functions.php that were causing [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/fatal-error-class-tribewootickets-not-found-in-functions-php-on-line\/","article_modified_time":"2015-06-18T19:12:12+00:00","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\/fatal-error-class-tribewootickets-not-found-in-functions-php-on-line\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/fatal-error-class-tribewootickets-not-found-in-functions-php-on-line\/","name":"Fatal error: Class &#039;TribeWooTickets&#039; not found in ...\/functions.php on line # -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-06-17T22:10:05+00:00","dateModified":"2015-06-18T19:12:12+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/fatal-error-class-tribewootickets-not-found-in-functions-php-on-line\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/fatal-error-class-tribewootickets-not-found-in-functions-php-on-line\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/fatal-error-class-tribewootickets-not-found-in-functions-php-on-line\/#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":"Ticket Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/"},{"@type":"ListItem","position":4,"name":"Event Tickets Plus","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/"},{"@type":"ListItem","position":5,"name":"Fatal error: Class &#039;TribeWooTickets&#039; not found in &#8230;\/functions.php on line #"}]},{"@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\/970776","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":3,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/970776\/revisions"}],"predecessor-version":[{"id":970925,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/970776\/revisions\/970925"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=970776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}