Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp_get_cookies is not defined


  • torrid33
    Participant

    @torrid33

    Hi,
    When we try to Post we get this error and button spins forever without doing anything because it is a fatal “Uncaught ReferenceError” and points to script yz-wall-form.min.js?ver=2.6.2:formatted:64

    Buddypress 7.1.0
    Youzer 2.6.2
    Wordpress 5.5.3
    Using BeTheme
    Hosting: WPEngine

    Screenshot of console…
    01.25.2021-12.38.00

    Any ideas?
    -Tim

Viewing 2 replies - 1 through 2 (of 2 total)

  • iamthewebb
    Participant

    @iamthewebb

    Hi, Youzer heavily customizes BuddyPress so you will likely need to contact their support while this plugin is activated. The js file you mention above is also one of theirs as you can see from the yz initials at the beginning of the file name.


    johnabelardom
    Participant

    @johnabelardom

    Hello, @torrid33

    Got a workaround solutions for this problem

    Kindly add this action:

    
    <?php
    
    add_action('yz_activity_scripts', 'add_yz_buddypress_min_js_file');
    function add_yz_buddypress_min_js_file() {
    wp_enqueue_script( 'yz-buddypress', YZ_PA . 'js/buddypress.min.js', array( 'jquery' ), YZ_Version ); 
    }
    
    ?>

    If code above don’t work, just add this code to plugins/youzer/includes/public/core/class-yz-wall.php file, on after line 959 or after code from comment “// Wall JS”

    
    <?php
    wp_enqueue_script( 'yz-buddypress', YZ_PA . 'js/buddypress.min.js', array( 'jquery' ), YZ_Version ); // Added
    ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar