After / Problem with the function tribe_get_listview_prev_link ()

Home Forums Calendar Products Events Calendar PRO After / Problem with the function tribe_get_listview_prev_link ()

Viewing 15 posts - 1 through 15 (of 24 total)
  • Author
    Posts
  • #1421500
    Rivet
    Participant
    #1423244
    Brendan
    Keymaster

    Hi there,

    Can you also try testing for conflicts with your theme and other plugins? If you would prefer not to do this on your live site, WP Staging will let you create a quick copy of your live site that you can use for testing. Let me know what you find!

    Thanks,
    Brendan

    #1423353
    Rivet
    Participant

    Hello,

    Yes I tried.

    I noticed several error messages in attachments. That would come from there?

    #1424296
    Brendan
    Keymaster

    Hi There,

    I see. Looks like something is missing from code or may be corrupted. Can you please reinstall our plugins. Just delete them and reinstall them. All of your database info will still be there so you don’t need to worry about losing info. But as always, make a backup.

    Thanks,
    Brendan

    #1424597
    Rivet
    Participant

    Hello,

    I did it but it did not change anything.

    #1425410
    Brendan
    Keymaster

    Hi Rivet,

    Based on the console errors, it looks like there is a jquery mismatch. Are you able to reinstall wordpress to the latest version?

    Let me see how that goes.

    Thanks,

    Brendan

    #1426515
    Rivet
    Participant

    No. In addition, the multisite is online, is not this a problem ?

    Would you have another proposal? A tool to detect Jquery error or conflict?

    #1428897
    Brendan
    Keymaster

    Hi Rivet,

    We do not have a tool to detect the error in jquery. However with others they have updated jquery to the latest version. You may want to check your theme functions.php and make sure its using the latest version of jquery as well.

    Thanks,
    Brendaners

    #1429333
    Rivet
    Participant

    hello,

    actually when I paste this piece of code into my functions.php file the plugin works again.

    if( !is_admin()){
    wp_deregister_script('jquery');
    wp_register_script('jquery','http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js', false, '');
    wp_enqueue_script('jquery');
    };

    But how do I target only the list view page? Because for the moment this solution breaks the other plugins (revolution slider).

    Thanks, P.

    #1432706
    Brendan
    Keymaster

    Hi there,

    To customize the script you can add view conditionals such as: tribe_is_month(), tribe_is_day(), tribe_is_list_view(), etc or account for other situations like: tribe_is_event_category(), tribe_is_event_venue() or tribe_is_event_organizer(). It all depends on what you are looking for!

    If you just want to amend the previous snippet try replacing: && ! is_singular( ‘tribe_events’ ) with && ! is_singular( ) and that should de the trick for you.

    Please let me know if this helps,
    Best,
    Brendan

    #1434461
    Rivet
    Participant

    Hello, I wish to target only the type of page that is problematic, the type list view. But when I try the code below it does not work, while with !is_admin() it works. An idea ?

    if( tribe_is_list_view()){
    wp_deregister_script('jquery');
    wp_register_script('jquery','http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js', false, '');
    wp_enqueue_script('jquery');
    };

    Thanks, P.

    #1435290
    Brendan
    Keymaster

    Hi there,

    So are you using !is_admin and the ‘&&’ tribe_is_list_view? Or just what you sent?

    Thanks,
    Brendan

    #1436065
    Rivet
    Participant

    I just tried the code below and it does not work:

    if( !is_admin() && tribe_is_list_view()){
    wp_deregister_script('jquery');
    wp_register_script('jquery','http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js', false, '');
    wp_enqueue_script('jquery');
    };

    So, after i tried the code below and the link works for 1 or 2 seconds then it bug again ?? :

    if( !is_admin() AND tribe_is_list_view() || tribe_is_showing_all()){
    wp_deregister_script('jquery');
    wp_register_script('jquery','http://ajax.googleapis.com/ajax/libs/jquery/3/jquery.min.js', false, '');
    wp_enqueue_script('jquery');
    };

    Here is a link to the page:
    https://viacampesina.org/fr/evenements/

    Thanks, P.

    • This reply was modified 6 years, 3 months ago by Rivet.
    #1436070
    Rivet
    Participant

    *I put &&

    • This reply was modified 6 years, 3 months ago by Rivet.
    #1437723
    Brendan
    Keymaster

    Hi Rivet,

    I see there is an error with piwik. What happens when you disable that plugin?

    Thanks,
    Brendan

Viewing 15 posts - 1 through 15 (of 24 total)
  • The topic ‘After / Problem with the function tribe_get_listview_prev_link ()’ is closed to new replies.