Home › Forums › Calendar Products › Events Calendar PRO › Bootstrap_Datepicker throwing error
- This topic has 6 replies, 5 voices, and was last updated 9 years, 2 months ago by
Lisa.
-
AuthorPosts
-
January 16, 2017 at 2:24 pm #1219246
Lisa
ParticipantWhen 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();January 16, 2017 at 4:27 pm #1219328Cliff
MemberHi. 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:
resolved the issue for me. You might want to try it too.
I apologize for this issue and appreciate your understanding and patience.
January 27, 2017 at 5:58 am #1225079Nico
MemberHey,
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,
NicoJanuary 27, 2017 at 1:33 pm #1225399Lisa
ParticipantI’ll test it over the weekend and get back to you
January 27, 2017 at 3:44 pm #1225499Cliff
MemberThanks for touching base, Lisa.
Enjoy your weekend and let us know when you’ve got an update for us.
February 18, 2017 at 8:35 am #1241132Support 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 -
AuthorPosts
- The topic ‘Bootstrap_Datepicker throwing error’ is closed to new replies.
