Title: &#8220;Uncaught ReferenceError&#8221; causing broken javascript actions when editing ads
Last modified: November 28, 2018

---

# “Uncaught ReferenceError” causing broken javascript actions when editing ads

 *  Resolved [Firman](https://wordpress.org/support/users/jfireman/)
 * (@jfireman)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-causing-broken-javascript-actions-when-editing-ads/)
 * Since the latest update, I’m unable to click some items like scheduling ad publish
   date or adding visitor condition when adding / editing ads.
 * I checked the console log and there is this error. Can you please look into it
   as this break the advanced ad plugin settings in wp-admin:
 * > Uncaught ReferenceError: Advanced_Ads_Admin is not defined
   >  at HTMLDocument.
   > <anonymous> (post.php?post=67134&action=edit:190) at i (load-scripts.php?c=
   > 0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-
   > ui-mouse,jquery-ui-sortable,jquery-ui-position,jquery-ui&load[]=-menu,wp-a11y,
   > jquery-ui-autocomplete,underscore,backbone,wp-util,wp-backbone,media-models,
   > moxiejs,plupload,wp-plupload&ver=4.9.8:2) at Object.fireWith [as resolveWith](
   > load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,
   > jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-position,jquery-
   > ui&load[]=-menu,wp-a11y,jquery-ui-autocomplete,underscore,backbone,wp-util,
   > wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=4.9.8:2) at Function.
   > ready (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-
   > ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-position,
   > jquery-ui&load[]=-menu,wp-a11y,jquery-ui-autocomplete,underscore,backbone,wp-
   > util,wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=4.9.8:2) at 
   > HTMLDocument.K (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,
   > jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-
   > position,jquery-ui&load[]=-menu,wp-a11y,jquery-ui-autocomplete,underscore,backbone,
   > wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=4.9.8:2)

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

 *  Plugin Author [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-causing-broken-javascript-actions-when-editing-ads/#post-10924608)
 * Hi Firman,
 * thanks for reporting this issue.
 * Right now, I am not able to reproduce it.
 * There was nothing added on the ad edit page in the last update. Would it be possible
   that this was caused by the update to 1.10.10?
 * Are you, by any chance, using the Code Highlighter add-on for Advanced Ads?
 * Thanks,
    Thomas
 *  Thread Starter [Firman](https://wordpress.org/support/users/jfireman/)
 * (@jfireman)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-causing-broken-javascript-actions-when-editing-ads/#post-10924642)
 * Hi Thomas,
 * Thanks for the response. I’m not sure which update breaks this, last week I’m
   still able to edit and add ads normally in advanced ads. I just updated to version
   1.10.11 today and the error is still there.
 * I’m also not using code highlighter add-on at the moment.
 * If you are not experiencing the problem, then there is probability that a plugin
   conflict occurs. I will do some testing then and update here if there is a result.
 *  Plugin Author [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-causing-broken-javascript-actions-when-editing-ads/#post-10924648)
 * Thank you.
 * Yes, please keep me updated.
 * Thomas
 *  Plugin Author [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-causing-broken-javascript-actions-when-editing-ads/#post-10944618)
 * Hi Firman,
 * have you been able to narrow down the issue or was it resolved with the Advanced
   Ads 1.10.12 update?
 * Thanks,
    Thomas
 *  Thread Starter [Firman](https://wordpress.org/support/users/jfireman/)
 * (@jfireman)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-causing-broken-javascript-actions-when-editing-ads/#post-10947691)
 * The issue is still there with 1.10.12, after testing the previous version of 
   the plugin, I found out that the problem occurs since version 1.10.10. I tried
   using version 1.10.9 and there is no problem with it.
 *  Plugin Author [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-causing-broken-javascript-actions-when-editing-ads/#post-10958803)
 * Thank you, Firman, that helped a lot!
 * Could you please contact me at [support@wpadvancedads.com](https://wordpress.org/support/topic/uncaught-referenceerror-causing-broken-javascript-actions-when-editing-ads/support@wpadvancedads.com?output_format=md)
   for a fixed version. I should have one next week.
 * Thomas
 *  Thread Starter [Firman](https://wordpress.org/support/users/jfireman/)
 * (@jfireman)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-causing-broken-javascript-actions-when-editing-ads/#post-11102833)
 * Version 1.11 of this plugin finally fix the error I experienced before. Thank
   you for the wonderful update. So far I have not seen any noticeable error with
   the new version.
 *  Plugin Author [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-causing-broken-javascript-actions-when-editing-ads/#post-11103417)
 * Thanks for your help discovering the conflict with the caching plugin and for
   confirming that it worked.
 * Thomas

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

The topic ‘“Uncaught ReferenceError” causing broken javascript actions when editing
ads’ is closed to new replies.

 * ![](https://ps.w.org/advanced-ads/assets/icon-256x256.gif?rev=2773443)
 * [Advanced Ads – Ad Manager & AdSense](https://wordpress.org/plugins/advanced-ads/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-ads/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-ads/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-ads/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-ads/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-ads/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-causing-broken-javascript-actions-when-editing-ads/#post-11103417)
 * Status: resolved