Bootstrap_Datepicker throwing error

Home Forums Calendar Products Events Calendar PRO Bootstrap_Datepicker throwing error

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1219246
    Lisa
    Participant

    When visiting the default event page /events/ I am receiving Undefined offset: 0

    This error is originating from the-events-calendar/src/Tribe/Assets/Bootstrap_Datepicker.php line 16
    'daysShort' => array_merge( $this->tec->daysOfWeekShort, array( $this->tec->daysOfWeekShort[0] ) ),

    The function that populates the daysOfWeekShort property is found in the-events-calendar/src/Tribe/Main.php line 2177

    $this->daysOfWeekShort = Tribe__Date_Utils::get_localized_months_short();

    get_localized_months_short returns an associative array of months not the numerically indexed array Bootstrap_Datepicker.php is expecting.

    I believe the correct code for Main.php line 2177 should be
    $this->daysOfWeekShort = Tribe__Date_Utils::get_localized_weekdays_short();

    #1219328
    Cliff
    Member

    Hi. Sorry you’re experiencing this. It is a known bug that should be fixed soon via a plugin update.

    I’ll mark this ticket as Pending Fix, which means this thread should receive a reply once the applicable fix has been released. I cannot guarantee when it will be fixed as it’s in the development team’s hands now.

    However, if you’re anxious to get it resolved right away, replacing the entire contents of this file:

    /wp-content/plugins/the-events-calendar/src/Tribe/Asset/Bootstrap_Datepicker.php

    with this code:

    https://raw.githubusercontent.com/moderntribe/the-events-calendar/6888c3ae5da0d67f4aacc147157f005efba1e93f/src/Tribe/Asset/Bootstrap_Datepicker.php

    resolved the issue for me. You might want to try it too.

    I apologize for this issue and appreciate your understanding and patience.

    #1225079
    Nico
    Member

    Hey,

    I’m reaching out to let you know that we just released a fix for this issue. Please update the plugins to version 4.4.1 (4.4.1.1 for The Events Calendar) and let us know if this actually makes the issue right in your site.

    More details on the release → Maintenance Release: The Events Calendar and Event Tickets 4.4.1, plus premium add-ons

    Best,
    Nico

    #1225399
    Lisa
    Participant

    I’ll test it over the weekend and get back to you

    #1225499
    Cliff
    Member

    Thanks for touching base, Lisa.

    Enjoy your weekend and let us know when you’ve got an update for us.

    #1241132
    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 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Bootstrap_Datepicker throwing error’ is closed to new replies.