Title: JS error
Last modified: August 22, 2016

---

# JS error

 *  [pathuri](https://wordpress.org/support/users/pathuri/)
 * (@pathuri)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/js-error-23/)
 * I’m getting the following JS error :
    Uncaught TypeError: undefined is not a 
   function : (index):2952
 * Line where JS error is occurring :
    ————————————————————— //remove event handler
   previously attached to #bpfb_submit jq(“#bpfb_submit”).die( “click” );
 * JS function :
    ———————————————– jq(document).ready( function() {
 *  form = jq(“#whats-new-form”);
    text = form.find(‘textarea[name=”whats-new”]’);
 *  //remove event handler previously attached to #bpfb_submit
    jq(“#bpfb_submit”).
   die( “click” );
 *  jq(document).delegate(“#bpfb_submit”, ‘click’, function (event) {
 *  event.preventDefault();
    var params = _bpfbActiveHandler.get(); var group_id
   = jq(‘#whats-new-post-in’).length ?jq(‘#whats-new-post-in’).val() : 0;
 *  jq.post(ajaxurl, {
    “action”: “bpfb_update_activity_contents”, “data”: params,//
   add visibility level to the ajax post “visibility” : jq(“select#activity-privacy”).
   val(), “content”: text.val(), “group_id”: group_id }, function (data) { _bpfbActiveHandler.
   destroy(); text.val(”); jq(‘#activity-stream’).prepend(data.activity); /** * 
   Handle image scaling in previews. */ jq(“.bpfb_final_link img”).each(function(){
   jq(this).width(jq(this).parents(‘div’).width()); });
 *  //reset the privacy selection
    jq(“select#activity-privacy option[selected]”).
   prop(‘selected’, true).trigger(‘change’);
 *  jq(‘select.bp-ap-selectbox’).customStyle(‘2’);
    }); }); }); —————————————————————–
   Any idea how to fix this?
 * [https://wordpress.org/plugins/buddypress-activity-plus/](https://wordpress.org/plugins/buddypress-activity-plus/)

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

 *  Plugin Support [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * (@wpmudev-support1)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/js-error-23/#post-5518952)
 * Hi [@pathuri](https://wordpress.org/support/users/pathuri/),
 * Sorry to hear of the problem you are having.
 * Could you please tell me which versions of BuddyPress Activity Plus and BuddyPress
   plugins you are using?
 * Also please make sure you are not facing the BuddyPress issue described in the
   following topic.
 * [https://wordpress.org/support/topic/upload-linksbutton-missing-with-buddypress-21-release?replies=14#post-6268018](https://wordpress.org/support/topic/upload-linksbutton-missing-with-buddypress-21-release?replies=14#post-6268018)
 * Kind Regards,
    WPMU DEV
 *  Thread Starter [pathuri](https://wordpress.org/support/users/pathuri/)
 * (@pathuri)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/js-error-23/#post-5519015)
 * I did several tries :
    1) Disabling BP ACTIVITY SC – Still the JS error is coming
   2) Removed the additional code in class_bfpb_binder.php, which enables BP A+ 
   icons to be loaded along with BP ACTIVITY SC plug-in – but still JS error comes
   The JS error exactly points to the below line : //remove event handler previously
   attached to #bpfb_submit jq(“#bpfb_submit”).die( “click” );
 * Might be the above can throw some light on the issue?
 *  Thread Starter [pathuri](https://wordpress.org/support/users/pathuri/)
 * (@pathuri)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/js-error-23/#post-5519016)
 * As I read in BP forums, BP 2.1.1 addresses all the issues except one issue remains
   to be fixed.
 * [https://buddypress.org/support/topic/buddypress-2-1-known-issues/](https://buddypress.org/support/topic/buddypress-2-1-known-issues/)
 *  Thread Starter [pathuri](https://wordpress.org/support/users/pathuri/)
 * (@pathuri)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/js-error-23/#post-5519017)
 * I have 2 issues because of JS error (I presume):
 * 1) In TABS : Icons BP A+ icons are NOT getting loaded, but the same works fine
   in normal pages
    2) In Normal pages, BP A+ works, but LIGHTBOX is NOT working.
   Earlier it was working on normal pages also.
 *  Plugin Support [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * (@wpmudev-support1)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/js-error-23/#post-5519051)
 * Hi [@pathuri](https://wordpress.org/support/users/pathuri/),
 * Could you please share me your activity page link so that i can troubleshoot 
   the issue?
 * This can also be due to plugin/theme conflict.
 * To find find out plugin/theme conflict you can just try on your development site
   using default WordPress theme like Twenty Thirteen and deactivating all other
   plugins as displayed in the following flowchart to know which theme/plugin is
   conflicting if any.
 * [http://premium.wpmudev.org/wp-content/uploads/2013/12/Support-Process-Support-Process.png](http://premium.wpmudev.org/wp-content/uploads/2013/12/Support-Process-Support-Process.png)
 * Regards,
    WPMU DEV
 *  Thread Starter [pathuri](https://wordpress.org/support/users/pathuri/)
 * (@pathuri)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/js-error-23/#post-5519083)
 * [http://www.nammavidyaranyapura.org/community/](http://www.nammavidyaranyapura.org/community/)
 *  Plugin Support [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * (@wpmudev-support1)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/js-error-23/#post-5519094)
 * Hi [@pathuri](https://wordpress.org/support/users/pathuri/),
 * Thanks you for sharing the page link.
 * I checked the shared page and found the BuddyPress Activity Plus icons are displaying
   on it as shown in the following attached screenshot.
 * > [View post on imgur.com](https://imgur.com/xFHcfu3)
 * Please advise.
 * Regards,
    WPMU DEV
 *  Thread Starter [pathuri](https://wordpress.org/support/users/pathuri/)
 * (@pathuri)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/js-error-23/#post-5519102)
 * Yes – the BP links show-up on the page.
    But giving the below error, which points
   to BPFB. //remove event handler previously attached to #bpfb_submit jq(“#bpfb_submit”).
   die( “click” ); Because of this LIGHTBOX is not working on BPFB images. Any clue
   how to overcome this.
 * One more question : In the next TAB, BP icons are not showing-up. What I have
   noticed is BP icons are not showing-up in TABS.
 *  Thread Starter [pathuri](https://wordpress.org/support/users/pathuri/)
 * (@pathuri)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/js-error-23/#post-5519105)
 * Looks like there was a clash with ‘buddypress activity privacy’ plugin.
    Seems
   to be JS error gone. But the other problems remain : not able to load bp a+ icons
   in hidden tabs. Please let me know if there is any it can be done?
 *  Plugin Support [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * (@wpmudev-support1)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/js-error-23/#post-5519122)
 * Hi [@pathuri](https://wordpress.org/support/users/pathuri/),
 * Are you using any plugin to display these tabs or are these tabs displayed by
   the suffusion theme that you are using?
 * Regards,
    WPMU DEV
 *  Thread Starter [pathuri](https://wordpress.org/support/users/pathuri/)
 * (@pathuri)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/js-error-23/#post-5519123)
 * I’m using EASY RESPONSIVE TABS :
    [https://wordpress.org/plugins/easy-responsive-tabs/](https://wordpress.org/plugins/easy-responsive-tabs/)
 *  Thread Starter [pathuri](https://wordpress.org/support/users/pathuri/)
 * (@pathuri)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/js-error-23/#post-5519167)
 * One more thing I observed. On mobile phones, file browser is not opening, when
   I click the UPLOAD FILE button. The problem exists with/with-out TABS.
 *  Plugin Support [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * (@wpmudev-support1)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/js-error-23/#post-5519174)
 * Hi [@pathuri](https://wordpress.org/support/users/pathuri/),
 * > I’m using EASY RESPONSIVE TABS :
   >  [https://wordpress.org/plugins/easy-responsive-tabs/](https://wordpress.org/plugins/easy-responsive-tabs/)
 * I can see the plugin is listed as compatible up to WordPress 3.6.1 and not with
   the latest version of WordPress so this may be causing the issue.
 * Is it possible for you to use any other plugin like following to create tabs.
 * [https://wordpress.org/plugins/tabby-responsive-tabs/](https://wordpress.org/plugins/tabby-responsive-tabs/)
 * I tried using Easy Responsive Tabs plugin on my test site and creating the same
   output that your community page has but i couldn’t do it.
 * Could you please tell me details about creating that same output by sharing the
   screenshots of it so that i can reproduce the issue?
 * For screenshots, you can simply provide a link to an image through Google Drive,
   Dropbox, screencast.com, [http://imgur.com/](http://imgur.com/) or other image
   service. 🙂
 * > One more thing I observed. On mobile phones, file browser is not opening, when
   > I click the UPLOAD FILE button. The problem exists with/with-out TABS.
 * Regarding this please see the following reply posted by the plugin developer.
 * [http://premium.wpmudev.org/forums/topic/activity-plus-image-uploader-does-not-work-for-mobile-clients-suggestions#post-181689](http://premium.wpmudev.org/forums/topic/activity-plus-image-uploader-does-not-work-for-mobile-clients-suggestions#post-181689)
 * Regards,
    Vinod Dalvi
 *  Thread Starter [pathuri](https://wordpress.org/support/users/pathuri/)
 * (@pathuri)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/js-error-23/#post-5519180)
 * I’m using TABS so that user no need to go to different pages for different groups.
   
   But BP groups doesn’t have short codes to display each group in a page or post.
   Hence I’m using BP ACTIVITY SHORT CODE for displaying groups in any page. Apart
   from this I’m using BP NEW POST form (in a shortcode form) before the BP ACTIVITY
   plug-in. I have stripped couple of data from the POST data. And also made text
   wrap around the images. Hence the display is slightly different from normal BP
   groups display. I did found some short comings with TABBY compared to ERT. But
   will try once again and report back.
 *  Plugin Support [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * (@wpmudev-support1)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/js-error-23/#post-5519188)
 * Hi [@pathuri](https://wordpress.org/support/users/pathuri/),
 * Have you tried it?
 * Regards,
    Vinod Dalvi

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

The topic ‘JS error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/buddypress-activity-plus_db6c43.svg)
 * [BuddyPress Activity Plus](https://wordpress.org/plugins/buddypress-activity-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/buddypress-activity-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/buddypress-activity-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/buddypress-activity-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddypress-activity-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddypress-activity-plus/reviews/)

## Tags

 * ["js error"](https://wordpress.org/support/topic-tag/js-error/)

 * 15 replies
 * 2 participants
 * Last reply from: [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/js-error-23/#post-5519188)
 * Status: not resolved