Title: [Plugin: StatPress Visitors] Newest version disables javascript in plugin page
Last modified: August 20, 2016

---

# [Plugin: StatPress Visitors] Newest version disables javascript in plugin page

 *  Resolved [Eckstein](https://wordpress.org/support/users/eckstein/)
 * (@eckstein)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-statpress-visitors-newest-version-disables-javascript-in-plugin-page/)
 * I have a few plugins that use javascript in the admin plugins page for their 
   settings, so that the user doesn’t have to leave that page to change them.
 * It seems since I updated to the new StatPress V it for some reason kills this
   functionality.
 * Everything else seems to be working fine (better actually!) it’s just this little
   issue that I’ve found.
 * One plugin, specifically, that this is affecting is WP Maintenance Mode
 * [http://wordpress.org/extend/plugins/statpress-visitors/](http://wordpress.org/extend/plugins/statpress-visitors/)

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

 *  Thread Starter [Eckstein](https://wordpress.org/support/users/eckstein/)
 * (@eckstein)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-statpress-visitors-newest-version-disables-javascript-in-plugin-page/#post-2958983)
 * OK, after further using on the admin area, it seems like the plugin is also disabling
   the fly-out menus on the back end. That’s a bigger problem.
 * Thanks for listening!
 *  [Bob33](https://wordpress.org/support/users/bob33/)
 * (@bob33)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-statpress-visitors-newest-version-disables-javascript-in-plugin-page/#post-2959015)
 * Yep, its also affecting some functions on post edit pages – word count not working,
   can’t add new category etc.
 * Great looking update to this plugin – thanks – but be good to see a fix for this.
 *  [holospirit](https://wordpress.org/support/users/holospirit/)
 * (@holospirit)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-statpress-visitors-newest-version-disables-javascript-in-plugin-page/#post-2959048)
 * Error: TypeError: jQuery(“.datepicker”).datepicker is not a function
 * possible reason:
    wp_enqueue_script(‘jquery-ui-datepicker’, STATPRESS_V_PLUGIN_URL.‘/
   js/jquery.ui.datepicker.min.js’, array (‘jquery’, ‘jquery-ui-core’));
 * -> jquery.ui.datepicker.min.js is only enqued in stats-vis – but the function
   is called always
 * solution:
    add line ~177 admin/lic_admin.php: if (isset($_GET[‘page’]) && strpos(
   $_GET[‘page’], “statpress-visitors”) !== false) { and a closing } after the script
   call
 *  Thread Starter [Eckstein](https://wordpress.org/support/users/eckstein/)
 * (@eckstein)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-statpress-visitors-newest-version-disables-javascript-in-plugin-page/#post-2959062)
 * Thank you for the update today! This seems to have fixed the issue. This is a
   great plugin, thanks for all your hard work.

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

The topic ‘[Plugin: StatPress Visitors] Newest version disables javascript in plugin
page’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/statpress-visitors.svg)
 * [StatPress Visitors](https://wordpress.org/plugins/statpress-visitors/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/statpress-visitors/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/statpress-visitors/)
 * [Active Topics](https://wordpress.org/support/plugin/statpress-visitors/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/statpress-visitors/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/statpress-visitors/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Eckstein](https://wordpress.org/support/users/eckstein/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-statpress-visitors-newest-version-disables-javascript-in-plugin-page/#post-2959062)
 * Status: resolved