Countdown timer disappeared off page since Cornerstone update!

Please help!!!

Hi there,

I have a countdown time plug in to display the timer on my page - Countdown Timer Ultimate - it has been working fine for 2 weeks. Late last night i updated Cornerstone and this morning a frantic client phones me complaining about the timer being gone. Since the only thing i had done was update Cornerstone, i’m thinking it must be related? I’ve cleared my cache and force reloaded all my pages, still no timer. i created a new test one - no timer. i deleted the plug in and re-installed it - no timer. i’ve tried some other plug ins and they display but stylistically nowhere close to the original plug in and i know this client, that is extremely difficult, is going to shout at me again if the timer looks too different from the original one.

What can we do, please? Please help!

Thank you,
Carin

Hi Carin,

Thanks for writing in! You need to update X theme as well in order-to maintain the consistency and to avoid incompatibility issues. You can check the version numbers from here (https://theme.co/changelog/)

After updating, head over to X -> Settings section and hit the Clear Style Cache button. Then if you’re using a caching plugin, you need purge server cache and also clear browser cache before testing.

In case if you’re using a service like CloudFlare, you need to clear it’s cache as well.

Let us know how it goes.
Thanks!

Hello there,

Ah thank you, that did the trick!

Thank you kindly for your help,

Best regards,
Carin

You’re welcome! Thanks for confirming.

Hello. I’m having the same problem with my countdown timer. I updated the theme (6.1.5) and Cornerstone (3.1.5). I’m not using a plugin. My timer runs off a JS and element CSS. The timer is loaded using a list in a raw content element. The column containing the timer itself is formatted using element css. Maybe I’m just tired and missing something, but I haven’t figured out why the timer is no longer showing. The JS for the timer is in the Theme Options. I’ve purged all caches, cleared the style cache, and cleared the browser cache but timer is still not showing. Would you please have a look?

Hi @HGPower,

I deleted your login credentials, please change it as soon as possible. You should only provide it in your own thread. As for the issue, it’s because x variable is already declared,

const second = 1000,
      minute = second * 60,
      hour = minute * 60,
      day = hour * 24;

let countDown = new Date('Aug 04, 2018 00:00:00').getTime(),
    x = setInterval(function() {

      let now = new Date().getTime(),
          distance = countDown - now;

      document.getElementById('days').innerText = Math.floor(distance / (day)),
        document.getElementById('hours').innerText = Math.floor((distance % (day)) / (hour)),
        document.getElementById('minutes').innerText = Math.floor((distance % (hour)) / (minute)),
        document.getElementById('seconds').innerText = Math.floor((distance % (minute)) / second);
      
      //do something later when date is reached
      //if (distance < 0) {
      //  clearInterval(x);
      //  'SESSION IN PROGRESS!;
      //}

    }, second)

Please change this to something else,

x = setInterval(function() {

like

y = setInterval(function() {

I recommend contacting your developer that made this code.

Thanks!

Thank you. I sent the login info as a secure note (see below). I’m not sure what happened, but I have updated login credentials. Thanks for the resolution. Timer is working again!

Hello There,

It’s good to know that your Timer is working again.
If you need anything else we can help you with, don’t hesitate to open another thread along with your login details so that only you and our staffs could see it.

Best Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.