Skip to:
Content
Pages
Categories
Search
Top
Bottom

Uncaught ReferenceError: BP_Theme is not defined – Suffusion theme


  • enderandrew
    Member

    @enderandrew

    I’m testing BP 1.6 SVN for a new site I’m developing. I can’t update my status, add friends, or do anything that seems to rely on AJAX calls it seems. In my Javascript console I’m seeing the following error:

    Uncaught ReferenceError: BP_Theme is not defined

    1. Which version of WordPress are you running? 3.4
    2. Did you install WordPress as a directory or subdomain install? Directory
    3. If a directory install, is it in root or in a subdirectory? Root
    4. Did you upgrade from a previous version of WordPress? If so, from which version? Started on 3.4 SVN and upgraded to 3.4 proper
    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting. Yes
    6. Which version of BP are you running? 1.6 SVN
    7. Did you upgraded from a previous version of BP? If so, from which version? No
    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones? I have several plugins. I’ve disabled all that tie into BuddyPress.
    9. Are you using the standard BuddyPress themes or customized themes? Suffusion with the Suffusion Buddypress pack
    10. Have you modified the core files in any way? No
    11. Do you have any custom functions in bp-custom.php? I did, but I’ve removed the file in my troubleshooting.
    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in? 2.1 SVN
    13. Please provide a list of any errors in your server’s log files.
    14. Which company provides your hosting? VPS
    15. Is your server running Windows, or if Linux; Apache, nginx or something else? Linux, Apache 2.2

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

  • enderandrew
    Member

    @enderandrew

    I’ve modified what I believe is the relevant suffusion function to more closely mirror what is in bp-default.

    `function suffusion_include_bp_js() {
    if (!is_admin() && function_exists(‘bp_is_group’)) {
    wp_enqueue_script(‘suffusion-bp-ajax-js’, get_template_directory_uri() . ‘/_inc/global.js’, array( ‘jquery’ ), $version );
    $params = array(
    ‘my_favs’ => __( ‘My Favorites’, ‘buddypress’ ),
    ‘accepted’ => __( ‘Accepted’, ‘buddypress’ ),
    ‘rejected’ => __( ‘Rejected’, ‘buddypress’ ),
    ‘show_all_comments’ => __( ‘Show all comments for this thread’, ‘buddypress’ ),
    ‘show_all’ => __( ‘Show all’, ‘buddypress’ ),
    ‘comments’ => __( ‘comments’, ‘buddypress’ ),
    ‘close’ => __( ‘Close’, ‘buddypress’ ),
    ‘view’ => __( ‘View’, ‘buddypress’ ),
    ‘mark_as_fav’ => __( ‘Favorite’, ‘buddypress’ ),
    ‘remove_fav’ => __( ‘Remove Favorite’, ‘buddypress’ )
    );
    wp_localize_script( ‘suffusion_include_bp_js’, ‘BP_DTheme’, $params );
    if ( is_singular() && bp_is_blog_page() && get_option( ‘thread_comments’ ) )
    wp_enqueue_script( ‘comment-reply’ );
    }
    }
    add_action( ‘wp_enqueue_scripts’, ‘suffusion_include_bp_js’ );`


    @mercime
    Participant

    @mercime

    == 9. Are you using the standard BuddyPress themes or customized themes? Suffusion with the Suffusion Buddypress pack ==

    This is a Suffusion/BuddyPress pack plugin issue. Please bring this to the developer’s attention. However, BP 1.6 is not out yet so I’m not surprised Sayontan, the developer, hasn’t released any updates yet.


    enderandrew
    Member

    @enderandrew

    I assume it is most likely that the theme isn’t working with the unreleased 1.6 yet. However, I’m curious if someone could perhaps help me get it working. I want to test and troubleshoot 1.6 SVN.


    enderandrew
    Member

    @enderandrew

    I disabled the Suffusion Buddypress plugin (but kept those template files in my child theme) and switched to the Buddypress Template Pack for loading the Buddypress javascript and everything works fine now.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Uncaught ReferenceError: BP_Theme is not defined – Suffusion theme’ is closed to new replies.
Skip to toolbar