Event Calendar shows incorrect Next and Previous Month Links

Home Forums Calendar Products Events Calendar PRO Event Calendar shows incorrect Next and Previous Month Links

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #74068
    Todd
    Participant

    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.

    #74075
    Jen
    Participant

    I 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?

    #74080
    Todd
    Participant

    Our best guess is an update bug…

    #74081
    proximomktg
    Participant

    The same thing is happenening to my website as well!! http://www.mycomputerconcepts.com/events/

    #74084
    Stacy
    Participant

    I’m having the same issue. 🙁 http://www.enjoylasallecounty.com/events/

    #74085
    J T
    Participant

    We are having the same issue. http://www.oecnonline.org/events/month/

    #74087
    Stacy
    Participant

    I 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!”

    #74090
    Todd
    Participant

    Just noticed (as you would expect) this problem also exists in the widget. The <> links go to the wrong months.

    #74111
    Todd
    Participant

    Stacy – thx for tip. Guess we all wait 🙂

    #74115
    Todd
    Participant

    A 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’ ) );

    #74174
    Kelly
    Participant

    Hi, 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!

    #74246
    Christopher
    Participant

    It 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.

    #74266
    Kelly
    Participant

    Hi, 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! 🙂

    #981741
    Support Droid
    Keymaster

    This 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.

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Event Calendar shows incorrect Next and Previous Month Links’ is closed to new replies.