• Resolved chrisjdahl

    (@chrisjdahl)


    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.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter chrisjdahl

    (@chrisjdahl)

    Rolling back to Version 1.159.0 fixes this issue. Anything after 1.160.0 seems to break it.

    Site Health Info

    wp-core

    version: [redacted]
    site_language: en_US
    user_language: en_US
    timezone: +00:00
    permalink: /%postname%/
    https_status: true
    multisite: false
    user_registration: 0
    blog_public: 1
    default_comment_status: open
    environment_type: production
    user_count: [redacted]
    dotorg_communication: true wp-paths-sizes

    wordpress_path: [redacted]
    wordpress_size: [redacted]
    uploads_path: [redacted]
    uploads_size: [redacted]
    themes_path: [redacted]
    themes_size: [redacted]
    plugins_path: [redacted]
    plugins_size: [redacted]
    fonts_path: [redacted]
    fonts_size: [redacted]
    database_size: [redacted]
    total_size: [redacted] wp-active-theme

    name: Hello Elementor Child (hello-elementor-child)
    version: [redacted]
    author: [redacted]
    parent_theme: Hello Elementor (hello-elementor)
    auto_update: Disabled wp-parent-theme

    name: Hello Elementor (hello-elementor)
    version: [redacted] (latest available: [redacted])
    author: Elementor Team
    auto_update: Disabled wp-themes-inactive (3)

    Twenty Twenty-Five: version: [redacted], author: the WordPress team, Auto-updates disabled
    Twenty Twenty-Four: version: [redacted], author: the WordPress team, Auto-updates disabled
    Twenty Twenty-Three: version: [redacted], author: the WordPress team, Auto-updates disabled wp-plugins-active (18)

    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

    image_editor: WP_Image_Editor_Imagick
    imagick_module_version: [redacted]
    imagemagick_version: [redacted]
    gd_version: [redacted]
    ghostscript_version: [redacted]


    [resource limits and formats redacted]

    wp-server

    server_architecture: Linux [redacted]
    httpd_software: nginx/[redacted]
    php_version: [redacted]
    php_sapi: fpm-fcgi
    curl_version: [redacted]
    pretty_permalinks: true
    static_robotstxt_file: true
    current: [redacted timestamp]
    utc-time: [redacted timestamp]
    server-time: [redacted timestamp] wp-database

    extension: mysqli
    server_version: [redacted]
    client_version: [redacted]
    max_allowed_packet: [redacted]
    max_connections: [redacted] wp-constants

    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: [redacted]
    WP_PLUGIN_DIR: [redacted]
    WP_MEMORY_LIMIT: [redacted]
    WP_MAX_MEMORY_LIMIT: [redacted]
    WP_DEBUG: false
    WP_DEBUG_DISPLAY: true
    WP_DEBUG_LOG: false
    SCRIPT_DEBUG: false
    WP_CACHE: false
    DB_CHARSET: utf8mb4
    DB_COLLATE: undefined wp-filesystem

    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    fonts: does not exist acf

    version: [redacted]
    plugin_type: Free
    ui_field_groups: 6
    post_types_enabled: true
    ui_post_types: [redacted count]
    ui_taxonomies: [redacted count] google-site-kit

    version: [redacted]
    php_version: [redacted]
    wp_version: [redacted]
    reference_url: [redacted]
    site_status: connected-site
    user_status: authenticated
    verification_status: verified
    active_modules: site-verification, search-console, analytics-4, tagmanager, pagespeed-insights
    analytics_4_account_id: [redacted]
    analytics_4_property_id: [redacted]
    analytics_4_web_data_stream_id: [redacted]
    analytics_4_measurement_id: [redacted]
    tagmanager_account_id: [redacted]
    tagmanager_container_id: [redacted]
    • This reply was modified 1 year, 2 months ago by chrisjdahl.
    Plugin Support Adam Dunnage

    (@adamdunnage)

    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.

    Thread Starter chrisjdahl

    (@chrisjdahl)

    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.

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @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.

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @chrisjdahl Could you please share what current version of PHP you’re using on your site?

    Thread Starter chrisjdahl

    (@chrisjdahl)

    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.

    • This reply was modified 1 year, 2 months ago by chrisjdahl.
    Plugin Support Adam Dunnage

    (@adamdunnage)

    @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.

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @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.