Viewing 30 posts - 1 through 30 (of 37 total)
  • Author
    Posts
  • #463698

    Hi,

    There is a bug with the Events Countdown Widget.

    If there is an event currently taking place the countdown does not show.
    Once the current event has passed and there is a gap between “now” and the next event, the countdown shows again.
    The Heading and Event Countdown are there in background if you hover the mouse over the space, but you can not see it.

    Changing the colour of the countdown (say from Transparent Light to Default) does not make any difference.

    I have tested this with your Church Theme demo also. It is easy to replicate. On my initial testing the “current event” had finished, but there was also another event taking place at the same time that went on half an hour longer (but I was able to see the details had changed when I hovered the mouse over the countdown)

    *Note. I did initially wonder if this was the case because when I tried with the Enfold demo, the time had passed and the event still did not show, but I realised the WP Timezone settings were UTC (an hour behind me), so once I had them both on the same timezone the bug was easy to reproduce.

    I hope you can fix this or offer a workaround quickly – I need to launch a site very soon.

    Thanks,
    H

    * I have the latest installs of everything, Enfold and TEC Pro (no other plugins)

    #464173

    Hi Heathcliffe!

    Does it do the same in the default WordPress theme?

    Can you send us a link to your page so we can take a look?

    Regards,
    Elliott

    #464371

    Hi @Elliot,

    I’m not sure what you mean by the “default WordPress theme” ?

    If I preview any other theme all I see is the enfold code – not the content.

    If you mean the default Enfold Theme – yes, it is a problem.

    Please have a look at your Church demo – just add a new event “Test” and make sure the start time is before the current time and the finish time is after the current time – in other words, so the event takes place now.

    Easy to replicate.

    My site is not live yet so I can’t send you a link, unless you have problems reproducing it and I can send the IP so you can change your host file.

    The following screenshot shows the Test Event in “Upcoming Events”. It is now 00:06 here. You can see the event therefore is taking place now. This is why the “Next Event starts in” (The Event Countdown Widget) is blank.

    Blank Widget

    Hope that helps.
    H

    #464766

    Hi!

    Could you please provide us with a temporary admin login so that we can take a closer look? You can post the details in the Private Content section of your reply.

    Best regards,
    Rikard

    #464893

    Have you tried to re-create this on your demo theme? It would be far easier for you to do this.

    My site is not live yet, but I could send you login details. However, you would need to change your Windows HOST file to point to the dev server ?

    Let me know.

    H

    #464931

    Hi!

    We would need to check a liver version, so we can try to locate the issue. I have tried to do it and could not replicate the issue at all.
    hthosts is not an easy solution, so please inform us when the site is up, and we will deal the ticket as emergency.

    Cheers!
    Basilis

    #465034

    OK thanks @Basilis

    Do you have a test environment that I could log into ? :)

    H

    #466245

    Hey!

    no, we don’t have an environment where you can login. Please send us admin login as soon as you are ready. You can post login details here as private reply.

    Best regards,
    Andy

    #470554

    Hi @Andy,

    I have provided the details below.

    Many thanks in advance.
    H

    *Just to add to this. When you look at the home page, you will see the Countdown widget. If see the actual countdown numbers, come back to the site at the time the countdown ends and you will see it will be blank (because the event is taking place) – I hope that makes sense ?

    • This reply was modified 9 years, 5 months ago by Cliffy.
    #470738

    Hi!

    Please try to edit the config-templatebuilder > avia-shortcodes > events_countdown.php. Remove everything then replace it with this: http://pastebin.com/z7vvR7PS

    Regards,
    Ismael

    #470978

    @Ismael,

    Hi Ismael, thanks for taking a look at this. Unfortunately this does not work. All that it does is put the countdown to Zero. If you refresh the page (or land on the page when an event is taking place) the countdown is blank.
    I would have expected the Countdown to start from the Next Event, which is what your demo suggests.

    I have only tested this on a test site. Do you need me to implement this code in the live site so you can look further?

    Thanks,
    H

    #471285

    Hi!

    It should jump to the next upcoming event. This seems to work on my installation. Alright. Please create a test page.

    Cheers!
    Ismael

    #472055

    i tried the code on the live site and now the home page (where the countdown is) hangs.
    I tried to put the old code back (from another installation) but that does not work. I don’t understand why it is broken, and why it is still broken after I put the old code back?

    Please help !

    #472056

    Further help – see private below

    #472121

    Have put all the enfold 3.2.2 files back via FTP and made sure I edited the correct file this time. Testing it on the test site still does not work. I have put the code also on the live site, which you now have full access to with WP admin and FTP.
    The next event on the live site is 10 hours away yet but I can’t see it working if the test site doesnt.

    Hope you can have time to take a look.
    Many thanks,
    H

    #472144

    Hi!

    The difference between the events in your installation and the ones in mine is the “recurrence” option which is only available in the pro version of the plugin, I think. We will test this again with the recurrence option enabled. Actually. the next event is there but the opacity is set to 0 and the countdown timer is not working for some reason. If you add this in the Quick CSS field, you’ll see the next event:

    .av-countdown-timer {
      opacity: 1;
    }

    Best regards,
    Ismael

    #473300

    Hey!

    I updated the code in the pastebin, please try it. http://pastebin.com/kg7KDvPH

    I tried to edit the file via FTP but it doesn’t seem to be working. Do you have any kind of cache plugin installed? Are you sure this is the correct directory?

    Best regards,
    Ismael

    #474494

    @Ismael,

    Thanks for taking a look Ismael. There are no cache plugins installed. I am not sure why are unable to edit the file.
    Can you actually login via FTP? (I can contact my Hosting company and have them look into it), though I have no problems uploading and you have the same access, just a different user name). I just connected with the details I gave you and can upload ok.

    The revised code has made no difference. Not with my test site or the live site.

    The countdown reaches 0 and that’s it. If you refresh the page the countdown is 0.
    See the screenshot I took taken 16 July @ 5:06 pm after loading the page.
    I would expect to see the widget counting down to the next event July 17 @ 5:05pm

    Also: is anyone looking at the spacing on the Upcoming Events widget above the Countdown widget? (I posted separate topic for that)

    I may have to copy this home page onto a new page as the client wishes to announce the new website soon :/

    Widget

    • This reply was modified 9 years, 5 months ago by Cliffy.
    #474662

    Hey!

    I checked the site again and the next event is showing up: http://calderdaleinrecovery.com/

    Cheers!
    Ismael

    #474843

    @Ismael,
    You misunderstand the problem.
    If you look at your screenshot … in 44 minutes and 39 seconds the countdown will go to 0 days 0 hours 0 minutes and 0 seconds.
    The countdown will stay at 0 for the next hour and a half – that is the problem (that’s how long that event lasts)

    I would expect when the event starts, the countdown would be showing the NEXT event !

    #475027

    Hi!

    When the countdown goes to zero then you refresh the page, it doesn’t show the next event? The modification above includes a conditional function that should exclude current events based on the event start and end date compared to the current time. We reported this issue to Kriesi and we already passed the possible solutions above.

    I would like to test this on your installation but all debugging efforts that I tried are not working. For example, if I try to use the var_dump function to display values of the variable, it doesn’t work. Can you please ask your hosting provider why?

    Regards,
    Ismael

    #475287

    Hi @Ismael,

    No the countdown stays at 0 until the event has finished, then it shows the next event.
    My hosting company do not understand what you are requesting?

    #475382

    Hey!

    In a php script, if you want to display the value of a variable, you can use var_dump or print_r functions. I tested the var_dump in the events_countdown.php file but it’s not working. I tested the same line of code on my installation and it display the value. I need to know why it’s not working because its kinda hard to debug the issue on your end if we can’t do this basic functions.

    http://php.net/manual/en/function.print-r.php
    http://php.net/manual/en/function.var-dump.php

    Regards,
    Ismael

    #475695

    Hi @Ismael,

    My hosting company reply is … it is working. See PM below.

    #475727

    Hey!

    He can try it in the events_countdown.php file. Use this code: http://pastebin.com/kg7KDvPH

    Look for this line:

     foreach($next->posts as $post) {
                                            $end = explode(" ", $post->EventEndDate );
                                            $start = explode(" ", $post->EventStartDate );
                                           
                                            if($time < strtotime($end[0]) && strtotime($start[0]) > $time) {
                                                    $upcomings[] = $post;
                                            }
                                    }  

    Below, he can add something like this:

    var_dump($upcomings);
    

    It will not display the events, at least not when I tried it. This same line of code display the upcoming events on my installation.

    Best regards,
    Ismael

    #476457

    Hi @Ismael,

    The hosting company tech support says this:

    Sorry for the late reply. I did some testing to your file. The reason you are not seeing any results from the var_dump or print is that the class avia_sc_events_countdown does exist and on the line 18 you are checking whether it does not exist so the whole code from line 18 to the end is ignored. If i do a var_dump outside this if statement it is shown just fine.

    I hope this helps.

    #476795

    Hi @Ismael,

    I have moved the event countdown from the home page to a test page. See below for the details.

    #476855

    Hi!

    I’m not sure what he’s saying. The class_exists is a basic function to check whether a specific class has been defined. Did the hosting support test it on that page? Like I said, that same line (#post-475727) is working on my installation. This is the screenshot of the var_dump function displaying the value of the $upcomings variable:

    As you can see it is displaying the “Rock Event” which is a sample of an upcoming event on my installation. Please ask him to take a screenshot of the test page after he use the var_dump function on the events_countdown.php file.

    Cheers!
    Ismael

    #478006

    Hey @Ismael,

    My hosting company have been very helpful (they do not usually support WordPress technical issues). They have offered to contact you by email too to help resolve the issue.

    The reply from them after testing on the new temp page is this:

    The 18 line of the events_countdown.php is checking if the class with name avia_sc_events_countdown does NOT exist, where it DOES exist, so the code below is being ignored. For some reason the class with name avia_sc_events_countdown is being defined somewhere else. If you remove the IF statement, the site throws a “Cannot redeclare class avia_sc_events_countdown” error. As an example, i have added a “inside” text inside the IF statement, and an “outside” outside of it, so if you check the top left of the temp page, the outside shows up and not the inside.

    Does this help? Can you confirm you are able still to FTP into the site?
    Please remember this is now a LIVE site.

    Many many thanks.

    #478017

    YIKES! I am receiving reports that the site is not looking good!
    I am not sure you are looking at this right now or not, but the home page looks awful and the “outside” script seems to be causing the problem.
    I will have to get the hosting company to remove this and just forget trying to fix it on a live site.

    Now that you saw the problem, maybe you can do more testing or confirm the correct code?

    Thanks,
    H

Viewing 30 posts - 1 through 30 (of 37 total)
  • You must be logged in to reply to this topic.