Yoast / wordpress-seo

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

Gutenberg crashes when editing a site and yoast plugin activated #13937

Closed tomtom-b-90 closed 4 years ago

tomtom-b-90 commented 4 years ago

Please give us a description of what happened.

When click on edit for a site, then for a short moment a error messages comes up, that the editor needs javascript acitivated (it is activated and the updated to the latest version.

After 1-2 seconds the editor loads. When Gutenberg editor is open, then after some seconds it crashes.

This happens only, when yoast plugin is activated. I already reinstalled yoast. If plugin is deactivated there is no Javascript error message and Gutenberg Editor doesn't crash afterwards.

ReferenceError: YoastSEO is not defined at u (https://seite-der-gesundheit.de/wp-content/plugins/wordpress-seo/js/dist/wp-seo-post-scraper-1251.min.js?ver=12.5.1:1:53093) at e.exports (https://seite-der-gesundheit.de/wp-content/plugins/wordpress-seo/js/dist/wp-seo-post-scraper-1251.min.js?ver=12.5.1:1:53485) at t.value (https://seite-der-gesundheit.de/wp-content/plugins/wordpress-seo/js/dist/wp-seo-post-scraper-1251.min.js?ver=12.5.1:5:40032) at re (https://seite-der-gesundheit.de/wp-content/plugins/gutenberg/vendor/react-dom.min.b694e242.js?ver=16.9.0:95:261) at Vg (https://seite-der-gesundheit.de/wp-content/plugins/gutenberg/vendor/react-dom.min.b694e242.js?ver=16.9.0:95:54) at ph (https://seite-der-gesundheit.de/wp-content/plugins/gutenberg/vendor/react-dom.min.b694e242.js?ver=16.9.0:217:70) at lh (https://seite-der-gesundheit.de/wp-content/plugins/gutenberg/vendor/react-dom.min.b694e242.js?ver=16.9.0:126:409) at O (https://seite-der-gesundheit.de/wp-content/plugins/gutenberg/vendor/react-dom.min.b694e242.js?ver=16.9.0:121:71) at ze (https://seite-der-gesundheit.de/wp-content/plugins/gutenberg/vendor/react-dom.min.b694e242.js?ver=16.9.0:118:14) at https://seite-der-gesundheit.de/wp-content/plugins/gutenberg/vendor/react-dom.min.b694e242.js?ver=16.9.0:53:49

How can we reproduce this behavior?

  1. edit a site

Technical info

Used versions

Djennez commented 4 years ago

Hi @tomtom-b-90 , this is not normal behavior of our plugin. Could you please try completely removing the plugin and reinstalling it? If that does not fix the issue, please try to provide as much information as possible, because we will need to be able to reproduce the issue to investigate it.

tomtom-b-90 commented 4 years ago

Hello, thanks for your reply.

I already deinstalled and deleted yoast plugin. Via the Wordpress menu and via FTP. Issue still there.

I also reinstalled Java. Java is activated in Browser.

Crash only happens if Yoast Plugin is activated. Otherwise i can edit posts.

If i change to old editor (not Gutenberg Editor) mode, then the system also works if yoast is enabled.

Please tell me, which information you need.

Error message:

ReferenceError: YoastSEO is not defined at u (https://seite-der-gesundheit.de/wp-content/plugins/wordpress-seo/js/dist/wp-seo-post-scraper-1260.min.js?ver=12.6:1:53090) at e.exports (https://seite-der-gesundheit.de/wp-content/plugins/wordpress-seo/js/dist/wp-seo-post-scraper-1260.min.js?ver=12.6:1:53482) at t.value (https://seite-der-gesundheit.de/wp-content/plugins/wordpress-seo/js/dist/wp-seo-post-scraper-1260.min.js?ver=12.6:5:39994) at re (https://seite-der-gesundheit.de/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:95:261) at Vg (https://seite-der-gesundheit.de/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:95:54) at ph (https://seite-der-gesundheit.de/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:217:70) at lh (https://seite-der-gesundheit.de/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:126:409) at O (https://seite-der-gesundheit.de/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:121:71) at ze (https://seite-der-gesundheit.de/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:118:14) at https://seite-der-gesundheit.de/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:53:49

Thanks for your help.

Djennez commented 4 years ago

Ah, are you perhaps loading the plugin files from another domain? By setting WP_CONTENT_URL to another domain?

tomtom-b-90 commented 4 years ago

Settings in Wordpress:

Settings on Server:

All Plugins of this installation are in the folder /html/wp-sdg/wp-content/plugins/

Djennez commented 4 years ago

Hmmm ok, and what version of the Gutenberg plugin are you running? Does the problem persist if you disable the Gutenberg plugin? Since what version of Yoast are you experiencing this issue and does rolling back solve it? Are there any more errors / warnings in your browsers console?

tomtom-b-90 commented 4 years ago

Hey Djennez,

i just found the reason why this happened. If i disable all addons beside yoast, then it works. When i activate the plugin Cookiebot | GDPR Compliant Cookie Consent and Notice Version 3.3.0, then it crashes. If only The Cookiebot plugin runs, then there is no problem. Only when both are active.

I deactivated the Cookiebot within the wordpress admin area and now everything works fine again.

Thanks for your help.

Djennez commented 4 years ago

Good to hear that you found the solution. Looks like that Cookiebot plugin is crashing more plugins' JS code, according to their support forums. This makes me think this is something on their part that needs to be fixed. I'm going to close this thread because of that.