Yoast / wordpress-seo

Yoast SEO for WordPress
https://yoast.com/wordpress/plugins/seo/
Other
1.78k stars 894 forks source link

Latest upgrade breaks Text Editor (Visual works) #2809

Closed jenseo closed 9 years ago

jenseo commented 9 years ago

Hi! I just upgraded to the latest version, but unfortunately it breaks the WordPress Text Editor when writing a post. The bar for styling the post (Bold, Italic, Hyperlink etc) are gone. It's not gone when switching to Visual Editor, but to be honest, I hate that one.

I have tried deactivating WordPress SEO, and this solves the issue, so I think it's safe to say that it's this plugin having an issue.

Any ideas what might be happening?

// Jens.

Rarst commented 9 years ago

Cannot reproduce.

Are there any JS errors in browser console?

Do you still experience it if you disable other plugins / switch to core theme?

jenseo commented 9 years ago

Found this in error console (using Chrome):

wp-seo-metabox.min.js:1 Uncaught TypeError: jQuery(...).autocomplete is not a function

Rarst commented 9 years ago

What about disabling other things?

jenseo commented 9 years ago

No change with all plugins disabled. The site has up to a 1000 visitors at the same time, so I can't change themes.

Rarst commented 9 years ago

Could you give me a link to live script so I compare to source?

jenseo commented 9 years ago

https://delbart.se/wp-content/plugins/wordpress-seo/js/wp-seo-metabox.min.js

Rarst commented 9 years ago

Looks good.

Do you modify version of jQuery in site in any way? Which version/URL do you see loading?

jenseo commented 9 years ago

Not modifying jQuery, using the bundled version. This is what it says in source code:

<script type='text/javascript' src='//delbart.se/wp-admin/load-scripts.php?c=0&amp;load%5B%5D=jquery-core,jquery-migrate,utils,plupload&amp;ver=4.2.4'></script>
Rarst commented 9 years ago

Do you see any other copies of jQuery loading?

jenseo commented 9 years ago

Hmm, this seems to load at the end of the source code for some reason:

<script type='text/javascript' src='//delbart.se/wp-admin/load-scripts.php?c=0&amp;load%5B%5D=hoverIntent,common,admin-bar,heartbeat,autosave,suggest,wp-ajax-response,jquery-color,wp-lists,jquery-ui-core,jquery-ui-widget,j&amp;load%5B%5D=query-ui-mouse,jquery-ui-sortable,postbox,tags-box,post,editor-expand,thickbox,underscore,shortcode,backbone,wp-util,wp-backbone&amp;load%5B%5D=,media-models,wp-plupload,mediaelement,wp-mediaelement,media-views,media-editor,media-audiovideo,wp-playlist,mce-view,imgareasel&amp;load%5B%5D=ect,image-edit,svg-painter,wp-auth-check,jquery-ui-draggable,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,jquery-ui-&amp;load%5B%5D=accordion,jquery-ui-tabs,word-count,editor,quicktags,wplink,media-upload&amp;ver=4.2.4'></script>
Rarst commented 9 years ago

That is still WP, I would look for something else queueing its own or CDN copy... No other ideas about the error so far.

jenseo commented 9 years ago

Unfortunately no other jQuery-inclusions.

Problem is that it didn't work with all plugins except WP SEO deactivated, so it's probably not a conflict. Can't see that it could be a problem with my theme either.

Rarst commented 9 years ago

Do you have staging/testing site to try reproduce at?

jenseo commented 9 years ago

Tried it locally, and oddly enough, there it worked. No idea why it's not working online though.

The div that should contain the editor buttons is empty for some reason.

Rarst commented 9 years ago

Looking at your front end there is an extra copy of jQuery from Google CDN, loaded by something OptinMonsterApp. Can't say for sure if it's the cause of the issue though.

jenseo commented 9 years ago

That's weird, that isn't anything that I'm seeing. The issue was still there though, when the Optinmonster plugin was deactivated.

Rarst commented 9 years ago

Do you still experience the issue? Unfortunately no new information to reproduce or more reports since (which typically means it's a rare case).

stormcunningham commented 8 years ago

I just experienced exactly the same thing with the latest version of the Yoast SEO plugin: it makes the rich text editing menu disappear from the Text editing view in Wordpress. It's there in the Visual view, but like Jenseo indicates, the Visual view is buggy garbage.

NotARobit commented 8 years ago

Anyone running into this issue, be sure to test with the default theme as well as disabling other plugins. In my instance, it was a conflict with my theme.