List Widget Not Displaying When Using WooTheme Sensei Plugin

Home Forums Calendar Products Events Calendar PRO List Widget Not Displaying When Using WooTheme Sensei Plugin

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1152717
    David DiBella
    Participant

    When using the “Events List” widget in conjunction with WooThemes Sensei plugin the widget will not display events. As soon as I deactivate the Sensei plugin the events list widget displays events properly. I have updated all plugins to their latest version as of 08/17/2016 and retested. The problem persists.

    Back in May I had been assured that this would be fixed in the next update. That was at least 5 updates ago. I open up a topic, get assured it’s been addressed and then time passes and the topic automatically closes with no resolution.

    The Events List widget is a huge part of my site and I really need to get it working. Any help would be most appreciated.

    Thank you,
    -Dave

    #1152909
    Geoff B.
    Member

    Good evening David and welcome back!

    Thank you for reaching out to us.

    We are sorry to hear about the widgets not working properly on your site.
    I would love to help you with this topic.

    You are absolutely right, the problem persists since May.
    Far too long to our liking. We apologize for the inconvenience.

    As my colleague Cliff pointed out back then, as much as we try to solve things quickly, sometimes parts of it (especially when it involves a third party) is not within our control.

    For this specific issue, one of our top Dev coders is in touch with the folks behind Senseï to resolve this.
    To make a long story short, we need their collaboration on this one.

    In the meantime, the only known workaround is to downgrade Senseï to the version that was released before May.

    Hang in there as this one gets resolved!

    Best regards,

    Geoff B.

    #1153096
    David
    Participant

    I’ve recently started a development project with Sensei and don’t have the ability to download an earlier version of their plugin, but the May release (the latest Sensei release) explicitly says “Fixed an issue prevent Modern Tribe’s The Event Calendar from functioning properly.” which would indicate to me that they have made an effort to fix this.

    The site I’m working on relies heavily on tribe_get_events working and it doesn’t because of this incompatibility. I’m currently in the middle of rewriting my website to make do without that wrapper because it’s the only way I can make it work.

    #1153100
    David
    Participant

    It’s a bit rough, but this looks like it’ll work for what I need. Just need to replace everywhere I’m using “tribe_get_events” with “digitalsix_get_events”.

    function digitalsix_get_events($args) {
        $args['posts_per_page'] = -1;
        if (class_exists('Sensei_Course')) {
            $defaults = array(
                'post_type' => Tribe__Events__Main::POSTTYPE,
                'orderby' => 'event_date',
                'order' => 'ASC',
                'tribe_render_context' => 'default',
            );
            $args = wp_parse_args($args, $defaults);
            $events = get_posts($args);
            $return = array();
            foreach ($events as $event) {
                if (isset($args['start_date'])) {
                    if (Tribe__Events__Timezones::event_end_timestamp($event->ID, null) < strtotime($args['start_date'])) {
                        continue;
                    }
                }
                if (isset($args['end_date'])) {
                    if (Tribe__Events__Timezones::event_start_timestamp($event->ID, null) > strtotime($args['end_date'])) {
                        continue;
                    }
                }
                $return[Tribe__Events__Timezones::event_start_timestamp($event->ID, null) . '-' . $event->ID] = $event;
            }
            if ($args['orderby'] == 'event_date') {
                if ($args['order'] == 'ASC') {
                    ksort($return);
                } else {
                    krsort($return);
                }
            }
            return $return;
        } else if (function_exists('tribe_get_events')) {
            return tribe_get_events($args);
        } else {
            return array();
        }
    }
    #1153382
    Geoff B.
    Member

    Good evening David,

    Thank you for writing back and for sharing your code.
    I shared that with the Dev wizard in charge of the ticket.

    To clarify, yes the folks from Senseï came up with a fix around May. However, that specific fix was for the calendar views.
    It unfortunately does not impact the widgets (as we later found out), hence the pending bug.

    When we found that out, we immediately reached out to them. To make a long story short after some back and forth, we are making final adjustments to finally move this thing along.

    Thank you for helping out as much as you did on this one.
    It’s truly appreciated.

    Best regards,

    Geoff B.

    #1157212
    David DiBella
    Participant

    Is this still being worked on? Do you have an idea of when this may be resolved?

    Thank you,
    -Dave

    • This reply was modified 9 years, 8 months ago by David DiBella.
    #1157388
    Geoff B.
    Member

    Good evening Dave,

    Yes absolutely, this is still being worked on for sure.
    You might want to try the previous workaround shared as a temporary solution (although there is a chance this won’t work for everybody)

    We have submitted a pull request to the Sensei team (you can find it here: https://github.com/Automattic/sensei/pull/1502) and we have a logged issue with them on that topic.
    You can find that here: https://github.com/Automattic/sensei/issues/1438

    At this point, we are mostly waiting for approval on their end, tweaking things as they request.
    You are welcome to voice your concerns directly on the issue as well.

    Hopefully, this won’t take too long now, but it is slightly outside of our control as to when the pull request will finally be incorporated in their code.

    Thank you for your understanding and we are sorry this is taking such a long time.

    Best regards,

    Geoff B.

     

    #1166496
    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 8 posts - 1 through 8 (of 8 total)
  • The topic ‘List Widget Not Displaying When Using WooTheme Sensei Plugin’ is closed to new replies.