Yoast / wordpress-seo

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

Javascript errors from Yoast plugin! #12562

Closed holypoly4 closed 5 years ago

holypoly4 commented 5 years ago

Please give us a description of what happened.

After an update to Wordpress 5.1.1 and update on the theme there was no way to insert an image to the post. Neither the standard Featured Image way nor the Insert image way in the post. If using the Gutenberg editor I will get a WSOD in the edit post section.

Please describe what you expected to happen and why.

I expect the plugin to work as designed and not to break standard Wordpress "New post" or "Post" page on the site.

How can we reproduce this behavior?

  1. Have wordpress 5.1.1 installed
  2. Install Classic editor plugin
  3. Install Yoast plugin version 10.1 installed
  4. install SPORTY-WP theme

Technical info

Used versions

Djennez commented 5 years ago

Hi @holypoly4 and thank you for your report.

I am unable to reproduce this issue on Yoast 10.1.1, WP 5.1.1 and the default twentynineteen theme. Since the SPORTY-WP theme seems to be a paid Themeforest theme I am unable to test with that theme.

Could you verify that the issue does not persist when you switch themes? If so, you can contact your theme author to look into this issue. If the issue does persist, please check your server error logs and your browser javascript errors and provide those in a reply.

holypoly4 commented 5 years ago

Hi @Djennez the thing is that the issue goes away if I disable the Yoast plugin and reappears when I enable it. I have updated the plugin from 10.1 to 10.1.1 and switched the theme and still no luck. The JS errors that I am getting are here below:

Uncaught TypeError: Object(...) is not a function
    at Module.326 (keycodes.min.js?ver=2.0.6:1)
    at r (keycodes.min.js?ver=2.0.6:1)
    at wp.keycodes.1 (keycodes.min.js?ver=2.0.6:1)
    at keycodes.min.js?ver=2.0.6:1
data.min.js?ver=4.2.1:1 Uncaught TypeError: Object(...) is not a function
    at Module.309 (data.min.js?ver=4.2.1:1)
    at r (data.min.js?ver=4.2.1:1)
    at wp.data.0 (data.min.js?ver=4.2.1:1)
    at data.min.js?ver=4.2.1:1
post-new.php:224 Uncaught TypeError: Cannot read property 'use' of undefined
    at post-new.php:224
    at post-new.php:226
rich-text.min.js?ver=3.0.7:1 Uncaught TypeError: Cannot read property 'combineReducers' of undefined
    at Module.307 (rich-text.min.js?ver=3.0.7:1)
    at r (rich-text.min.js?ver=3.0.7:1)
    at wp.richText.0 (rich-text.min.js?ver=3.0.7:1)
    at rich-text.min.js?ver=3.0.7:1
compose.min.js?ver=3.0.1:1 Uncaught TypeError: Object(...) is not a function
    at compose.min.js?ver=3.0.1:1
    at Module.<anonymous> (components.min.js?ver=7.0.8:19)
    at n (components.min.js?ver=7.0.8:1)
    at components.min.js?ver=7.0.8:1
    at components.min.js?ver=7.0.8:1
load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,jquery-ui-resizable,jquery-ui-button,jquery-ui-position,jquery-ui-dialog,heartbeat,autosave,suggest&load[]=,wp-ajax-response,jquery-color,wp-lists,postbox,jquery-ui-menu,jquery-ui-autocomplete,tags-suggest,tags-box,word-count,post,edit&load[]=or-expand,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,svg-painter,wp-auth-check,wp-api,wp-annotations&ver=5.1.1:85 Uncaught TypeError: Cannot read property 'extend' of undefined
    at new wp.media.collection (load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,jquery-ui-resizable,jquery-ui-button,jquery-ui-position,jquery-ui-dialog,heartbeat,autosave,suggest&load[]=,wp-ajax-response,jquery-color,wp-lists,postbox,jquery-ui-menu,jquery-ui-autocomplete,tags-suggest,tags-box,word-count,post,edit&load[]=or-expand,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,svg-painter,wp-auth-check,wp-api,wp-annotations&ver=5.1.1:85)
    at load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,jquery-ui-resizable,jquery-ui-button,jquery-ui-position,jquery-ui-dialog,heartbeat,autosave,suggest&load[]=,wp-ajax-response,jquery-color,wp-lists,postbox,jquery-ui-menu,jquery-ui-autocomplete,tags-suggest,tags-box,word-count,post,edit&load[]=or-expand,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,svg-painter,wp-auth-check,wp-api,wp-annotations&ver=5.1.1:85
    at load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,jquery-ui-resizable,jquery-ui-button,jquery-ui-position,jquery-ui-dialog,heartbeat,autosave,suggest&load[]=,wp-ajax-response,jquery-color,wp-lists,postbox,jquery-ui-menu,jquery-ui-autocomplete,tags-suggest,tags-box,word-count,post,edit&load[]=or-expand,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,svg-painter,wp-auth-check,wp-api,wp-annotations&ver=5.1.1:85
