my wordpress is in Hebrew (not sure if a screenshot will help you because of it, but I don’t think it’s the root cause). With the latest version of both plugins, I get this error after clicking “add Media” button on the new post page.
Uncaught TypeError: Cannot read properties of undefined (reading 'uploader')
at n.initialize (the-paste.js:148:63)
at h.View (backbone.min.js?ver=1.4.1:2:14648)
at n.constructor (wp-backbone.min.js?ver=77df236a32da308d12654bbcacfa5fc2:2:2602)
at n.constructor (media-views.min.js?ver=77df236a32da308d12654bbcacfa5fc2:2:106750)
at new n (backbone.min.js?ver=1.4.1:2:23485)
at n.browseContent (media-views.min.js?ver=77df236a32da308d12654bbcacfa5fc2:2:74798)
at p (backbone.min.js?ver=1.4.1:2:3700)
at f (backbone.min.js?ver=1.4.1:2:3497)
at a (backbone.min.js?ver=1.4.1:2:692)
at e.trigger (backbone.min.js?ver=1.4.1:2:3380)
It looks like it has to do with a conflict of trying to add the paste button to the media upload modal and not succeeding to inject the “copy & paste” tab/button.
in order to resolve it, I made the following patch in wp-content/plugins/the-paste/js/admin/the-paste.js
I unminified it and removed this block of code (line 746 after de-minification)
/*
},
this.controller instanceof wp.media.view.MediaFrame.Select || wp.media.thepaste.supports.paste && (e = new wp.media.view.Button({
text: n.copy_paste,
className: "grabber-button",
priority: -64,
click: function () {
t.thepaste.active = t.thepaste.paste,
t.thepasteOpen(n.copy_paste)
}
}), this.thepaste.paste.grabber = new wp.media.thepaste.view.DataSourceImageGrabber({
controller: this.controller,
grabber: wp.media.thepaste.view.Pasteboard,
wpuploader: this.controller.uploader.uploader.uploader
}), this.toolbar.set("pasteModeButton", e.render()))
*/