Title: Javascript error on private groups
Last modified: August 22, 2016

---

# Javascript error on private groups

 *  Resolved [Toby](https://wordpress.org/support/users/tobyhawkins/)
 * (@tobyhawkins)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-on-private-groups/)
 * Running v1.8 (although the same issue happens in 1.7) with Buddypress v2.1.1.
 * On the home page for groups, I get a javascript error if the group is private.
   The error is thrown on line 27 of general.js: $(‘input.bp-group-documents-new-
   category’).val(l10nBpGrDocuments.new_category).css(‘color’,’#999′).focus(function(){
 * Error is Uncaught TypeError: Cannot read property ‘css’ of undefined.
 * The element in question doesn’t appear on either page that I can see. Can’t see
   why the error is thrown on private groups only.
 * [https://wordpress.org/plugins/bp-group-documents/](https://wordpress.org/plugins/bp-group-documents/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Toby](https://wordpress.org/support/users/tobyhawkins/)
 * (@tobyhawkins)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-on-private-groups/#post-5448965)
 * My bad. It wasn’t private groups. There was something else behaving weird in 
   the activity stream that was causing the error. Still not hugely sure why, but
   there we go.

Viewing 1 replies (of 1 total)

The topic ‘Javascript error on private groups’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bp-group-documents.svg)
 * [BP Group Documents](https://wordpress.org/plugins/bp-group-documents/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bp-group-documents/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bp-group-documents/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-group-documents/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-group-documents/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-group-documents/reviews/)

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [Toby](https://wordpress.org/support/users/tobyhawkins/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-on-private-groups/#post-5448965)
 * Status: resolved