Title: JS Reference Error
Last modified: August 24, 2016

---

# JS Reference Error

 *  Resolved [Azalea Mollis](https://wordpress.org/support/users/azaleamollis/)
 * (@azaleamollis)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/js-reference-error/)
 * Hi,
 * Today I noticed that the tabs can’t be opened on Bulletproof Security’s settings
   page (in the “htaccess Core” submenu). Another plugin caught the following JavaScript
   Error:
 *     ```
       AG Custom Admin caught a JavaScript error on this site:
   
       Uncaught ReferenceError: otw_shortcode_object is not defined
   
       source: http://.../wp-admin/admin.php?page=bulletproof-security/admin/core/options.php line:2438
       ```
   
 * Could you please help with this?
 * Thx
 * [https://wordpress.org/plugins/bulletproof-security/](https://wordpress.org/plugins/bulletproof-security/)

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

 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/js-reference-error/#post-5977508)
 * Not sure if that js error is related or not to the tabs not working correctly.
   Probably not and is a separate js issue occurring specifically in that plugin.
 * Most likely what is causing the BPS tabs issue is another plugin is loading its
   js scripts in BPS plugin pages and breaking BPS’ js functionality.
 * Do these troubleshooting steps:
    Deactivate plugins one by one and test BPS tabs
   to find out which plugin that is. Let me know which plugin that is and I will
   install and test it further and post back here.
 *  Thread Starter [Azalea Mollis](https://wordpress.org/support/users/azaleamollis/)
 * (@azaleamollis)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/js-reference-error/#post-5977536)
 * Yes, you were right. It’s not an issue of BPS but of the [AG Custom Admin](https://wordpress.org/plugins/ag-custom-admin/)
   plugin. It also breaks Jetpack’s JS functionality.
 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/js-reference-error/#post-5977539)
 * Ok I will install and test it and figure out what in AG Custom Admin is causing
   the problem.
 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/js-reference-error/#post-5977542)
 * Right out of the box without choosing any settings everything is working correctly
   and BPS tabs are not broken. I see that the AG Custom Admin plugin is loading
   inline js scripts in BPS plugin pages when I view the Source Code of BPS plugin
   pages, but the BPS menu tabs are working correctly. I assume the BPS tabs you
   are referring to are the actual BPS menu tabs – Security Modes tab, etc. I did
   not try any other settings in this plugin and this plugin has too many different
   option settings to try and guess which settings you are using. I see that you
   can exclude menus from this plugin so taking a logical guess I would assume you
   just need to exclude the BPS menu from being handled by this plugin.
 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/js-reference-error/#post-5977544)
 * I see this help information in this plugin so maybe this has something to do 
   with the issue/problem?
 * > Important: Please Turn off menu configuration before activating or disabling
   > other plugins (or making any other changes to main menu). Use Reset Settings
   > button to restore default values if anything goes wrong.
   > If you found that admin menu items are misaligned or not correct, press Reset
   > Settings button. This happens if admin menu is changed by other plugins, or
   > after activating / deactivating other plugings. Avoid such changes after you
   > apply admin menu customizations.
 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/js-reference-error/#post-5977545)
 * Anyway it would be better to ask the AG Custom Admin plugin author about this
   issue since the author would probably know exactly what in this plugin could 
   cause that type of issue. I think it technically falls under his/her jurisdiction.
 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/js-reference-error/#post-5977590)
 * Forgot to mention this. The BPS options.php file has a total of 1692 code lines.
   So there was nothing to check at code line 2438 in the error message below since
   it does not exist.
 * `source: http://.../wp-admin/admin.php?page=bulletproof-security/admin/core/options.
   php line:2438`
 *  Thread Starter [Azalea Mollis](https://wordpress.org/support/users/azaleamollis/)
 * (@azaleamollis)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/js-reference-error/#post-5977657)
 * “The BPS options.php file has a total of 1692 code lines. So there was nothing
   to check at code line 2438 in the error message below since it does not exist.”
 * That’s interesting. 🙂 Well, then the JS problem will definitely be the issue
   of AG Custom Admin. Thanks for the thorough testing, it was a great help.

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

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

 * ![](https://ps.w.org/bulletproof-security/assets/icon-128x128.png?rev=1731938)
 * [BulletProof Security](https://wordpress.org/plugins/bulletproof-security/)
 * [Support Threads](https://wordpress.org/support/plugin/bulletproof-security/)
 * [Active Topics](https://wordpress.org/support/plugin/bulletproof-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bulletproof-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bulletproof-security/reviews/)

## Tags

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

 * 8 replies
 * 2 participants
 * Last reply from: [Azalea Mollis](https://wordpress.org/support/users/azaleamollis/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/js-reference-error/#post-5977657)
 * Status: resolved