Title: Error on JS version
Last modified: April 21, 2019

---

# Error on JS version

 *  [skrisz](https://wordpress.org/support/users/skrisz/)
 * (@skrisz)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/error-on-js-version/)
 * Greetings!
 * I have some trouble about set up this plugin for my website. When I try to use
   the JS version i get this error on the page:
    Warning: sort() expects parameter
   1 to be array, integer given in /bitnami/wordpress/wp-content/plugins/age-gate/
   public/class-age-gate-public-js.php on line 116
 * How can I solve this problem?
    Yours Faithfully, Krisztián Schmidt
    -  This topic was modified 7 years, 1 month ago by [skrisz](https://wordpress.org/support/users/skrisz/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Phil](https://wordpress.org/support/users/philsbury/)
 * (@philsbury)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/error-on-js-version/#post-11455351)
 * Hi [@skrisz](https://wordpress.org/support/users/skrisz/),
 * There is a fix coming for this, but it can be fixed in the admin too.
 * This happens if you have “Posts will inherit their taxonomies restriction settings”
   checked on the **Restrictions** tab, but haven’t selected any taxonomies on the**
   Advanced** tab under “Inheritance taxonomies” .
 * You can either uncheck the first one or select some on the second one and the
   notice should stop.
 * Thanks
    Phil

Viewing 1 replies (of 1 total)

The topic ‘Error on JS version’ is closed to new replies.

 * ![](https://ps.w.org/age-gate/assets/icon-256x256.png?rev=2783003)
 * [Age Gate](https://wordpress.org/plugins/age-gate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/age-gate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/age-gate/)
 * [Active Topics](https://wordpress.org/support/plugin/age-gate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/age-gate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/age-gate/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Phil](https://wordpress.org/support/users/philsbury/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/error-on-js-version/#post-11455351)
 * Status: not resolved