Home › Forums › Calendar Products › Events Calendar PRO › Event Calendar shows incorrect Next and Previous Month Links
- This topic has 13 replies, 8 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
October 31, 2013 at 11:26 am #74068ToddParticipant
As of today 10/31, our Event Calendar Pro is showing the previous month as October and the next month as December (i.e. — it thinks we are in November). Here’s the link: http://www.twobrothersbrewing.com/events/month/ Any idea why?
Our staging website, using the same plugins, is working correctly. We have the same databases loaded to each site except that only the http://www.twobrothersbrewing.com site has the license key for the Events Calendar PRO version.
Also note that this Events Calendar has been updated (automatically?) to version 3.1 and our staging and localhost sites are running 3.0.3.
October 31, 2013 at 12:06 pm #74075JenParticipantI have also noticed this same thing on two websites, ours and another site that’s obviously using this plugin. Must be a bug? MT — thoughts?
October 31, 2013 at 12:18 pm #74080ToddParticipantOur best guess is an update bug…
October 31, 2013 at 12:21 pm #74081proximomktgParticipantThe same thing is happenening to my website as well!! http://www.mycomputerconcepts.com/events/
October 31, 2013 at 12:26 pm #74084StacyParticipantI’m having the same issue. 🙁 http://www.enjoylasallecounty.com/events/
October 31, 2013 at 12:32 pm #74085J TParticipantWe are having the same issue. http://www.oecnonline.org/events/month/
October 31, 2013 at 12:34 pm #74087StacyParticipantI saw this from a support person in another thread:
“This issue is bound to be frustrating but should be transitory – it relates to a problem with date handling that is only exposed at certain points. So, hopefully, you will find that tomorrow it all operates as expected once more.
Added to which, we are close to releasing our next maintenance release and that will incorporate a substantive fix for this issue.
Thanks for your patience!”
October 31, 2013 at 12:48 pm #74090ToddParticipantJust noticed (as you would expect) this problem also exists in the widget. The <> links go to the wrong months.
October 31, 2013 at 1:49 pm #74111ToddParticipantStacy – thx for tip. Guess we all wait 🙂
October 31, 2013 at 2:31 pm #74115ToddParticipantA fix from my son (Greg Ferrell) for this:
The bug is in file: the-events-calendar\lib\the-events-calendar.class.php
LINE
3461 public function nextMonth( $date ) {
3461 return date( ‘Y-m’, strtotime( $date . ‘ +1 month’ ) );3472 public function previousMonth( $date ) {
3473 return date( ‘Y-m’, strtotime( $date . ‘ -1 month’ ) );Here’s the fix: change “+1” and “-1” to “first day of next” and “first day of last”
3461 public function nextMonth( $date ) {
3461 return date( ‘Y-m’, strtotime( $date . ‘ first day of next month’ ) );3472 public function previousMonth( $date ) {
3473 return date( ‘Y-m’, strtotime( $date . ‘ first day of last month’ ) );October 31, 2013 at 5:17 pm #74174KellyParticipantHi, folks! I’m so sorry about this. You are seeing a bug in our code. Please be confident that your events are safe!
We have indeed found the culprit in our code and have a fix in the works. It may be that you’ll need to wait until our next release, which is just around the corner, but the good news is that after midnight, the issue will go away (lie dormant) until the end of November, so it shouldn’t affect you before the fix is out.
Our apologies again for the Halloween scare!
November 1, 2013 at 8:58 am #74246ChristopherParticipantIt seems my Nov. events are okay today, unless you go to December, where, like all future months, no events are appearing, and then go back to Nov., then, for some reason, Nov. events are limited to only two, down from about 20.
November 1, 2013 at 9:53 am #74266KellyParticipantHi, Christopher. Thanks for getting in touch. Would you mind opening a new thread? Then we can help you troubleshoot your issue.
For now, I’m going to close this thread. Thanks everyone for getting in touch! 🙂
July 7, 2015 at 6:29 am #981741Support DroidKeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Event Calendar shows incorrect Next and Previous Month Links’ is closed to new replies.