• Resolved ksprehe

    (@ksprehe)


    I am getting an “Uncaught TypeError: moment(…).tz is not a function” error (in the console) when I have the counter on a page with an Event Organiser plugin widget. If I create a static html page from the markup and move the countdown js files below the Event Organiser js files, the countdown works and the error does not appear. Can you advise how to resolve this issue since I cannot tell WordPress to load your js files after the Event Organiser js files?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author adamskaat

    (@adamskaat)

    Dear @ksprehe,

    Thank you for connecting us.
    Can you confirm if our plugin included on the page is it working?
    Please share a URL where I could see that issue

    Hi Adam, I just updated the plugin from version 2.1.2 to the latest one and the plugin cannot be loaded up. I excluded it from Autoptimize so it’s loading up stand-alone, but countdown does not display at all. WP, PHP and all other plugins are up to date.

    Uncaught TypeError: moment(...).tz is not a function
        at YcdCountdown.setCounterTime (Countdown.js?ver=2.45:640:40)
        at YcgGeneral.getSeconds (YcdGeneral.js?ver=2.45:11:22)
        at YcdCountdown.addTimeToClock (Countdown.js?ver=2.45:789:21)
        at HTMLDivElement.<anonymous> (Countdown.js?ver=2.45:775:8)
        at Function.each (jquery.min.js?ver=3.6.0:2:3003)
        at s.fn.init.each (jquery.min.js?ver=3.6.0:2:1481)
        at YcdCountdown.startTimeCircle (Countdown.js?ver=2.45:765:9)
        at YcdCountdown.init (Countdown.js?ver=2.45:27:7)
        at new YcdCountdown (Countdown.js?ver=2.45:4:7)
        at HTMLDocument.<anonymous> (Countdown.js?ver=2.45:884:2)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘TypeError: moment(…).tz is not a function’ is closed to new replies.