This error is due to Site Kit. When I disable it, the image uploader works. Any plugin that uses the image uploader doesn’t work (for example ACF image upload fields).
When trying to upload / replace an image from “page/post” editor /wp-admin/post.php?post=xxxx&action=edit
I get the following error in the console.
react-dom.min.js?ver=18.3.1.1
Uncaught TypeError: _.contains is not a function at r.extend.get (media-models.min.js?ver=6.8.2:2:2038) at n._requery (media-models.min.js?ver=6.8.2:2:8131) at n._changeQuery (media-models.min.js?ver=6.8.2:2:5346) at p (backbone.min.js?ver=1.6.0:2:3818) at f (backbone.min.js?ver=1.6.0:2:3497) at a (backbone.min.js?ver=1.6.0:2:692) at e.trigger (backbone.min.js?ver=1.6.0:2:3380) at h.Model.set (backbone.min.js?ver=1.6.0:2:5789) at n.initialize (media-models.min.js?ver=6.8.2:2:4998) at h.Collection (backbone.min.js?ver=1.6.0:2:8619)
This topic was modified 1 year, 2 months ago by chrisjdahl.
Advanced Custom Fields Dataverse Integration (multiple modules) Elementor Elementor Pro ElementsKit Lite Essential Addons for Elementor (Free + Pro) Image Optimizer Redirection Site Kit by Google Skyboot Custom Icons for Elementor Widgets for Google Reviews WP Rollback Yoast SEO Yoast SEO Premium …[versions redacted, all auto-updates disabled] wp-plugins-inactive (8)
All-in-One WP Migration and Backup Better Search Replace Broken Link Checker Enable Media Replace LiteSpeed Cache Query Monitor Shortcodes Finder WP File Manager …[versions redacted] wp-media
Hi there @chrisjdahl, thanks for opening this support topic. Thanks for all the insights which are very helpful indeed.
To help further, please can you follow the troubleshooting steps here and confirm if you encounter the same while in troubleshooting mode with just Site Kit active on the latest version of the plugin?
If you no longer encounter this then it will point to a multi-plugin conflict which we can rule out by introducing other plugins one by one as explained in the instructions I have shared.
Let me know how you get on with the above and if you have any questions feel free to ask them here.
Using Health Check & Troubleshooting plugin , I believe there is a conflict between “Dataverse Integration” and Site Kit which makes the Upload Media modal not function when both plugins are enabled. When one of these plugins is enabled on it’s own, the upload media works, but when both are enabled, it does not.
@chrisjdahl Thanks for confirming this. I will perform some testing and checks myself with this plugin and Site Kit and see if there is anything we can improve on the Site Kit side of things and raise it with the team. You can also reach out to the support for the Dataverse Integration plugin to see if there is anything they can do.
If I have any updates, I will share them here. Thanks for bringing this to our attention.
Thanks Adam, PHP version 8.2.28 So after disabling the “Monaco editor” that I think is packaged with the Dataverse Integration plugin, the most recent Site Kit (1.161.0) works with the WP image uploader.
Here is a screenshot of the error I was getting before.
@chrisjdahl Interesting and great troubleshooting! Thanks for sharing this. I will check this myself and perform some more tests before discussing with the team. Any updates I have, I will share here.
@chrisjdahl I have opened a GitHub issue for this for the team to investigate to see if there is anything on the Site Kit side that can be improved. Please follow here for updates.
Viewing 8 replies - 1 through 8 (of 8 total)
The topic ‘Site kit breaks image upload’ is closed to new replies.