wp-seo-post-scraper-1011.min.js?ver=10.1.1:5 Uncaught TypeError: Cannot read property 'withSelect' of undefined
    at Object.<anonymous> (wp-seo-post-scraper-1011.min.js?ver=10.1.1:5)
    at f (commons-1011.min.js?ver=10.1.1:1)
    at Object.<anonymous> (wp-seo-post-scraper-1011.min.js?ver=10.1.1:5)
    at f (commons-1011.min.js?ver=10.1.1:1)
    at Object.<anonymous> (wp-seo-post-scraper-1011.min.js?ver=10.1.1:5)
    at f (commons-1011.min.js?ver=10.1.1:1)
    at Object.<anonymous> (wp-seo-post-scraper-1011.min.js?ver=10.1.1:5)
    at f (commons-1011.min.js?ver=10.1.1:1)
    at Object.<anonymous> (wp-seo-post-scraper-1011.min.js?ver=10.1.1:5)
    at f (commons-1011.min.js?ver=10.1.1:1)
admin-bar-v2.js?ver=7.1.1-201914:2 Uncaught TypeError: Cannot read property 'extend' of undefined
    at admin-bar-v2.js?ver=7.1.1-201914:2
load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,jquery-ui-resizable,jquery-ui-button,jquery-ui-position,jquery-ui-dialog,heartbeat,autosave,suggest&load[]=,wp-ajax-response,jquery-color,wp-lists,postbox,jquery-ui-menu,jquery-ui-autocomplete,tags-suggest,tags-box,word-count,post,edit&load[]=or-expand,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,svg-painter,wp-auth-check,wp-api,wp-annotations&ver=5.1.1:83 Uncaught TypeError: Cannot read property 'debounce' of undefined
    at HTMLDocument.<anonymous> (load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,jquery-ui-resizable,jquery-ui-button,jquery-ui-position,jquery-ui-dialog,heartbeat,autosave,suggest&load[]=,wp-ajax-response,jquery-color,wp-lists,postbox,jquery-ui-menu,jquery-ui-autocomplete,tags-suggest,tags-box,word-count,post,edit&load[]=or-expand,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,svg-painter,wp-auth-check,wp-api,wp-annotations&ver=5.1.1:83)
    at i (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable&ver=5.1.1:2)
    at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable&ver=5.1.1:2)
    at Function.ready (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable&ver=5.1.1:2)
    at HTMLDocument.K (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable&ver=5.1.1:2)
detector.js:324 [Deprecation] chrome.loadTimes() is deprecated, instead use standardized API: nextHopProtocol in Navigation Timing 2. https://www.chromestatus.com/features/5637885046816768.
SPDY @ detector.js:324
detector.js:442 Uncaught DOMException: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules
    at chrome-extension://fbnlibmhkkkpncdgfolnijebgnmbdbhi/detector.js:442:59
    at chrome-extension://fbnlibmhkkkpncdgfolnijebgnmbdbhi/detector.js:477:3
load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,jquery-ui-resizable,jquery-ui-button,jquery-ui-position,jquery-ui-dialog,heartbeat,autosave,suggest&load[]=,wp-ajax-response,jquery-color,wp-lists,postbox,jquery-ui-menu,jquery-ui-autocomplete,tags-suggest,tags-box,word-count,post,edit&load[]=or-expand,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,svg-painter,wp-auth-check,wp-api,wp-annotations&ver=5.1.1:83 Uncaught TypeError: Cannot read property 'debounce' of undefined
    at HTMLDocument.<anonymous> (load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,jquery-ui-resizable,jquery-ui-button,jquery-ui-position,jquery-ui-dialog,heartbeat,autosave,suggest&load[]=,wp-ajax-response,jquery-color,wp-lists,postbox,jquery-ui-menu,jquery-ui-autocomplete,tags-suggest,tags-box,word-count,post,edit&load[]=or-expand,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,svg-painter,wp-auth-check,wp-api,wp-annotations&ver=5.1.1:83)
    at HTMLDocument.dispatch (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable&ver=5.1.1:3)
    at HTMLDocument.r.handle (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable&ver=5.1.1:3)
    at Object.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable&ver=5.1.1:3)
    at Object.a.event.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable&ver=5.1.1:8)
    at a.fn.init.triggerHandler (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable&ver=5.1.1:3)
    at Aw.<anonymous> (plugin.min.js?wp-mce-4920-20181217:1)
    at kg.c.fire (tinymce.min.js?ver=4920-20181217:2)
    at Aw.fire (tinymce.min.js?ver=4920-20181217:2)
    at $x (tinymce.min.js?ver=4920-20181217:2)
