Title: Weird JavaScript behaviour
Last modified: August 24, 2016

---

# Weird JavaScript behaviour

 *  Resolved [Azalea Mollis](https://wordpress.org/support/users/azaleamollis/)
 * (@azaleamollis)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/weird-javascript-behaviour/)
 * Hi,
 * It seems the JavaScript of the AG Custom Admin plugin behaves weirdly. It stops
   other plugins’ JavaScript functionality, and returns error messages about code
   parts that don’t even exist.
 * I discussed the issue here with another plugin author whose plugin’s JS was stopped
   by this plugin:
    [https://wordpress.org/support/topic/js-reference-error?replies=9](https://wordpress.org/support/topic/js-reference-error?replies=9)
 * I got this error message on the admin settings page of this plugin:
 *     ```
       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
       ```
   
 * The developer later figured out that the mentioned line doesn’t exist.
 * From that conversation:
 * > 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.
 * It’s not only the Bulletproof Security plugin where this strange behaviour occurs
   but the same thing happens on the admin settings page of the JetPack plugin.
 * Could you please help me figure out what happens and how to resolve it?
 * Thanks.
 * [https://wordpress.org/plugins/ag-custom-admin/](https://wordpress.org/plugins/ag-custom-admin/)

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

 *  [WAP Support](https://wordpress.org/support/users/argonius/)
 * (@argonius)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/weird-javascript-behaviour/#post-5992509)
 * Hi Azela,
 * AG Custom Admin plugin catches any errors thrown in WordPress admin panel. This
   feature was suppose to help users to find and fix such problems but we get many
   support requests asking us to fix such problems. These problems are not related
   to AGCA plugin. We will release new version soon that will not show error notification
   in admin. For any concerns about other plugins please contact their support.
 * Thanks,
    Argonius
 *  Thread Starter [Azalea Mollis](https://wordpress.org/support/users/azaleamollis/)
 * (@azaleamollis)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/weird-javascript-behaviour/#post-5992529)
 * Thanks for the info Argonius.

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

The topic ‘Weird JavaScript behaviour’ is closed to new replies.

 * ![](https://ps.w.org/ag-custom-admin/assets/icon.svg?rev=2928712)
 * [AGCA - Custom Dashboard & Login Page](https://wordpress.org/plugins/ag-custom-admin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ag-custom-admin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ag-custom-admin/)
 * [Active Topics](https://wordpress.org/support/plugin/ag-custom-admin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ag-custom-admin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ag-custom-admin/reviews/)

## Tags

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

 * 2 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/weird-javascript-behaviour/#post-5992529)
 * Status: resolved