Home › Forums › Calendar Products › Events Calendar PRO › List Widget Not Displaying When Using WooTheme Sensei Plugin
- This topic has 8 replies, 5 voices, and was last updated 9 years, 7 months ago by
David DiBella.
-
AuthorPosts
-
August 17, 2016 at 10:32 am #1152717
David DiBella
ParticipantWhen 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,
-DaveAugust 17, 2016 at 7:48 pm #1152909Geoff B.
MemberGood 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.
August 18, 2016 at 7:29 am #1153096David
ParticipantI’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.
August 18, 2016 at 7:46 am #1153100David
ParticipantIt’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(); } }August 18, 2016 at 2:43 pm #1153382Geoff B.
MemberGood 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.
August 29, 2016 at 12:15 pm #1157212David DiBella
ParticipantIs 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.
August 29, 2016 at 8:24 pm #1157388Geoff B.
MemberGood 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/1438At 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.
September 20, 2016 at 9:35 am #1166496Support Droid
KeymasterHey 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 -
This reply was modified 9 years, 8 months ago by
-
AuthorPosts
- The topic ‘List Widget Not Displaying When Using WooTheme Sensei Plugin’ is closed to new replies.
