Next Month Button Not Working ( Undefined)

Home Forums Calendar Products Events Calendar PRO Next Month Button Not Working ( Undefined)

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1361829
    Eric
    Participant

    Hi,

    I’m having an issue where the advance month button doesn’t do anything. It appears to load but no change appears on the page. The browser tab displays “undefined”

    I’ve attached a screenshot for clarity.

    #1362301
    Patricia
    Member

    Hey Herb,

    Thank you for reaching out to us!

    I’m so sorry to hear that you are having problems with your calendar! Let me help you to solve this.

    When I click on your next month link (November) I get the following JavaScript error:

    Uncaught DOMException: Failed to execute 'pushState' on 'History': A history state object with URL 'http://firearmacademy.caundefined/' cannot be created in a document with origin 'http://firearmacademy.ca' and URL 'http://firearmacademy.ca/events/month/'.

    There is a JavaScript bug causing the “undefined” word to be appended to the end of your URL. The URL argument to pushState should be relative to the current page, or an absolute URL in your own domain: since the URL is being changed via JS from “http://firearmacademy.ca/” to “http://firearmacademy.caundefined/”, is it not working.

    Since I can’t replicate this issue in my own WordPress install with all Modern Tribe plugins and Twenty Seventeen theme enabled, I believe that this is caused by a theme or plugin conflict. You’ll have to debug and find out what is causing your URL to be changed.

    I would recommend you to run a Conflicts Test. You can start the test by temporarily deactivating all of your plugins (except Modern Tribe plugins) and changing your theme to another one like Twenty Seventeen to find out what plugin or theme script is causing this change (don’t forget to backup your database before changing anything).

    I hope this helps you get started! Let me know if you have any other questions and I’ll be happy to assist!

    Best Regards,

    Patricia

    #1373881
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Next Month Button Not Working ( Undefined)’ is closed to new replies.