• Resolved Aurore

    (@aurore888)


    Hello,

    I have a problem with the search form and the filters of the members and groups directories, they return nothing because of this error :

    
    Uncaught ReferenceError: imagesLoaded is not defined
        at HTMLDocument.<anonymous> (youzify-directories.min.js?ver=1.1.6:1)
        at e (jquery.min.js?ver=3.6.0:2)
        at t (jquery.min.js?ver=3.6.0:2)
    

    And after searching or clicking the links :

    
    jquery.min.js?ver=3.6.0:2 
            
           Uncaught ReferenceError: imagesLoaded is not defined
        at HTMLDocument.<anonymous> (youzify-directories.min.js?ver=1.1.6:1)
        at e (jquery.min.js?ver=3.6.0:2)
        at t (jquery.min.js?ver=3.6.0:2)
    (anonymes) @ youzify-directories.min.js?ver=1.1.6:1
    e @ jquery.min.js?ver=3.6.0:2
    t @ jquery.min.js?ver=3.6.0:2
    setTimeout (asynchrone)
    S.readyException @ jquery.min.js?ver=3.6.0:2
    (anonymes) @ jquery.min.js?ver=3.6.0:2
    e @ jquery.min.js?ver=3.6.0:2
    t @ jquery.min.js?ver=3.6.0:2
    setTimeout (asynchrone)
    (anonymes) @ jquery.min.js?ver=3.6.0:2
    c @ jquery.min.js?ver=3.6.0:2
    fireWith @ jquery.min.js?ver=3.6.0:2
    fire @ jquery.min.js?ver=3.6.0:2
    c @ jquery.min.js?ver=3.6.0:2
    fireWith @ jquery.min.js?ver=3.6.0:2
    t @ jquery.min.js?ver=3.6.0:2
    setTimeout (asynchrone)
    (anonymes) @ jquery.min.js?ver=3.6.0:2
    c @ jquery.min.js?ver=3.6.0:2
    fireWith @ jquery.min.js?ver=3.6.0:2
    fire @ jquery.min.js?ver=3.6.0:2
    c @ jquery.min.js?ver=3.6.0:2
    fireWith @ jquery.min.js?ver=3.6.0:2
    ready @ jquery.min.js?ver=3.6.0:2
    B @ jquery.min.js?ver=3.6.0:2
    buddypress.min.js?ver=9.1.1:1 
            
           Uncaught ReferenceError: imagesLoaded is not defined
        at youzify_init_directory_masonry (buddypress.min.js?ver=9.1.1:1)
        at HTMLDivElement.<anonymous> (buddypress.min.js?ver=9.1.1:1)
        at HTMLDivElement.r.complete (jquery.min.js?ver=3.6.0:2)
        at c (jquery.min.js?ver=3.6.0:2)
        at Object.fireWith [as resolveWith] (jquery.min.js?ver=3.6.0:2)
        at u (jquery.min.js?ver=3.6.0:2)
        at Function.S.fx.tick (jquery.min.js?ver=3.6.0:2)
        at ot (jquery.min.js?ver=3.6.0:2)
    

    I use Extra theme and I played with the differents options below without success :

    
    Defer jQuery And jQuery Migrate
    Enqueue jQuery Compatibility Script
    Defer Additional Third Party Scripts
    

    These scripts are loaded in the directories pages :
    jquery-query.min.js?ver=9.1.1
    jquery.min.js?ver=3.6.0

    What’s wrong please ?

    Thank you very much.
    Kind regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Youzify

    (@youzify)

    Hello @aurore888,

    Thanks for using our product.

    Just to confirm if you change the theme is the problem resolved? as we need to know if the conflict is coming from the theme or one of the plugins you are using so we can find the best solution for you ??

    I’ll be waiting for your reply.

    Best Regards.

    Thread Starter Aurore

    (@aurore888)

    Hello,

    Thank you very much for your help. I just tried with another website which has Extra theme and I get the same errors. They disappear when i switch to the 21 theme. It’s definitely a theme conflict.

    Best regards

    ———
    Extra theme Version 4.14.4
    WordPress Version 5.8.2
    Youzify Version 1.1.6

    Plugin Author Youzify

    (@youzify)

    Hello @aurore888,

    Thanks for confirming.

    I did some testing and found that this issue comes from Masonry Script is not being called. I couldn’t test this on the theme as it seems that it’s PRO theme because I couldn’t find it in WordPress themes directory.

    But here’s I created this snippet, please add it to your site:

    <?php
    
    /**
     * Youzify - Add Missing MPasonry JS
     */
    
    add_action( 'wp_enqueue_scripts', 'yzc_add_masonry_js', 9999 );
    
    function yzc_add_masonry_js() {
        if ( bp_is_members_directory() || bp_is_groups_directory() ) {
            wp_enqueue_script( 'masonry' );
        }
    }

    If this didn’t work I recommend reaching the theme team and asking them if there’s a way we could enable Masonry script because it’s not being disabled even though we are calling it.

    I just searched t

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘imagesLoaded is not defined – Groups and Members Directories’ is closed to new replies.