Yoast / wordpress-seo

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

after updating to wordpress 4.7, Snippet preview option is not showing #6226

Closed caspianlancer closed 7 years ago

caspianlancer commented 7 years ago

i have latest Yoast SEO Plugin installed: Today i updated to wordpress 4.7 and snippet preview is not working. I tried changing the PHP version and clearing all WordPress cache but to no avail.

You can see below the errors I have found in my browser built-in console:

`load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-form,jquery-ui-widget,jquery-ui…:2 Uncaught Error: no such method 'instance' for autocomplete widget instance

load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,wp-pointer,heartbeat,autosave,wp-ajax-resp…:687 Uncaught TypeError: Cannot read property 'hasClass' of undefined`

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

Technical info

caspianlancer commented 7 years ago

its not working to any page.

stodorovic commented 7 years ago

It seems as some conflicts between plugins. I'm not sure that's related to Yoast SEO. Please check plugin conflicts. Yesterday, I tested other issues on clean installation (only Yoast 3.9 + WP 4.7 + Twenty Sixteen 1.3) and I didn't notice anything similar. I can't reproduce your issue.

Sometimes strange behavior may be caused by a plugin or theme conflict. The fastest way to rule out conflicts is to deactivate all non-Yoast plugins and switch to a standard theme like Twenty Sixteen. If this resolves the issue, you have a conflict and should activate one plugin at a time until you locate the conflict. Finally, after all plugins are active, switch to your theme. This will narrow down the conflict to a specific plugin or theme.

If you are unfamiliar with checking for conflicts, we wrote a small guide that will walk you through the steps. You can find it here: How To Check For Plugin Conflicts

Rarst commented 7 years ago

Cannot reproduce in my dev install, works fine for me on WP 4.7

I second the recommendations to check for conflicts.

pankaj-app commented 7 years ago

i am still having this issue not solved

stodorovic commented 7 years ago

@caspianlancer @trickflu Please check plugin conflicts. We can't help without more details. Please provide list of plugins. Which is theme? We need to install all plugins (from your list) and then try to reproduce issue on similar installation. So, it isn't so simple. @trickflu Please check javascript errors.

caspianlancer commented 7 years ago

i deactivated my all plugins and still problem remain the same. i only has two plugins.i am using theme from sitemile.

stodorovic commented 7 years ago

@caspianlancer I want to reproduce your issue. I can install WP 4.7, same theme (if it's possible) and those plugins. If you send me list: theme name/version x, plugin name/version y, plugin name/version z, then I can try to install same/similar WP.

I'm maintaining a large numbers of websites, I didn't notice similar behaviour. Please switch theme (at a moment) to WP Twenty Sixteen or Twenty Seventeen, to we know that isn't related to the theme.

Also, please try different browsers, purge all caches in the browser. Try private mode in browser ( http://www.howtogeek.com/269265/how-to-enable-private-browsing-on-any-web-browser/ )

caspianlancer commented 7 years ago

yes. you were right. problem was with the theme. But my theme is customized alot. developer is not helping in this matter. what should i do? i bought this theme with sitemile.com before 3 years

stodorovic commented 7 years ago

I want to help you but I need to install your theme on my test server. If you have customizations, you can't update your theme. Do you have child theme?

It's possible that theme uses outdated javascripts (jquery, custom scripts related to tinyMCE,...). I can't say anything more. If you send more info related to the theme, maybe I have installed similar theme. (I'm doing maintaining lot of websites and I can ask my colleagues).

CarolineGeven commented 7 years ago

Closing this as this is a theme conflict.

Pcosta88 commented 7 years ago

related: https://github.com/Yoast/wordpress-seo/issues/7115 from Pricerr Theme

JS Error

Error: no such method 'instance' for autocomplete widget instance
 /wp-admin/load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-position,jquery-ui-menu,wp-a11y,jquery-ui-autocomplet&load%5B%5D=e,plupload&ver=4.7.4:2
advantipro-gmbh commented 7 years ago

Seems to be back with WP 4.8.1 and Yoast 5.1...

Same error messages as above.

Atg

stodorovic commented 7 years ago

It's theme issue and it can't be fixed by Yoast or WP core. I just saw code in one of similar themes. Scripts are hard coded in functions.php:

<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>

More info: https://stackoverflow.com/questions/17520344/jquery-conflict-how-to-handle-the-situation https://wordpress.org/support/topic/yoast-doesnt-work-anymore/

It isn't by WP codex, developers should use wp_enqueue_script,wp_enqueue_style and admin_enqueue_scripts

Please report these issues to theme developer.