AJAX features (next/prev/list as) not working

Home Forums Calendar Products Events Calendar PRO AJAX features (next/prev/list as) not working

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #988171
    impishfish
    Participant

    Hi there

    Further to my previous post (https://theeventscalendar.com/support/forums/topic/nextprev-events-button-not-working/) I’m afraid I’m still stuck on this. http://www.iwradio.co.uk/events works but http://www.splashfm.com/events doesn’t (two sites on the same multisite install with the same plugins & theme activated).

    Any help greatly appreciated!

    Regards

    Ken

    #988293
    Brian
    Member

    Hi Ken,

    Sorry for the ongoing issues here.

    I can help troubleshoot this with you.

    I visited the splashfm site and notice jQuery is being loaded twice.

    One here first:

    <script src=”//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js”></script>

    And second here:

    <script type=’text/javascript’ src=’//splashfm.com/wp-includes/js/jquery/jquery.js?ver=1.11.2′></script>

    Not sure which one you want to use, but loading it twice maybe causing this issue. It could be coming from a plugin or some custom coding just on that site.

    The other site is also loading it twice, but it is not having the issues.

    However, as you see it could work in one, but not the other.

    Please remove one instance of jquery and we can go from there to resolve this.

    Thanks

    #988397
    impishfish
    Participant

    Thanks – I’ve removed the first instance now and it doesn’t look like it’s had any effect.

    #988436
    Brian
    Member

    Ok thanks for removing that.

    I am now seeing this issue:

    TypeError: $ is not a function
    http://iwradio.co.uk/events/
    Line 600

    This is the code it is referencing:

    <script type="text/javascript">
    $(function() {

    $('#weather').fadeOut(500, function() {
    $(this).text('').fadeIn(500);
    });

    });
    </script>

    #988455
    impishfish
    Participant

    Thanks – I’ve killed that one too, temporarily at least. Obviously needs explicit jQuery statement but I’ve taken it out for now. Still seems the same.

    #988616
    Brian
    Member

    Hi thanks for removing that as well.

    It is strange sometimes it loads for me and sometimes I get an error.

    See if adding this to the theme’s functions.php helps resolve the issue by getting rid of the debug error.

    function awi_tribe_events_js_bug_workaround() { ?>
    <script>if ( ! window.debug ) { window.debug = function(){}; window.debug.info = function(){}; }</script>
    <?php
    }
    add_action( 'wp_head', 'awi_tribe_events_js_bug_workaround' );

    Let me know how that works out.

    Thanks

    #989943
    impishfish
    Participant

    Thanks – that seems to have fixed it, we’re just testing on other browsers but it looks good so far.

    Is this something related to our site in particular or something within the plugin that will be fixed at a later date?

    #989951
    Brian
    Member

    Great glad it helps.

    It looked to be related to just your site, but I will keep an eye out for it to see if it turns out to be something in our plugin.

    Since this is marked resolved I am going to close this ticket, but if you need anything else related to this topic or another please post a new topic on the forum and we can help you out.

    Thanks

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘AJAX features (next/prev/list as) not working’ is closed to new replies.