Djennez commented 5 years ago

Could you also try to reproduce this error with all other plugins disabled? If so, enable other plugins one by one and check when the issue returns. You can also follow this guide for these steps.

silva96 commented 5 years ago

Same happens to me, disabled every plugin but Yoast. Yoast Version 10.1.2 WP Version 5.1.1

here is the error

image

react-dom.min.js?ver=16.6.3:104 TypeError: Object(...) is not a function
    at nt (blocks.min.js?ver=6.0.6:2)
    at editor.min.js?ver=9.0.11:55
    at t.value (editor.min.js?ver=9.0.11:55)
    at Fd (react-dom.min.js?ver=16.6.3:92)
    at Mf (react-dom.min.js?ver=16.6.3:92)
    at ph (react-dom.min.js?ver=16.6.3:98)
    at eg (react-dom.min.js?ver=16.6.3:125)
    at fg (react-dom.min.js?ver=16.6.3:126)
    at wc (react-dom.min.js?ver=16.6.3:138)
    at fa (react-dom.min.js?ver=16.6.3:137)
Pf @ react-dom.min.js?ver=16.6.3:104
Xf.f.function.f.componentDidCatch.c.callback @ react-dom.min.js?ver=16.6.3:113
uf @ react-dom.min.js?ver=16.6.3:65
tf @ react-dom.min.js?ver=16.6.3:65
zc @ react-dom.min.js?ver=16.6.3:146
wc @ react-dom.min.js?ver=16.6.3:138
fa @ react-dom.min.js?ver=16.6.3:137
gg @ react-dom.min.js?ver=16.6.3:135
Ca @ react-dom.min.js?ver=16.6.3:133
enqueueSetState @ react-dom.min.js?ver=16.6.3:191
q.setState @ react.min.js?ver=16.6.3:20
value @ data.min.js?ver=4.2.1:1
(anonymous) @ data.min.js?ver=4.2.1:1
n @ data.min.js?ver=4.2.1:1
(anonymous) @ data.min.js?ver=4.2.1:1
b @ data.min.js?ver=4.2.1:1
(anonymous) @ data.min.js?ver=4.2.1:1
(anonymous) @ data.min.js?ver=4.2.1:1
(anonymous) @ redux-routine.min.js?ver=3.0.4:1
dispatch @ data.min.js?ver=4.2.1:1
(anonymous) @ redux-routine.min.js?ver=3.0.4:1
(anonymous) @ redux-routine.min.js?ver=3.0.4:1
n @ redux-routine.min.js?ver=3.0.4:1
(anonymous) @ redux-routine.min.js?ver=3.0.4:1
Promise.then (async)
(anonymous) @ redux-routine.min.js?ver=3.0.4:1
(anonymous) @ redux-routine.min.js?ver=3.0.4:1
n @ redux-routine.min.js?ver=3.0.4:1
(anonymous) @ redux-routine.min.js?ver=3.0.4:1
r.any @ redux-routine.min.js?ver=3.0.4:1
(anonymous) @ redux-routine.min.js?ver=3.0.4:1
n @ redux-routine.min.js?ver=3.0.4:1
(anonymous) @ redux-routine.min.js?ver=3.0.4:1
r.any @ redux-routine.min.js?ver=3.0.4:1
(anonymous) @ redux-routine.min.js?ver=3.0.4:1
n @ redux-routine.min.js?ver=3.0.4:1
(anonymous) @ redux-routine.min.js?ver=3.0.4:1
(anonymous) @ redux-routine.min.js?ver=3.0.4:1
n @ redux-routine.min.js?ver=3.0.4:1
(anonymous) @ redux-routine.min.js?ver=3.0.4:1
r.any @ redux-routine.min.js?ver=3.0.4:1
(anonymous) @ redux-routine.min.js?ver=3.0.4:1
n @ redux-routine.min.js?ver=3.0.4:1
(anonymous) @ redux-routine.min.js?ver=3.0.4:1
Promise.then (async)
(anonymous) @ redux-routine.min.js?ver=3.0.4:1
(anonymous) @ redux-routine.min.js?ver=3.0.4:1
n @ redux-routine.min.js?ver=3.0.4:1
(anonymous) @ redux-routine.min.js?ver=3.0.4:1
t @ redux-routine.min.js?ver=3.0.4:1
r.iterator @ redux-routine.min.js?ver=3.0.4:1
(anonymous) @ redux-routine.min.js?ver=3.0.4:1
n @ redux-routine.min.js?ver=3.0.4:1
(anonymous) @ redux-routine.min.js?ver=3.0.4:1
r.any @ redux-routine.min.js?ver=3.0.4:1
(anonymous) @ redux-routine.min.js?ver=3.0.4:1
n @ redux-routine.min.js?ver=3.0.4:1
(anonymous) @ redux-routine.min.js?ver=3.0.4:1
(anonymous) @ redux-routine.min.js?ver=3.0.4:1
n @ redux-routine.min.js?ver=3.0.4:1
(anonymous) @ redux-routine.min.js?ver=3.0.4:1
t @ redux-routine.min.js?ver=3.0.4:1
r.iterator @ redux-routine.min.js?ver=3.0.4:1
(anonymous) @ redux-routine.min.js?ver=3.0.4:1
n @ redux-routine.min.js?ver=3.0.4:1
(anonymous) @ redux-routine.min.js?ver=3.0.4:1
t @ redux-routine.min.js?ver=3.0.4:1
(anonymous) @ redux-routine.min.js?ver=3.0.4:1
(anonymous) @ redux-routine.min.js?ver=3.0.4:1
(anonymous) @ redux-routine.min.js?ver=3.0.4:1
(anonymous) @ data.min.js?ver=4.2.1:1
tryCatch @ wp-polyfill.min.js?ver=7.0.0:3
invoke @ wp-polyfill.min.js?ver=7.0.0:3
t.(anonymous function) @ wp-polyfill.min.js?ver=7.0.0:3
n @ data.min.js?ver=4.2.1:1
c @ data.min.js?ver=4.2.1:1
(anonymous) @ data.min.js?ver=4.2.1:1
(anonymous) @ data.min.js?ver=4.2.1:1
w @ data.min.js?ver=4.2.1:1
(anonymous) @ data.min.js?ver=4.2.1:1
fulfill @ data.min.js?ver=4.2.1:1
(anonymous) @ data.min.js?ver=4.2.1:1
tryCatch @ wp-polyfill.min.js?ver=7.0.0:3
invoke @ wp-polyfill.min.js?ver=7.0.0:3
t.(anonymous function) @ wp-polyfill.min.js?ver=7.0.0:3
n @ data.min.js?ver=4.2.1:1
c @ data.min.js?ver=4.2.1:1
(anonymous) @ data.min.js?ver=4.2.1:1
(anonymous) @ data.min.js?ver=4.2.1:1
a @ data.min.js?ver=4.2.1:1
(anonymous) @ data.min.js?ver=4.2.1:1
(anonymous) @ data.min.js?ver=4.2.1:1
(anonymous) @ edit-post.min.js?ver=3.1.11:12
n @ data.min.js?ver=4.2.1:1
r @ data.min.js?ver=4.2.1:1
zf @ react-dom.min.js?ver=16.6.3:69
Mf @ react-dom.min.js?ver=16.6.3:87
ph @ react-dom.min.js?ver=16.6.3:98
eg @ react-dom.min.js?ver=16.6.3:125
fg @ react-dom.min.js?ver=16.6.3:126
wc @ react-dom.min.js?ver=16.6.3:138
fa @ react-dom.min.js?ver=16.6.3:137
gg @ react-dom.min.js?ver=16.6.3:135
Ca @ react-dom.min.js?ver=16.6.3:133
og @ react-dom.min.js?ver=16.6.3:150
Rd @ react-dom.min.js?ver=16.6.3:150
bb.render @ react-dom.min.js?ver=16.6.3:200
(anonymous) @ react-dom.min.js?ver=16.6.3:153
mg @ react-dom.min.js?ver=16.6.3:148
Bc @ react-dom.min.js?ver=16.6.3:153
render @ react-dom.min.js?ver=16.6.3:202
$n @ edit-post.min.js?ver=3.1.11:12
(anonymous) @ post.php?post=91&action=edit:2104
silva96 commented 5 years ago

I changed to twenty nineteen theme and it works. My theme was doing some sort of clash with the Yoast plugin. Either disabling my theme or the Yoast plugin made the gutenberg editor work.

Djennez commented 5 years ago

@holypoly4 were you able to check for any plugin conflicts?

Djennez commented 5 years ago

This thread will be closed due to inactivity.

If information was requested from the creator of this issue, please add that to this thread and we will look into reopening this.

If you have a similar issue, follow this link to open a new bug report.