Yoast / wordpress-seo

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

A variable is mismatch #12019

Closed godinho29 closed 5 years ago

godinho29 commented 5 years ago

Please give us a description of what happened.

If Yoast SEO and Grand Tour Custom Post Plugin are both active, when I update a post or do some action that use post.php I receive the error: "A variable mismatch has been detected." If I deactivate one of these, the problem disappears and it's ok.

Please describe what you expected to happen and why.

What I expect is that the pages redirects back to page editor with the alert that page was updated. I think that the modifications are applied but sometimes actions are not done, like when I click on "resend order notification" in order page.

How can we reproduce this behavior?

  1. Update pages
  2. In a woocommerce order, click to resend order notification.

Technical info

Djennez commented 5 years ago

Hi, thank you for your submission. Could you check your browser console log for errors and paste those in your reply? This might give us more insight in what's going on.

godinho29 commented 5 years ago

Hi, When I click the update button and submit the changes, nothing appears in console. But when I enter to edit the page, there are some things: Active resource loading counts reached a per-frame limit while the tab was in background. Network requests will be delayed until a previous loading finishes, or the tab is brought to the foreground. See https://www.chromestatus.com/feature/5527160148197376 for more details post.php?post=5&action=edit&lang=pt-pt:47 Resource interpreted as Stylesheet but transferred with MIME type text/html: ".../wp-admin/post.php?post=5&action=edit&lang=pt-pt". load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-widget,jquery-ui-position,wp-pointer,utils,underscore&ver=5.0.3:9 JQMIGRATE: Migrate is installed, version 1.4.1 load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-widget,jquery-ui-position,wp-pointer,utils,underscore&ver=5.0.3:4 GET .../wp-json/wp/v2/ 404 (Not Found) send @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-widget,jquery-ui-position,wp-pointer,utils,underscore&ver=5.0.3:4 ajax @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-widget,jquery-ui-position,wp-pointer,utils,underscore&ver=5.0.3:4 e.ajax @ backbone.min.js:1 e.sync @ backbone.min.js:1 sync @ load-scripts.php?c=0&load[]=thickbox,hoverIntent,common,admin-bar,quicktags,shortcode,media-upload,heartbeat,autosave,wp-ajax-response,jquery-color,wp-lists&load[]=,jquery-query,admin-comments,suggest,postbox,tags-suggest,tags-box,word-count,post,editor-expand,media-editor,media-audiovideo,m&load[]=ce-view,imgareaselect,image-edit,svg-painter,wp-auth-check,wpdialogs,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,wp&load[]=-api,wp-annotations,jquery-ui-tabs&ver=5.0.3:649 fetch @ backbone.min.js:1 initialize @ load-scripts.php?c=0&load[]=thickbox,hoverIntent,common,admin-bar,quicktags,shortcode,media-upload,heartbeat,autosave,wp-ajax-response,jquery-color,wp-lists&load[]=,jquery-query,admin-comments,suggest,postbox,tags-suggest,tags-box,word-count,post,editor-expand,media-editor,media-audiovideo,m&load[]=ce-view,imgareaselect,image-edit,svg-painter,wp-auth-check,wpdialogs,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,wp&load[]=-api,wp-annotations,jquery-ui-tabs&ver=5.0.3:649 e.Model @ backbone.min.js:1 n @ backbone.min.js:1 wp.api.init @ load-scripts.php?c=0&load[]=thickbox,hoverIntent,common,admin-bar,quicktags,shortcode,media-upload,heartbeat,autosave,wp-ajax-response,jquery-color,wp-lists&load[]=,jquery-query,admin-comments,suggest,postbox,tags-suggest,tags-box,word-count,post,editor-expand,media-editor,media-audiovideo,m&load[]=ce-view,imgareaselect,image-edit,svg-painter,wp-auth-check,wpdialogs,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,wp&load[]=-api,wp-annotations,jquery-ui-tabs&ver=5.0.3:649 (anonymous) @ load-scripts.php?c=0&load[]=thickbox,hoverIntent,common,admin-bar,quicktags,shortcode,media-upload,heartbeat,autosave,wp-ajax-response,jquery-color,wp-lists&load[]=,jquery-query,admin-comments,suggest,postbox,tags-suggest,tags-box,word-count,post,editor-expand,media-editor,media-audiovideo,m&load[]=ce-view,imgareaselect,image-edit,svg-painter,wp-auth-check,wpdialogs,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,wp&load[]=-api,wp-annotations,jquery-ui-tabs&ver=5.0.3:649 (anonymous) @ load-scripts.php?c=0&load[]=thickbox,hoverIntent,common,admin-bar,quicktags,shortcode,media-upload,heartbeat,autosave,wp-ajax-response,jquery-color,wp-lists&load[]=,jquery-query,admin-comments,suggest,postbox,tags-suggest,tags-box,word-count,post,editor-expand,media-editor,media-audiovideo,m&load[]=ce-view,imgareaselect,image-edit,svg-painter,wp-auth-check,wpdialogs,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,wp&load[]=-api,wp-annotations,jquery-ui-tabs&ver=5.0.3:649 load-scripts.php?c=0&load[]=thickbox,hoverIntent,common,admin-bar,quicktags,shortcode,media-upload,heartbeat,autosave,wp-ajax-response,jquery-color,wp-lists&load[]=,jquery-query,admin-comments,suggest,postbox,tags-suggest,tags-box,word-count,post,editor-expand,media-editor,media-audiovideo,m&load[]=ce-view,imgareaselect,image-edit,svg-painter,wp-auth-check,wpdialogs,jquery-ui-slider,jquery-touch-punch,iris,wp-color-picker,wp&load[]=-api,wp-annotations,jquery-ui-tabs&ver=5.0.3:649 n {cid: "c4", attributes: {…}, _changing: false, _previousAttributes: {…}, changed: {…}, …}apiRoot: ".../wp-json/"attributes: {_links: {…}, namespace: null, routes: {…}}changed: {}cid: "c4"requireForceForDelete: trueversionString: "wp/v2/"_changing: false_events: {change: Array(1)}_pending: false_previousAttributes: {links: {…}, namespace: null, routes: {…}}proto: n widgets.wp.com/notifications/?jetpack=true&v=desktop/2.4.0-13279-g67a63e0&locale=pt#.../wp-admin/post.php?post=5&action=edit&lang=pt-pt&lang=pt:2 Active resource loading counts reached a per-frame limit while the tab was in background. Network requests will be delayed until a previous loading finishes, or the tab is brought to the foreground. See https://www.chromestatus.com/feature/5527160148197376 for more details ?v=2.0:6 WebSocket connection to 'wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data' failed: Error during WebSocket handshake: Unexpected response code: 403 v @ ?v=2.0:6 @ ?v=2.0:6 o @ ?v=2.0:6 admin.php?page=aam&aamframe=post&oid=5&otype=post:2 Active resource loading counts reached a per-frame limit while the tab was in background. Network requests will be delayed until a previous loading finishes, or the tab is brought to the foreground. See https://www.chromestatus.com/feature/5527160148197376 for more details load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=5.0.3:9 JQMIGRATE: Migrate is installed, version 1.4.1 ?v=2.0:6 WebSocket connection to 'wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data' failed: Error during WebSocket handshake: Unexpected response code: 403 v @ ?v=2.0:6 _ @ ?v=2.0:6 o @ ?v=2.0:6

