Home › Forums › Ticket Products › Event Tickets Plus › Events is Hijacking product – Again!
- This topic has 5 replies, 2 voices, and was last updated 8 years, 10 months ago by
Philip Macaulay.
-
AuthorPosts
-
June 22, 2017 at 12:12 pm #1301894
Philip Macaulay
ParticipantAlmost a year ago I posted here:
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( 'Tribe__Tickets_Plus__Commerce__WooCommerce__Main' ) ) return; $woo_tickets = Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance(); remove_filter( 'post_type_link', array( $woo_tickets, 'hijack_ticket_link' ), 10, 4 ); } add_action( 'init', 'tribe_wootix_no_hijack' );I am also picking up this error in my sites error logs:
[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
Which may or may not be related. But I don’t want to confuse the matter. If I disable the HIJACK code above the site is fine.
but I need the tickets to be /product/aticket/ and not /event/aticket/ otherwise I can’t process payments the way in which I need to.You still have an active link to the code from this page (which describes what I need to do) :
Can you please provide some resolution to this issue – my client is actively selling tickets and need this fixed asap.
Thank you
June 22, 2017 at 12:54 pm #1301915Philip Macaulay
ParticipantOK
I have no idea how I have fixed this – but I have – please keep the thread open in case it’s just a short term fix!June 23, 2017 at 2:40 pm #1302554Andras
KeymasterHey philmacaulay,
Thanks for getting in touch!
Happy to hear you managed to find a fix. Once you figure what the fix is 🙂 then we’d be happy if you shared. I’ll keep this open.
Note however, that if there is no activity for 3-4 weeks then the thread will be closed automatically.
Thanks and cheers,
AndrasJune 23, 2017 at 2:44 pm #1302560Philip Macaulay
ParticipantActually the issue seemed to be with the last two recent updates which actually broke a couple of sites both running the Events Calendar.
I couldn’t update Events Ticket Plus from Admin and had to do it via ftp on both the sites.
The no-hijack code is back as it was and everything is working fine…June 26, 2017 at 9:21 am #1306575Andras
KeymasterAwesome, great to hear.
Since the issue seems resolved I am going to close this ticket, but if you need anything else related to this topic or another please post a new one in the forum and we will be happy to help you out.
Cheers,
Andras -
AuthorPosts
- The topic ‘Events is Hijacking product – Again!’ is closed to new replies.
