Home › Forums › Calendar Products › Events Calendar PRO › AJAX features (next/prev/list as) not working
- This topic has 7 replies, 2 voices, and was last updated 10 years, 9 months ago by
Brian.
-
AuthorPosts
-
July 20, 2015 at 3:27 pm #988171
impishfish
ParticipantHi 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
July 21, 2015 at 5:00 am #988293Brian
MemberHi 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
July 21, 2015 at 7:52 am #988397impishfish
ParticipantThanks – I’ve removed the first instance now and it doesn’t look like it’s had any effect.
July 21, 2015 at 8:37 am #988436Brian
MemberOk thanks for removing that.
I am now seeing this issue:
TypeError: $ is not a function
http://iwradio.co.uk/events/
Line 600This is the code it is referencing:
<script type="text/javascript">
$(function() {$('#weather').fadeOut(500, function() {
$(this).text('').fadeIn(500);
});});
</script>July 21, 2015 at 8:57 am #988455impishfish
ParticipantThanks – 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.
July 21, 2015 at 1:56 pm #988616Brian
MemberHi 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
July 24, 2015 at 8:35 am #989943impishfish
ParticipantThanks – 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?
July 24, 2015 at 8:43 am #989951Brian
MemberGreat 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
-
AuthorPosts
- The topic ‘AJAX features (next/prev/list as) not working’ is closed to new replies.
