Title: Javascript error when selecting categories
Last modified: August 31, 2016

---

# Javascript error when selecting categories

 *  Resolved [qazphilby](https://wordpress.org/support/users/qazphilby/)
 * (@qazphilby)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/javascript-error-when-selecting-categories/)
 * Hi,
 * I am trying t use this plugin to restrict the viewing of certain categories to
   members. However when i select categories for the conditional logic, nothing 
   happens. Looking at the console i can see there is a javascript error happening
   on the page “Uncaught TypeError: cannot read property ‘replace’ of undefined”.
   this seems to happen when ever i select anything but posts.
 * I have created several categories and tried unistalling and re-installing the
   plugin several times and also tried both chrome and edge browsers.
 * [https://wordpress.org/plugins/restrict-user-access/](https://wordpress.org/plugins/restrict-user-access/)

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

 *  Plugin Author [Joachim Jensen](https://wordpress.org/support/users/intoxstudio/)
 * (@intoxstudio)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/javascript-error-when-selecting-categories/#post-7148647)
 * Thank you for reporting this.
 * What other plugins do you have on your site? Did you try deactivating them?
 * The JavaScript error is most likely caused by an incompatibility with another
   plugin or your theme. If that is the case, we need to know which one so we can
   proceed from there.
 *  Thread Starter [qazphilby](https://wordpress.org/support/users/qazphilby/)
 * (@qazphilby)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/javascript-error-when-selecting-categories/#post-7148651)
 * Hi,
 * I am using The Twenty Sixteen theme and only have Akismet and jetpack active.
 * I have disabled all other plugins.
 *  Plugin Author [Joachim Jensen](https://wordpress.org/support/users/intoxstudio/)
 * (@intoxstudio)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/javascript-error-when-selecting-categories/#post-7148701)
 * Thank you, I will try to reproduce the error and get back to you.
 *  Plugin Author [Joachim Jensen](https://wordpress.org/support/users/intoxstudio/)
 * (@intoxstudio)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/javascript-error-when-selecting-categories/#post-7148721)
 * Unfortunately I cannot reproduce the error you get with the mentioned setup.
 * And it is very strange that only posts are affected. Would it be possible for
   you to create an administrator user for jv [at] intox.dk? Then I can take a look.
 *  Thread Starter [qazphilby](https://wordpress.org/support/users/qazphilby/)
 * (@qazphilby)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/javascript-error-when-selecting-categories/#post-7148777)
 * Sorry for the delayed response. I have created the user as requested and you 
   should have received the notification email
 *  Thread Starter [qazphilby](https://wordpress.org/support/users/qazphilby/)
 * (@qazphilby)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/javascript-error-when-selecting-categories/#post-7148779)
 * Hi, don’t need to worry, i have found the right combination of other plugins 
   now to meet my needs. thank you for your assistance in trying to resolve the 
   issue.
 *  Plugin Author [Joachim Jensen](https://wordpress.org/support/users/intoxstudio/)
 * (@intoxstudio)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/javascript-error-when-selecting-categories/#post-7148784)
 * I never received any email, but great that you found a solution.
 * If you run into more problems, do not hesitate to open a new support thread here.
   And if you like Content Aware Sidebars, please leave a review here: [https://wordpress.org/support/view/plugin-reviews/content-aware-sidebars](https://wordpress.org/support/view/plugin-reviews/content-aware-sidebars)

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

The topic ‘Javascript error when selecting categories’ is closed to new replies.

 * ![](https://ps.w.org/restrict-user-access/assets/icon-256x256.png?rev=1815922)
 * [Restrict User Access - Ultimate Membership & Content Protection](https://wordpress.org/plugins/restrict-user-access/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/restrict-user-access/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/restrict-user-access/)
 * [Active Topics](https://wordpress.org/support/plugin/restrict-user-access/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/restrict-user-access/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/restrict-user-access/reviews/)

## Tags

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

 * 7 replies
 * 2 participants
 * Last reply from: [Joachim Jensen](https://wordpress.org/support/users/intoxstudio/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/javascript-error-when-selecting-categories/#post-7148784)
 * Status: resolved