Yoast / wordpress-seo

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

Wordpress editor does not switch to text and Visual composer is not loaded #5534

Closed igornes closed 8 years ago

igornes commented 8 years ago

What did you expect to happen?

It worked fine until the latest upgrade of Wordpress to 4.6.1 and Yoast version: 3.5

What happened instead?

When I open any page or post the default WordPress editor does not switch to the Text mode from the Visual mode tab. The visual composer v. 4.12 is not loaded.

everything works fine when I disabled the Yoast SEO plugin

How can we reproduce this behavior?

Upgrade to Wordpress to 4.6.1 and Yoast version: 3.5
Open any post or page, or add a new post. Click the text tab. It does not switch.

Can you provide a link to a page which shows this issue?

Technical info

terw-dan commented 8 years ago

Can you check the JavaScript console for any errors? Do you experience the same issue without visual composer?

igornes commented 8 years ago

These error I got after activatign back Yoast SEO: Navigated to http://www.eradium.com/wp-admin/post-new.php load-scripts.php?c=0&load[]=utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,wp-a11y,pluplo…:12 Uncaught ReferenceError: jQuery is not defined(anonymous function) @ load-scripts.php?c=0&load[]=utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,wp-a11y,pluplo…:12(anonymous function) @ load-scripts.php?c=0&load[]=utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,wp-a11y,pluplo…:12 load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,wp-pointer,heartbeat,autosave,suggest,wp-a…:4 Uncaught TypeError: a.widget is not a function(anonymous function) @ load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,wp-pointer,heartbeat,autosave,suggest,wp-a…:4(anonymous function) @ load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,wp-pointer,heartbeat,autosave,suggest,wp-a…:4 accordion.min.js,qver=1.11.4.pagespeed.jm.9RRTXQbja7.js:1 Uncaught TypeError: a.widget is not a function(anonymous function) @ accordion.min.js,qver=1.11.4.pagespeed.jm.9RRTXQbja7.js:1(anonymous function) @ accordion.min.js,qver=1.11.4.pagespeed.jm.9RRTXQbja7.js:1(anonymous function) @ accordion.min.js,qver=1.11.4.pagespeed.jm.9RRTXQbja7.js:1 draggable.min.js?ver=1.11.4:1 Uncaught TypeError: Cannot read property 'mouse' of undefined(anonymous function) @ draggable.min.js?ver=1.11.4:1(anonymous function) @ draggable.min.js?ver=1.11.4:1(anonymous function) @ draggable.min.js?ver=1.11.4:1 slider.min.js?ver=1.11.4:1 Uncaught TypeError: Cannot read property 'mouse' of undefined(anonymous function) @ slider.min.js?ver=1.11.4:1(anonymous function) @ slider.min.js?ver=1.11.4:1(anonymous function) @ slider.min.js?ver=1.11.4:1 iris.min.js?ver=1.0.7:1 Uncaught TypeError: a.widget is not a function(anonymous function) @ iris.min.js?ver=1.0.7:1(anonymous function) @ iris.min.js?ver=1.0.7:1 color-picker.min.js?ver=83fac5b…:1 Uncaught TypeError: a.widget is not a function(anonymous function) @ color-picker.min.js?ver=83fac5b…:1(anonymous function) @ color-picker.min.js?ver=83fac5b…:1 droppable.min.js?ver=1.11.4:11 Uncaught TypeError: a.widget is not a function(anonymous function) @ droppable.min.js?ver=1.11.4:11(anonymous function) @ droppable.min.js?ver=1.11.4:11(anonymous function) @ droppable.min.js?ver=1.11.4:11 resizable.min.js?ver=1.11.4:11 Uncaught TypeError: Cannot read property 'mouse' of undefined(anonymous function) @ resizable.min.js?ver=1.11.4:11(anonymous function) @ resizable.min.js?ver=1.11.4:11(anonymous function) @ resizable.min.js?ver=1.11.4:11 tabs.min.js?ver=1.11.4:11 Uncaught TypeError: a.widget is not a function(anonymous function) @ tabs.min.js?ver=1.11.4:11(anonymous function) @ tabs.min.js?ver=1.11.4:11(anonymous function) @ tabs.min.js?ver=1.11.4:11 backend-actions.min.js?ver=4.12:1 Uncaught ReferenceError: is not defined(anonymous function) @ backend-actions.min.js?ver=4.12:1(anonymous function) @ backend-actions.min.js?ver=4.12:1 backend.min.js?ver=4.12:1 Uncaught ReferenceError: is not defined(anonymous function) @ backend.min.js?ver=4.12:1(anonymous function) @ backend.min.js?ver=4.12:1 default.js?ver=1.0.0:1 Uncaught TypeError: Cannot set property 'customlibEditGallery' of undefined

Yes, I have the same problem with Wordpress editor and Yoast SEO if I deactivated the Visual Composer. I also have this problem if I switched to a generic theme like twenty fifteen.

terw-dan commented 8 years ago

And are you running any other plugins? If you experience the same without visual composer I think we can rule out a compatibility with that plugin.

igornes commented 8 years ago

Yes. We have other plugins. We found that the issue is caused by the LayerSlider WPVersion 5.6.10 | By Kreatura Media. The problem started after the latest Wordpress and Yoast upgrades. Both plugins worked together fine before. We are running both plugins already more than 18 months. Looks as now they are out of sync with Jquery libraries.

terw-dan commented 8 years ago

As far as I can see in the errors it seems there are missing some elements for the LayerSlider. customlibEditGallery isn't an element we use. I would suggest updating the LayerSlider plugin if a plugin is available. Or check out their support to see if this is a known issue.

Since LayerSlider is a paid plugin I cannot easily test it, so if you have a login to a test site we could look at that would be of great help.