Title: JS error
Last modified: January 21, 2021

---

# JS error

 *  [Peter Hebert](https://wordpress.org/support/users/peterhebert/)
 * (@peterhebert)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/js-error-119/)
 * FYI there has been a few threads about JS errors (Failed to initialize plugin:
   formstack) when on taxonomy edit or list screens. There was a fix suggested in
   [this thread](https://wordpress.org/support/topic/failed-to-initialize-plugin-formstack-on-category-edit-screen/),
   but the fix did not work (logic was a bit off).
 * I have rewritten [@joelnewcomer](https://wordpress.org/support/users/joelnewcomer/)’
   s suggested fix for line 173 of plugin.pphp to:
 * `if ( (! current_user_can( 'edit_posts' ) && ! current_user_can( 'edit_pages'))
   || !in_array( $GLOBALS['hook_suffix'], array('post.php', 'post-new.php') ) ) {`
 * This seems to fix it both for the taxonomy listing pages, and for the term edit
   pages.
    -  This topic was modified 5 years, 4 months ago by [Peter Hebert](https://wordpress.org/support/users/peterhebert/).
      Reason: WP coding standards in suggested fix

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

 *  [meshorti](https://wordpress.org/support/users/meshorti/)
 * (@meshorti)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/js-error-119/#post-14002968)
 * This worked for me, thanks man!
 *  [ryan360](https://wordpress.org/support/users/ryan360/)
 * (@ryan360)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/js-error-119/#post-14241435)
 * You the man!

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

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

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

## Tags

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

 * 2 replies
 * 3 participants
 * Last reply from: [ryan360](https://wordpress.org/support/users/ryan360/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/js-error-119/#post-14241435)
 * Status: not a support question