I can’t get cornerstone to load so I can edit a page. I deactivated the plugins I had installed before it started working. I deleted the cache. I deactivated the caching plugin. I tried to restore the plugins from a backup from before I started editing the site. I updated everything to the current versions. What else can I do?
Hi @SpikeJulep,
I found the following error on the console:
Uncaught SyntaxError: missing ) after argument list
(index):38 Uncaught ReferenceError: _ is not defined
at (index):38
(anonymous) @ (index):38
(index):42 Uncaught ReferenceError: moment is not defined
at (index):42
(anonymous) @ (index):42
(index):133 Uncaught TypeError: Cannot read property 'editor' of undefined
at (index):133
(anonymous) @ (index):133
(index):171 Uncaught ReferenceError: tinymce is not defined
at (index):171
(anonymous) @ (index):171
cs-vendor.fa34ec9.js:3809 Uncaught TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at a.callback (cs-vendor.fa34ec9.js:3809)
at a.exports (cs-vendor.fa34ec9.js:18)
at a._reify (cs-vendor.fa34ec9.js:21)
at a.reify (cs-vendor.fa34ec9.js:20)
at a.exports (cs-vendor.fa34ec9.js:17)
at a._reify (cs-vendor.fa34ec9.js:21)
at a.reify (cs-vendor.fa34ec9.js:20)
at a.exports (cs-vendor.fa34ec9.js:17)
at a._reify (cs-vendor.fa34ec9.js:21)
(anonymous) @ cs-vendor.fa34ec9.js:3809
a.exports @ cs-vendor.fa34ec9.js:18
a._reify @ cs-vendor.fa34ec9.js:21
a.reify @ cs-vendor.fa34ec9.js:20
a.exports @ cs-vendor.fa34ec9.js:17
a._reify @ cs-vendor.fa34ec9.js:21
a.reify @ cs-vendor.fa34ec9.js:20
a.exports @ cs-vendor.fa34ec9.js:17
a._reify @ cs-vendor.fa34ec9.js:21
a.reify @ cs-vendor.fa34ec9.js:20
a.exports @ cs-vendor.fa34ec9.js:17
requireModule @ cs-vendor.fa34ec9.js:5
(anonymous) @ cs.fa34ec9.js:6130
wp-backbone.min.js?ver=5.3:1 Uncaught TypeError: _.pluck is not a function
at wp.Backbone.Subviews.detach (wp-backbone.min.js?ver=5.3:1)
at i.render (wp-backbone.min.js?ver=5.3:1)
at i.render (media-views.min.js?ver=5.3:1)
at HTMLDocument.init (media-editor.min.js?ver=5.3:1)
at i (jquery.js?ver=1.12.4-wp:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
at Function.ready (jquery.js?ver=1.12.4-wp:2)
at HTMLDocument.J (jquery.js?ver=1.12.4-wp:2)
detach @ wp-backbone.min.js?ver=5.3:1
render @ wp-backbone.min.js?ver=5.3:1
render @ media-views.min.js?ver=5.3:1
init @ media-editor.min.js?ver=5.3:1
i @ jquery.js?ver=1.12.4-wp:2
fireWith @ jquery.js?ver=1.12.4-wp:2
ready @ jquery.js?ver=1.12.4-wp:2
J @ jquery.js?ver=1.12.4-wp:2
You have added this code on your functions.php of your child theme that cause the issue. I can confirm it on my install.
if (!(is_admin() )) {
function defer_parsing_of_js ( $url ) {
if ( FALSE === strpos( $url, '.js' ) ) return $url;
if ( strpos( $url, 'jquery.js' ) ) return $url;
if ( strpos( $url, 'x-head.min.js' ) ) return $url;
return "$url' defer='defer";
}
add_filter( 'clean_url', 'defer_parsing_of_js', 11, 1 );
}
Please remove it and try again.
Thank you–this fixed it!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.