Event ticket iframe often doesn't appear

Home Forums Ticket Products Eventbrite Tickets Event ticket iframe often doesn't appear

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #1627748
    popuppainting
    Participant

    Having gone for a month without any help from Modern Tribe on this issue, I have just spent several hours wading through code to find at least a temporary fix.

    For others with this problem, the simple fix is to remove a line of code.

    1) find /wp-content/plugins/the-events-calendar-eventbrite-tickets/src/Tribe/Template.php
    2) remove the line “$api->is_live( $post_id ) &&” (about line 89), save and upload
    3) the start of the “if” statement should now look like this;

    if (
    ! empty( $event_id ) &&
    ( isset( $event->listed ) && $event->listed ) &&
    tribe_event_show_tickets( $post_id, $event )
    ) {

    It looks like the error is caused by a check to see whether the event is live on Eventbrite in /wp-content/plugins/the-events-calendar-eventbrite-tickets/src/Tribe/Event.php (the guilty function starts on line 108). I haven’t bothered to spend time looking at it in any other detail, because if the event isn’t live on Eventbrite, it won’t appear on the website anyway.

    A proper fix would be helpful, obviously.

    If that doesn’t work for anyone, then another workaround is to include a button that links to the event ticket sales on Eventbrite. This will obviously vary depending on your theme, but I added this in /wp-content/themes/my-theme/tribe-events/single-event.php just after <?php do_action( ‘tribe_events_single_event_after_the_meta’ ) ?> and just before <!– Event footer –>. The code I used was (obviously change the styling to suit!);

    <!– Temporary button to link to Eventbrite event –>
    <?php $website = tribe_get_event_website_url();
    error_log(“website=”.$website);
    if ( ! empty( $website ) ):
    ?>
    <div id=”temp-event-button” style=”text-align:center”>
    ” style=”background-color:#ff0066; color:#fff; display:block; font-weight:600; box-sizing:border-box; padding:11px 20px; border-radius:3px; margin-bottom:40px;”><?php _e( ‘Buy tickets on Eventbrite’, ‘tokopress’ ); ?>
    </div>
    <?php endif ?>
    <!– End of temporary button to link to Eventbrite event –>

    #1627750
    popuppainting
    Participant

    Sorry, that last bit didn’t format correctly – hopefully this will?!?

    <!-- Temporary button to link to Eventbrite event -->
    <?php $website = tribe_get_event_website_url();
    error_log("website=".$website);
    if ( ! empty( $website ) ):
    ?>
    <div id="launch-button" style="text-align:center">
    	<a href="<?php echo esc_url( $website ).'#tickets'; ?>" style="background-color:#ff0066; color:#fff; display:block; font-weight:600; box-sizing:border-box; padding:11px 20px; border-radius:3px; margin-bottom:40px;">
    			<?php _e( 'Buy tickets on Eventbrite', 'tokopress' ); ?>
    		</a> 
    </div>	
    <?php endif ?>

    <!– End of temporary button to link to Eventbrite event –>

    #1634980
    Barry
    Member

    I’m really sorry this went so long without us seeing your update. Some work to help resolve this problem is pending release and should be available soon 🙂

    #1637427
    Victor
    Keymaster

    Hi There!

    Just wanted to share with you that a new release of our plugins is out, where we included some work around the Eventbrite tickets iframe functionality.

    You can find out more about this release → https://theeventscalendar.com/maintenance-release-for-the-week-of-30-september-2018/

    We have not been able to identify a specific bug on our end that would prevent the tickets iframe from being displayed. So, if you still experience this on your site, please navigate to your WP Admin > Events > Help and under the <b>Event Log </b>section set the Logging Level to “Warnings and errors”.

    This will log a warning if the ticket iframe has not been displayed for an event and will give us more information about the problem. If that’s the case, please share the logs with us so we can see if any problem from there.

    In addition, you can install the following plugin which will force the display of the tickets iframe for your published events > tribe-ext-eventbrite-tickets-force-iframe.zip

    We apologize for the delay and appreciate your help and patience while we work on this together.

    As always, we suggest to setup a dev/staging site so you can make all plugin updates without disrupting the live site.

    Please update the plugins and let us know how it goes.

    Thanks,
    Victor

    #1649485
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 5 posts - 16 through 20 (of 20 total)
  • The topic ‘Event ticket iframe often doesn't appear’ is closed to new replies.