I have replaced website adress with ... Thank you!

Djennez commented 5 years ago

After some further investigation it seems that the plugin Grand Tour Custom Post has some compatibility issues with other plugins like WPML as well. Could you please check if the solution as provided in https://wpml.org/forums/topic/variable-mismatch/#post-3051419 (second to last post) solves your issues?

godinho29 commented 5 years ago

After some further investigation it seems that the plugin Grand Tour Custom Post has some compatibility issues with other plugins like WPML as well. Could you please check if the solution as provided in https://wpml.org/forums/topic/variable-mismatch/#post-3051419 (second to last post) solves your issues?

Yes, I tried it but this didn't work for me. I got in touch with them first because I have searched for the problem and I though that it was a problem with WPML but their support helped me founding that it is a direct conflict between Grand Tour Custom Post and Yoast SEO. My topic is https://wpml.org/forums/topic/a-variable-mismatch-has-been-detected-5/

Thank you!

Djennez commented 5 years ago

@godinho29 if you have bought the Grand Tour theme and the conflict is with their plugin, I would suggest you contacting their support to find out exactly where this conflict is situated. As we don't have access to this theme and their resources, and the impact is too low, I'm afraid we won't be able to actively investigate any compatibility issues. However, if you're able to contact the developers of the Grand Tour theme, they might be able to figure out where the conflict lies and possibly fix it.