WordPress.org

Ready to get started?Download WordPress

Forums

The Events Calendar
Multi Day Events only shown on first day (23 posts)

  1. mdd061000
    Member
    Posted 1 year ago #

    After the update to Version 3 my calendar only shows multi-day events on the first day. Is this an intended change in functionality or is this a bug?

    http://wordpress.org/extend/plugins/the-events-calendar/

  2. jonahcoyote
    Member
    Posted 1 year ago #

    Hi mdd061000,

    Do you have a link and some examples you can have me look at? Also, have you tried deactivating all other plugins and/or reverting to the default WordPress theme to rule out any conflicts there?

    - Jonah

  3. Majd Gharably
    Member
    Posted 1 year ago #

    Hey Jonahcoyote,

    I have the same issue, I have a multi day event (example event runs from June 28 till July 3) the event is only visible on June 28 in calender view.
    Since June 28th has already passed, it doesn't even show on the list view, it assumed the event has expired.

    Example is on this link
    http://www.uaefitnessguide.com/events/2013-06/
    Check the event "Dubai Sports World 2013 that starts in June 21st"

  4. kalewa
    Member
    Posted 1 year ago #

  5. kalewa
    Member
    Posted 1 year ago #

    (I have try to deactivate all plugin and theme)

  6. mdd061000
    Member
    Posted 1 year ago #

    Here's another example of the issue. Vanilla wordpress, default theme, no other plugins.

    https://saurus-rex.info/blog/events

  7. immortaldiva
    Member
    Posted 1 year ago #

    I have this issue too...among many. Really wishing that I hadn't updated this plugin. <grrrrrrr>

    I have a 3-day event that is only showing up on the first day: http://acfcfc.com/events/

    Please advise...

  8. Dave
    Member
    Posted 1 year ago #

    Same issue here, using Weaver theme.

  9. mdd061000
    Member
    Posted 1 year ago #

    Can we get a confirmation that this is a bug and not the intended functionality of the new version of the plugin?

  10. tyxla
    Member
    Posted 1 year ago #

    Same issue here, tested both with Twenty Thirteen and TwentyTwelve. Also, i'm not sure if that's related, but i've discovered another issue.

    When I open the following link: /events/2013-07-25/, i get a 404 not found issue, and a "Events for July 31, 2013" title. First, i have an event added for 25th of july, and second - i'm searching for 25th of july, not 31st of july.

  11. titasas
    Member
    Posted 1 year ago #

    same problem...

  12. mdd061000
    Member
    Posted 1 year ago #

    Okay, I found a way to fix the issue, sort of. The cause of the problem is a missing _EventDuration row in the postmeta table. I manually created rows for each event, and they now show up on all days.

    There is a bug somewhere in the code that is not creating the Event duration row in the postmeta table. I'm looking into it now, but some help from the devs would be appreciated.

  13. mdd061000
    Member
    Posted 1 year ago #

    We have a hack solution that makes _EventDuration show up for future events.

    http://wordpress.org/support/topic/past-events-not-being-displayed

  14. mdd061000
    Member
    Posted 1 year ago #

    Once you make the changed, editing and re-saving existing events will fix them as well.

  15. mdd061000
    Member
    Posted 1 year ago #

    For the sake of completion I'm going to post the solution here as well.

    This was posted by Ned Zimmerman

    I was able to fix this by adding '_EventDuration' to the $metaTags array in lib/the-events-calendar-class.php as shown:

    public $metaTags = array(
    			'_EventAllDay',
    			'_EventStartDate',
    			'_EventEndDate',
    			'_EventDuration',
    			'_EventVenueID',
    			'_EventShowMapLink',
    			'_EventShowMap',
    			'_EventCurrencySymbol',
    			'_EventCost',
    			'_EventURL',
    			'_EventOrganizerID',
    			'_EventPhone',
    			'_EventHideFromUpcoming',
    			self::EVENTSERROROPT
    		);

    And by inserting the following after line 101 of lib/tribe-event-api.class.php:

    $data['EventDuration'] = $endTimestamp - $startTimestamp;

    The _EventDuration key was not being stored, as mdd061000 discovered, so I hacked this together to save it (as the duration in seconds). Would appreciate feedback from the developers—my past events page works now, at any rate.

  16. mdd061000
    Member
    Posted 1 year ago #

    I'm not going to mark the thread as resolved until we get confirmation that a fix will be included in the next update to the plugin, but this should get everybody back up and running for now.

  17. tributeWP
    Member
    Posted 1 year ago #

    Until I regain access to my server, I'm sort of stuck with this problem.
    Any word on when we'll get that update or what it will fix?

  18. jonahcoyote
    Member
    Posted 1 year ago #

    Hi all,

    Sorry about all the issues this is causing. We've just been able to verify the issue here as well and like mdd061000 has pointed out, has something to do with _EventDuration not being set. We've got this slated to be fixed ASAP but in the mean time please use the solution posted above by mdd061000 (and originally provided by Ned Zimmerman) - thanks for the fix guys!

    Regards,
    Jonah

  19. Rafauke_POL
    Member
    Posted 1 year ago #

    Hey guys, I did what mdd061000 suggested but my three-day-long event still does not display in days in grid view. Any idea why? :)

  20. tributeWP
    Member
    Posted 1 year ago #

    Same here. Just was able to put in that fix from Ned Zimmerman and there was no change in how my event (July 10 - August 1) was/wasn't displayed.

  21. mdd061000
    Member
    Posted 1 year ago #

    After the fix you will need to go into all the existing events and click update. Otherwise the metadata will still not exist in the DB. Have you done this?

  22. tributeWP
    Member
    Posted 1 year ago #

    Whoops, had not. Thanks.

  23. Rafauke_POL
    Member
    Posted 1 year ago #

    Thanks mdd061000, that did a trick :) Your solution is great :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags