Help Desk

Event ticket iframe often doesn't appear

  • Posts: 14 Topics: 3
    | Permalink

    The iframe for event tickets often doesn’t appear. When the iframe doesn’t appear, the containing div also doesn’t exist – this one – <div class=”eventbrite-ticket-embed” id=”eventbrite-ticket-embed”>.

    All the plugins are up to date. Clicking refresh, there the iframe sometimes appears, and sometimes doesn’t – there appears to be no pattern to it.

    There is nothing helpful in the wp_debug log. There are no errors when I look in the Chrome console.

    Once, and only once, I received the attached error, but this may well not be part of the issue as it has not reappeared on any of the hundred or so times I have refreshed and the iframe hasn’t appeared.

    I have deactivated all other plugins on a staging site, and reverted to twentyseventeen, but it is still only intermittently showing the iframe (and its parent div).

    Posts: 23 Topics: 15
    | Permalink

    Same exact issue, waiting for a reply to my posting.

    Posts: 3 Topics: 2
    | Permalink

    That makes 3 of us – in one day.

    Posts: 5926
    | Permalink

    Hi Gareth,

    Thanks so much for reaching out!

    I’m sorry to hear that you are experiencing this issue on your site!

    Can you provide me with the URL that you are trying to import, so that I can do some testing on my end?

    Under Events Settings < Help is your Event Aggregator Status. Can you take a screenshot of what you see there?

    Let me know if you have any other questions in the meantime!

     

    Thanks,

    Jaime

    Posts: 14 Topics: 3
    | Permalink
    This reply has been marked as private.
    Posts: 5926
    | Permalink

    Hi Gareth,

    Thanks for providing me with that information.

    As a next step, could you please flush your transients using a plugin like Transients Manager or via server, using WP-CLI? You can flush all of your transients (WordPress will repopulate them as necessary), or just the one associated with our plugin: “tribe_aggregator_origins”.

    Sometimes this transient caches the response from our server informing that your license is still not present/activated in your site, even though it is.

    Let me know if that helps!

     

    Thanks,

    Jaime

    Posts: 14 Topics: 3
    | Permalink

    Thanks. I have done that and I will keep an eye on it over the next couple of days. Would the situation you describe be likely if, within a 2 minute period, you get the ticket iframe displaying every other time? If it is that, what will stop the problem happening again?

    Posts: 5926
    | Permalink

    Hi Gareth,

    If clearing the transients did work to bring back the ticket iframe, it is likely that the ticket iframe will stick around this time.

    Let me know if that answers your question and if you have any other questions on this topic!

     

    Thanks,

    Jaime

    Posts: 14 Topics: 3
    | Permalink
    This reply has been marked as private.
    Posts: 14 Topics: 3
    | Permalink

    I have just deleted the transients again, but the problem is still intermittent.

    Posts: 23 Topics: 15
    | Permalink

    Is there any progress with this?
    None of our eventbrite events have a way for our end user to signup!

    Posts: 14 Topics: 3
    | Permalink

    No Rich, no further progress at the moment – like you we have customers unable to purchase.

    Posts: 18146 Topics: 17 Answers: 973
    | Permalink

    We’re really sorry for the inconvenience. We’ve logged a bug ticket and have linked it to this topic (so we can update you once we’ve made some progress).

    Posts: 14 Topics: 3
    | Permalink

    Hi, is there any update on this please? It has been over a month now, and we are suffering long periods where the iframe doesn’t show, so we are missing out on sales because our customers cannot see any way to buy.

    Is there a fix, or a temporary work around we can use?

    Posts: 14 Topics: 3
    | Permalink

    Just had another look – out of 10 refreshes, the iframe appeared twice. Nothing of note in the debug.log. This really is a critical problem – our customers cannot buy. When will we see if a fix?

    Posts: 14 Topics: 3
    | Permalink

    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 –>

    Posts: 14 Topics: 3
    | Permalink

    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 –>

    Posts: 18146 Topics: 17 Answers: 973
    | Permalink

    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 🙂

    Posts: 6240 Topics: 17
    | Permalink

    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

    Posts: 65
    | Permalink

    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

    | Permalink