Title: Javascript error with WP-Version 4.1
Last modified: August 22, 2016

---

# Javascript error with WP-Version 4.1

 *  [Majid Ali](https://wordpress.org/support/users/mejibaba/)
 * (@mejibaba)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-with-wp-version-41/)
 * Hello,
    I just updated my wordpress to version 4.1 and when i go to Edit Page,
   it generates javascript error that is following…
 * > Error: Error: no such method ‘instance’ for menu widget instance
   >  Source File:/
   > wp-admin/load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils,jquery-
   > ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-sortable,
   > postbox,&load%5B%5D=thickbox,underscore,shortcode,plupload,json2,jquery-ui-
   > slider,jquery-touch-punch,iris,wp-color-picker,jquery-ui-datepicker,farbt&load%
   > 5B%5D=astic,media-upload&ver=4.1 Line: 2
 * I disabled and enabled all plugins one-by-one and i found it is due to WordPress
   SEO by Yoast. I confirmed it again and again, and verified that is true, I request
   author to guide me what should i do to resolve that issue.
    I have a big website
   SEO configured on it. So, please tell me how it can be resolve?
 * thank you so much.
 * [https://wordpress.org/plugins/wordpress-seo/](https://wordpress.org/plugins/wordpress-seo/)

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

 *  Anonymous User 162421
 * (@anonymized-162421)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-with-wp-version-41/#post-5603276)
 * Hey.
 * I was having this problem as well, and also did not want to disable the plugin
   due to that likely affecting SEO.
 * The error appears to be on the autocomplete jQuery for the focus keyword in the
   meta box.
 * I monkey-patched this by commenting out the following code:
 * jQuery(“#”+wpseoMetaboxL10n.field_prefix+”focuskw”).autocomplete({minLength:3,
   formatResult:function(a){return jQuery(“<div/>”).html(a).html()},source:function(
   a,b){var c=a.term;return c in e?void b(e[c]):(a._ajax_nonce=wpseoMetaboxL10n.
   wpseo_keyword_suggest_nonce,a.action=”wpseo_get_suggest”,void(d=jQuery.getJSON(
   ajaxurl,a,function(a,f,g){e[c]=a,g===d&&b(a)})))}}),
 * in the file \wp-content\plugins\wordpress-seo\js\wp-seo-metabox.min.js
 * Mind you this breaks autocomplete on the focus keyword box, but that is less 
   worse than it breaking javascript all over the edit page. I’m unsure what is 
   wrong with the autocomplete, likely fix incoming from Yoast team.
 *  [hcon1](https://wordpress.org/support/users/hcon1/)
 * (@hcon1)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-with-wp-version-41/#post-5603339)
 * Hi.
 * Following an update to WordPress 4.1 I’m having a JavaScript issue, the Yoast
   SEO plugin seems to be merging JavaScript into one file preventing the Visual
   Composer from loading on the backend.
 * When I deactivate the Yoast Plugin, Visual Composer works fine.
 * Thanks,
 *  [Joey George](https://wordpress.org/support/users/csine/)
 * (@csine)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-with-wp-version-41/#post-5603473)
 * Nigel! You are a life saver …
 *  Anonymous User 162421
 * (@anonymized-162421)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-with-wp-version-41/#post-5603474)
 * No problems! If I look into it further later and figure out the actual problem,
   I’ll post that.
 *  [turgutordu](https://wordpress.org/support/users/turgutordu/)
 * (@turgutordu)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-with-wp-version-41/#post-5603475)
 * Hello my friend. my site: [http://www.seotec.com.tr](http://www.seotec.com.tr)
   is Yoast was installed, but at the end of title (-) I was having problems how
   can I solve it?
 *  [martinhjort](https://wordpress.org/support/users/martinhjort/)
 * (@martinhjort)
 * [11 years ago](https://wordpress.org/support/topic/javascript-error-with-wp-version-41/#post-5603552)
 * Worked for me too, thanks Nigel 🙂
 *  [romi1475369](https://wordpress.org/support/users/romi1475369/)
 * (@romi1475369)
 * [11 years ago](https://wordpress.org/support/topic/javascript-error-with-wp-version-41/#post-5603553)
 * Yo,
 * Tried what Nigel suggested but it didnt work. Yoast is breaking all my JS and
   co. When I create a page it works ok but once I publish the page or save it I
   cant add links or anything and it breaks virtual composer and co
 * got this notice : [http://prntscr.com/6n1i6z](http://prntscr.com/6n1i6z)
 * I updated to Yoast SEO 2.0 but didnt change a thing.
 * Any idea guys ?
 *  [John](https://wordpress.org/support/users/jhob/)
 * (@jhob)
 * [11 years ago](https://wordpress.org/support/topic/javascript-error-with-wp-version-41/#post-5603554)
 * I’m getting the same issue. Disable yoast, it works; re-enable it, it breaks 
   with the same JS errors others have mentioned.
 * I upgraded to Yoast 2.0.1 too but it made no difference.
 * At the moment my workaround is, turn yoast off, make the changes, turn it back
   on again. Far from ideal.
 * Quite surprised this hasn’t been fixed yet…
 *  [Joey George](https://wordpress.org/support/users/csine/)
 * (@csine)
 * [11 years ago](https://wordpress.org/support/topic/javascript-error-with-wp-version-41/#post-5603555)
 * Actually, its fixed for me with latest wp, latest vc, latest yoast seo, and latest
   theme versions.
 *  [kakalos12](https://wordpress.org/support/users/kakalos12/)
 * (@kakalos12)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/javascript-error-with-wp-version-41/#post-5603563)
 * It didn’t get fixed yet.
 *  [esucces](https://wordpress.org/support/users/esucces/)
 * (@esucces)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/javascript-error-with-wp-version-41/#post-5603564)
 * I also have this problem, and the fix from you Nigel Fish did not work for me.
 *  [John](https://wordpress.org/support/users/jhob/)
 * (@jhob)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/javascript-error-with-wp-version-41/#post-5603565)
 * It turned out that my issue was to do with a different plugin that was doing 
   some very bad practice jQuery things – loading own jQuery library and code outside
   of a document.ready.
 * Once I’d fixed those it all worked again.
 * So in my experience the problem is likely to lay in a plugin/theme with jQuery
   issues.

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

The topic ‘Javascript error with WP-Version 4.1’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

## Tags

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

 * 12 replies
 * 10 participants
 * Last reply from: [John](https://wordpress.org/support/users/jhob/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/javascript-error-with-wp-version-41/#post-5603565)
 * Status: not resolved