Support » Plugin: BP Better Messages » Does not work out of the box – impossible to send messages

  • Resolved Aurore

    (@aurore888)


    Hello,

    I’m trying the plugin for the first time with BuddyPress installed. It is impossible to send messages because the field “send to” is disabled (impossible to write text in it).

    It is impossible to reply to messages. The message seems to be sent but it does not appear in the list, no error message.

    There is no message tab in the bottom window (no php or js error).

    If I disable the plugin, the BP message system works properly.

    Is it a misconfiguration or a bug ? Thank you very much

    Best regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author wordplus

    (@wordplus)

    Hi there!

    Most likely javascript error in your website.

    1. Check javascript errors in your website.
    2. If you have JS minification plugin – clean its cache.

    Thread Starter Aurore

    (@aurore888)

    Thank you very much for your quick reply. I double checked and you’re right. There is a JS error :

    jquery.min.js?ver=3.5.1:2 Uncaught ReferenceError: moment is not defined
    at HTMLDocument.<anonymous> ((index):310)
    at e (jquery.min.js?ver=3.5.1:2)
    at t (jquery.min.js?ver=3.5.1:2)
    (anonymous) @ (index):310
    e @ jquery.min.js?ver=3.5.1:2
    t @ jquery.min.js?ver=3.5.1:2
    setTimeout (async)
    S.readyException @ jquery.min.js?ver=3.5.1:2
    (anonymous) @ jquery.min.js?ver=3.5.1:2
    e @ jquery.min.js?ver=3.5.1:2
    t @ jquery.min.js?ver=3.5.1:2
    setTimeout (async)
    (anonymous) @ jquery.min.js?ver=3.5.1:2
    c @ jquery.min.js?ver=3.5.1:2
    fireWith @ jquery.min.js?ver=3.5.1:2
    fire @ jquery.min.js?ver=3.5.1:2
    c @ jquery.min.js?ver=3.5.1:2
    fireWith @ jquery.min.js?ver=3.5.1:2
    t @ jquery.min.js?ver=3.5.1:2
    setTimeout (async)
    (anonymous) @ jquery.min.js?ver=3.5.1:2
    c @ jquery.min.js?ver=3.5.1:2
    fireWith @ jquery.min.js?ver=3.5.1:2
    fire @ jquery.min.js?ver=3.5.1:2
    c @ jquery.min.js?ver=3.5.1:2
    fireWith @ jquery.min.js?ver=3.5.1:2
    ready @ jquery.min.js?ver=3.5.1:2
    B @ jquery.min.js?ver=3.5.1:2

    JS minification is not installed.

    • This reply was modified 3 months, 3 weeks ago by Aurore.
    • This reply was modified 3 months, 3 weeks ago by Aurore.
    Plugin Author wordplus

    (@wordplus)

    so something is breaking that script, no idea what it can be. do you have any other page/speed optimisations plugins?

    Thread Starter Aurore

    (@aurore888)

    Thank you very much for your help. I totally forgot about this function in my child template (to lighten my pages):

    
    function my_styles_and_scripts() {
    
        //  DEqueue Activities
        if( ! bp_is_current_component( 'activity' ) && !is_page('activites') ) {               
            wp_dequeue_script( 'bp-moment-locale' );
            wp_dequeue_script( 'bp-livestamp' );
            wp_dequeue_script( 'bp_messages_js' ); 
        }
       
        //  DEqueue Buddypress
        if( ! is_buddypress() ) { 
            wp_deregister_script( 'bp-nouveau' );
            wp_deregister_style( 'bp-nouveau' );
            wp_dequeue_style( 'bp-nouveau-icons' );
        } 
         
        // DEqueue Widgets
        wp_dequeue_script( 'bp_core_widget_friends-js' );    
    
        // DEqueue Mentions
         if( ! comments_open() &&  ! is_buddypress() ) {
            wp_dequeue_script( 'bp-mentions' );
            wp_dequeue_style( 'bp-mentions' );
         }
    
    }
    add_action( 'wp_enqueue_scripts', 'my_styles_and_scripts', 100 );
    
    

    This line is causing trouble :

                   
            wp_dequeue_script( 'bp-moment-locale' );
    
    

    Now the plugin seems to work fine. I need to test it a little bit more but I already love it. Congratulations for this beautiful job and thank you for sharing it.

    I wish you the best.

    Kind regards,

    Aurore

    • This reply was modified 3 months, 3 weeks ago by Aurore.
    • This reply was modified 3 months, 3 weeks ago by Aurore.
    • This reply was modified 3 months, 3 weeks ago by Aurore.
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.