Events is Hijacking product – Again!

Home Forums Ticket Products Event Tickets Plus Events is Hijacking product – Again!

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1301894
    Philip Macaulay
    Participant

    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( '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) :

    Sell Tickets From the WooCommerce Products Page

    Can you please provide some resolution to this issue – my client is actively selling tickets and need this fixed asap.

    Thank you

    #1301915
    Philip Macaulay
    Participant

    OK
    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!

    #1302554
    Andras
    Keymaster

    Hey 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,
    Andras

    #1302560
    Philip Macaulay
    Participant

    Actually 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…

    #1306575
    Andras
    Keymaster

    Awesome, 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

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Events is Hijacking product – Again!’ is closed to new replies.