{"id":1301894,"date":"2017-06-22T12:12:11","date_gmt":"2017-06-22T19:12:11","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-is-hijacking-product-again\/"},"modified":"2017-06-22T12:12:11","modified_gmt":"2017-06-22T19:12:11","slug":"events-is-hijacking-product-again","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-is-hijacking-product-again\/","title":{"rendered":"Events is Hijacking product &#8211; Again!"},"content":{"rendered":"<p>Almost a year ago I posted here:<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"u5mOiAYMZW\"><p><a href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-is-hijacking-product\/\">Events is Hijacking product<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Events is Hijacking product&#8221; &#8212; \" src=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-is-hijacking-product\/embed\/#?secret=RIht5qKCoA#?secret=u5mOiAYMZW\" data-secret=\"u5mOiAYMZW\" width=\"580\" height=\"327\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>And resolved the issue of Events hijacking ticket products. However with the latest update to Event Tickets Plus, this code is now breaking my website.<\/p>\n<p>This is the old code that is now breaking the site:<\/p>\n<pre><code>function tribe_wootix_no_hijack() {\n\tif ( ! class_exists( &#039;Tribe__Tickets_Plus__Commerce__WooCommerce__Main&#039; ) ) return;\n\t$woo_tickets = Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance();\n\tremove_filter( &#039;post_type_link&#039;, array( $woo_tickets, &#039;hijack_ticket_link&#039; ), 10, 4  );\n}\nadd_action( &#039;init&#039;, &#039;tribe_wootix_no_hijack&#039; );<\/code><\/pre>\n<p>I am also picking up this error in my sites error logs:<\/p>\n<p>[22-Jun-2017 16:44:17 UTC] PHP Fatal error:  Declaration of Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_attendees($event_id) must be compatible with Tribe__Tickets__Tickets::get_attendees(WP_Query $attendees_query, $post_id) in \/home\/ibia\/public_html\/wp-content\/plugins\/event-tickets-plus\/src\/Tribe\/Commerce\/WooCommerce\/Main.php on line 8<\/p>\n<p>Which may or may not be related. But I don&#8217;t want to confuse the matter. If I disable the HIJACK code above the site is fine.<br \/>\nbut I need the tickets to be \/product\/aticket\/ and not \/event\/aticket\/ otherwise I can&#8217;t process payments the way in which I need to.<\/p>\n<p>You still have an active link to the code from this page (which describes what I need to do) :<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"1pId9U7nzv\"><p><a href=\"https:\/\/theeventscalendar.com\/knowledgebase\/selling-tickets-from-the-woocommerce-products-page\/\">Sell Tickets From the WooCommerce Products Page<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Sell Tickets From the WooCommerce Products Page&#8221; &#8212; Knowledgebase\" src=\"https:\/\/theeventscalendar.com\/knowledgebase\/selling-tickets-from-the-woocommerce-products-page\/embed\/#?secret=1JUbq0L8dh#?secret=1pId9U7nzv\" data-secret=\"1pId9U7nzv\" width=\"580\" height=\"327\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>Can you please provide some resolution to this issue &#8211; my client is actively selling tickets and need this fixed asap.<\/p>\n<p>Thank you<\/p>\n","protected":false},"template":"","class_list":["post-1301894","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>Events is Hijacking product - Again! -<\/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\/events-is-hijacking-product-again\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Events is Hijacking product - Again! -\" \/>\n<meta property=\"og:description\" content=\"Almost a year ago I posted here: Events is Hijacking product And resolved the issue of Events hijacking ticket products. However with the latest update to Event Tickets Plus, this code is now breaking my website. This is the old code that is now breaking the site: function tribe_wootix_no_hijack() { if ( ! class_exists( &#039;Tribe__Tickets_Plus__Commerce__WooCommerce__Main&#039; [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-is-hijacking-product-again\/\" \/>\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\/events-is-hijacking-product-again\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-is-hijacking-product-again\/\",\"name\":\"Events is Hijacking product - Again! -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-06-22T19:12:11+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-is-hijacking-product-again\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-is-hijacking-product-again\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-is-hijacking-product-again\/#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\":\"Events is Hijacking product &#8211; Again!\"}]},{\"@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":"Events is Hijacking product - Again! -","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\/events-is-hijacking-product-again\/","og_locale":"en_US","og_type":"article","og_title":"Events is Hijacking product - Again! -","og_description":"Almost a year ago I posted here: Events is Hijacking product And resolved the issue of Events hijacking ticket products. However with the latest update to Event Tickets Plus, this code is now breaking my website. This is the old code that is now breaking the site: function tribe_wootix_no_hijack() { if ( ! class_exists( &#039;Tribe__Tickets_Plus__Commerce__WooCommerce__Main&#039; [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-is-hijacking-product-again\/","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\/events-is-hijacking-product-again\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-is-hijacking-product-again\/","name":"Events is Hijacking product - Again! -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-06-22T19:12:11+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-is-hijacking-product-again\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-is-hijacking-product-again\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-is-hijacking-product-again\/#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":"Events is Hijacking product &#8211; Again!"}]},{"@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\/1301894","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\/1301894\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1301894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}