After update the plugin author widget isn’t rendered
-
At plugin 3.7 version, it’s working fine but if I update to 4.0 or 4.0+ version, the plugin gives me this error:
The “plugin-coauthors-document-setting” plugin has encountered an error and cannot be rendered.-
This topic was modified 4 days, 4 hours ago by
alithewpdev.
-
This topic was modified 4 days, 4 hours ago by
-
The error message “The ‘plugin-coauthors-document-setting’ plugin has encountered an error and cannot be rendered”is Gutenberg’s standard error boundary message when a
registerPluginpanel throws during render. So this is our React component (src/components/co-authors/index.jsx, registered viasrc/index.js) crashing on mount.
@alithewpdev Please can you share your WP version, the full console error with stack trace, the active plugins, and whether your site has a CDN and/or object cache?WP version: 6.9.4
Console error with stack trace
Uncaught TypeError: $co.attr(…).appendTo(…).suggest is not a function
at coauthors_create_autosuggest (co-authors-plus.js:174:5)
at coauthors_initialize (co-authors-plus.js:331:15)
at HTMLDocument. (co-authors-plus.js:399:3)
at e (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9.4:2:27028)
at t (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9.4:2:27330)
coauthors_create_autosuggest @ co-authors-plus.js:174
coauthors_initialize @ co-authors-plus.js:331
(anonymous) @ co-authors-plus.js:399
e @ load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9.4:2
t @ load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9.4:2
setTimeout
(anonymous) @ load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9.4:2
c @ load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9.4:2
fireWith @ load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9.4:2
fire @ load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9.4:2
c @ load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9.4:2
fireWith @ load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9.4:2
ready @ load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9.4:2
P @ load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9.4:2Understand this error
deprecated.min.js:2 'getMedia' is deprecated since version 6.9. Please use the 'postType', 'attachment' entity via the 'getEntityRecord' function instead.
i @ deprecated.min.js:2
a @ core-data.min.js:2
b.reduce.e. @ core-data.min.js:2
r @ data.min.js:2
c @ data.min.js:2
(anonymous) @ post-edit.js:7
(anonymous) @ data.min.js:2
n @ data.min.js:2
emit @ data.min.js:2
s @ data.min.js:2
(anonymous) @ data.min.js:2
(anonymous) @ data.min.js:2
(anonymous) @ data.min.js:2
S @ data.min.js:2
(anonymous) @ data.min.js:2
(anonymous) @ redux-routine.min.js:9
(anonymous) @ data.min.js:2
(anonymous) @ data.min.js:2
(anonymous) @ data.min.js:2
(anonymous) @ editor.min.js:7
(anonymous) @ data.min.js:2
(anonymous) @ redux-routine.min.js:9
(anonymous) @ data.min.js:2
(anonymous) @ data.min.js:2
(anonymous) @ data.min.js:2
(anonymous) @ editor.min.js:14
Ur @ react-dom.min.js:10
Jr @ react-dom.min.js:10
Zr @ react-dom.min.js:10
Gr @ react-dom.min.js:10
(anonymous) @ react-dom.min.js:10
xl @ react-dom.min.js:10
fl @ react-dom.min.js:10
Nn @ react-dom.min.js:10
(anonymous) @ react-dom.min.js:10Understand this warning
deprecated.min.js:2 wp.editPost.PluginBlockSettingsMenuItem is deprecated since version 6.6. Please use wp.editor.PluginBlockSettingsMenuItem instead.
i @ deprecated.min.js:2
zt @ edit-post.min.js:2
Gt @ edit-post.min.js:2
ht @ react-dom.min.js:10
Qs @ react-dom.min.js:10
wl @ react-dom.min.js:10
bl @ react-dom.min.js:10
yl @ react-dom.min.js:10
fl @ react-dom.min.js:10
Nn @ react-dom.min.js:10
(anonymous) @ react-dom.min.js:10Understand this warning
react-dom.min.js:10 TypeError: Cannot read properties of undefined (reading 'PluginDocumentSettingPanel')
at render (index.js:1:5060)
at ht (react-dom.min.js:10:45677)
at Qs (react-dom.min.js:10:120133)
at wl (react-dom.min.js:10:88341)
at bl (react-dom.min.js:10:88269)
at yl (react-dom.min.js:10:88132)
at il (react-dom.min.js:10:84984)
at fl (react-dom.min.js:10:85364)
at Nn (react-dom.min.js:10:32442)
at react-dom.min.js:10:82952
ar @ react-dom.min.js:10
a.componentDidCatch.t.callback @ react-dom.min.js:10
at @ react-dom.min.js:10
Jr @ react-dom.min.js:10
Zr @ react-dom.min.js:10
Gr @ react-dom.min.js:10
(anonymous) @ react-dom.min.js:10
xl @ react-dom.min.js:10
fl @ react-dom.min.js:10
Nn @ react-dom.min.js:10
(anonymous) @ react-dom.min.js:10Understand this error
load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9.4:2 GET https://my.yoast.com/api/downloads/file/morphology-en-v6?plugin_version=27.5&site=https%3A%2F%2Fstaging-atrium.kinsta.cloud 403 (Forbidden)
send @ load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9.4:2
ajax @ load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9.4:2
(anonymous) @ load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9.4:5
e. @ load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9.4:5
(anonymous) @ wp-seo-premium-metabox-2750.min.js:89
retrieveData @ wp-seo-premium-metabox-2750.min.js:89
injectMorphologyData @ wp-seo-premium-metabox-2750.min.js:84
(anonymous) @ wp-seo-premium-metabox-2750.min.js:90
cr @ wp-seo-premium-metabox-2750.min.js:90
(anonymous) @ wp-seo-premium-metabox-2750.min.js:90
dispatch @ load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9.4:2
v.handle @ load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9.4:2
trigger @ load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9.4:2
(anonymous) @ load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9.4:2
each @ load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9.4:2
each @ load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9.4:2
trigger @ load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9.4:2
(anonymous) @ post-edit.js:1
Promise.then
(anonymous) @ post-edit.js:1
zt @ post-edit.js:1
(anonymous) @ post-edit.js:7Understand this error
post.php?post=14933&action=edit:1 Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.Understand this error
react-dom.min.js:10 Error: Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at Dl (react-dom.min.js:10:95738)
at e (react-dom.min.js:10:39863)
at fr (react-dom.min.js:10:54689)
at Qs (react-dom.min.js:10:120505)
at wl (react-dom.min.js:10:88341)
at bl (react-dom.min.js:10:88269)
at yl (react-dom.min.js:10:88132)
at il (react-dom.min.js:10:84984)
at fl (react-dom.min.js:10:85364)
at Nn (react-dom.min.js:10:32442)
ar @ react-dom.min.js:10
a.componentDidCatch.t.callback @ react-dom.min.js:10
at @ react-dom.min.js:10
Jr @ react-dom.min.js:10
Zr @ react-dom.min.js:10
Gr @ react-dom.min.js:10
(anonymous) @ react-dom.min.js:10
xl @ react-dom.min.js:10
fl @ react-dom.min.js:10
Nn @ react-dom.min.js:10
(anonymous) @ react-dom.min.js:10
postMessage
send @ analysis.js:33
analyzeDone @ analysis.js:33
(anonymous) @ analysis.js:33
Promise.then
executeNextTask @ analysis.js:33
tick @ analysis.js:33
setTimeout
(anonymous) @ analysis.js:33
Promise.then
tick @ analysis.js:33
setTimeout
(anonymous) @ analysis.js:33
Promise.then
tick @ analysis.js:33
setTimeout
(anonymous) @ analysis.js:33
Promise.then
tick @ analysis.js:33
setTimeout
(anonymous) @ analysis.js:33
Promise.then
tick @ analysis.js:33
setTimeout
(anonymous) @ analysis.js:33
Promise.then
tick @ analysis.js:33
setTimeout
(anonymous) @ analysis.js:33
Promise.then
tick @ analysis.js:33
setTimeout
(anonymous) @ analysis.js:33
Promise.then
tick @ analysis.js:33
setTimeout
(anonymous) @ analysis.js:33
Promise.then
tick @ analysis.js:33
setTimeout
(anonymous) @ analysis.js:33
Promise.then
tick @ analysis.js:33
setTimeout
(anonymous) @ analysis.js:33
Promise.then
tick @ analysis.js:33
setTimeout
(anonymous) @ analysis.js:33
Promise.then
tick @ analysis.js:33
setTimeout
(anonymous) @ analysis.js:33
Promise.then
tick @ analysis.js:33
setTimeout
(anonymous) @ analysis.js:33
Promise.then
tick @ analysis.js:33
setTimeout
(anonymous) @ analysis.js:33
Promise.then
tick @ analysis.js:33
setTimeout
(anonymous) @ analysis.js:33
Promise.then
tick @ analysis.js:33
setTimeout
(anonymous) @ analysis.js:33
network request
bw @ wp-tinymce.js:3
ww @ wp-tinymce.js:3
Aw @ wp-tinymce.js:3
(anonymous) @ wp-tinymce.js:3
(anonymous) @ wp-tinymce.js:3
jt @ wp-tinymce.js:3
u @ wp-tinymce.js:3
(anonymous) @ wp-tinymce.js:3
(anonymous) @ wp-tinymce.js:3
(anonymous) @ wp-tinymce.js:3
waitFor @ wp-tinymce.js:3
(anonymous) @ wp-tinymce.js:3
(anonymous) @ wp-tinymce.js:3
jt @ wp-tinymce.js:3
u @ wp-tinymce.js:3
(anonymous) @ wp-tinymce.js:3
(anonymous) @ wp-tinymce.js:3
(anonymous) @ wp-tinymce.js:3
Ow @ wp-tinymce.js:3
Bw @ wp-tinymce.js:3
render @ wp-tinymce.js:3
n @ wp-tinymce.js:3
(anonymous) @ wp-tinymce.js:3
jt @ wp-tinymce.js:3
e @ wp-tinymce.js:3
C @ wp-tinymce.js:3
d @ wp-tinymce.js:3
a @ wp-tinymce.js:3Understand this errorPlugins list
Advanced Custom Fields PRO
Advanced Custom Fields: Gravity Forms Add-on
Advanced Custom Fields: SVG Icon Picker
Breadcrumb NavXT
Category Order and Taxonomy Terms Order
Co-Authors Plus
Gravity Forms
Gravity Forms Webhooks Add-On
Max Mega Menu
Max Mega Menu – Pro Addon
Post SMTP
Safe SVGSearch & Filter
Search & Filter Pro
Stream
Wordfence Security
Yoast Duplicate Post
Yoast SEO
Yoast SEO Premium
We are using Kinsta hosting provider and their CDN and object cache
Thanks @alithewpdev, the stack traces have made the cause clear. This is a stale-JS issue on the Kinsta side, not a code defect in 4.0.x.
The first error,
Uncaught TypeError: $co.attr(…).appendTo(…).suggest is not a functionatco-authors-plus.js:174, is the legacy admin script trying to call.suggest(). We removed that call in 4.0.0 (commit6d1cf8b, where we replaced the deprecated WordPresssuggestlibrary with jQuery UI autocomplete). The function name in your stack trace,coauthors_create_autosuggest, was also renamed tocoauthors_create_autocompletein the same 4.0.0 change. So the JavaScript file your browser is executing is from a pre-4.0.0 version of Co-Authors Plus, even though your installed plugin is 4.0.x.The second React error,
Cannot read properties of undefined (reading 'PluginDocumentSettingPanel')atindex.js, is consistent with the same problem: the bundled editor script being served is also from an older build that doesn’t have the fallback for thePluginDocumentSettingPanelAPI move (it shifted fromwp.editPosttowp.editorin WP 6.6).Kinsta’s CDN, like Cloudflare, will often cache static assets while ignoring query-string cache busters such as
?ver=4.0.x. Once the CDN edge has cached the pre-4.0 file, a plugin upgrade alone won’t refresh it.Two things to try, in this order:
- Clear Kinsta’s CDN cache and the site’s object cache. From MyKinsta, go to your site → Cache → Clear Cache, and also clear the object cache. (We had another report this week that resolved entirely after clearing Cloudflare’s cache.)
- Hard-refresh the browser (Cmd+Shift+R on macOS / Ctrl+F5 on Windows) so it doesn’t reuse a stale local copy either.
If the errors persist after that, please share a fresh console capture and we’ll dig further. I’d be especially interested in whether
co-authors-plus.jsis still serving fromcoauthors_create_autosuggest, or whether it now showscoauthors_create_autocomplete(which is the correct name in 4.0+).
You must be logged in to reply to this topic.