Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict with ImagePlus #66

Open
Mark-H opened this issue Feb 5, 2023 · 1 comment
Open

Conflict with ImagePlus #66

Mark-H opened this issue Feb 5, 2023 · 1 comment

Comments

@Mark-H
Copy link

Mark-H commented Feb 5, 2023

Trying to render the media manager page fails with the following JS trace:

Uncaught TypeError: $(...).select2 is not a function
    setFilters https://development.local/3.x/assets/components/mediamanager/js/mgr/mediamanager-files.js?mv=310dev:502
    init https://development.local/3.x/assets/components/mediamanager/js/mgr/mediamanager-files.js?mv=310dev:143
    <anonymous> https://development.local/3.x/assets/components/mediamanager/js/mgr/mediamanager-files.js?mv=310dev:1790
    e https://development.local/3.x/assets/components/imageplus/js/mgr/imageplus.min.js?v=v2.9.3&mv=310dev:6
    t https://development.local/3.x/assets/components/imageplus/js/mgr/imageplus.min.js?v=v2.9.3&mv=310dev:6
    setTimeout handler*$jqIP</Deferred/then/c/< https://development.local/3.x/assets/components/imageplus/js/mgr/imageplus.min.js?v=v2.9.3&mv=310dev:6
    r https://development.local/3.x/assets/components/imageplus/js/mgr/imageplus.min.js?v=v2.9.3&mv=310dev:6
    fireWith https://development.local/3.x/assets/components/imageplus/js/mgr/imageplus.min.js?v=v2.9.3&mv=310dev:6
    fire https://development.local/3.x/assets/components/imageplus/js/mgr/imageplus.min.js?v=v2.9.3&mv=310dev:6
    r https://development.local/3.x/assets/components/imageplus/js/mgr/imageplus.min.js?v=v2.9.3&mv=310dev:6
    fireWith https://development.local/3.x/assets/components/imageplus/js/mgr/imageplus.min.js?v=v2.9.3&mv=310dev:6
    ready https://development.local/3.x/assets/components/imageplus/js/mgr/imageplus.min.js?v=v2.9.3&mv=310dev:6
    ue https://development.local/3.x/assets/components/imageplus/js/mgr/imageplus.min.js?v=v2.9.3&mv=310dev:6
    jqIP https://development.local/3.x/assets/components/imageplus/js/mgr/imageplus.min.js?v=v2.9.3&mv=310dev:6
    jqIP https://development.local/3.x/assets/components/imageplus/js/mgr/imageplus.min.js?v=v2.9.3&mv=310dev:6
    <anonymous> https://development.local/3.x/assets/components/imageplus/js/mgr/imageplus.min.js?v=v2.9.3&mv=310dev:6

Disabling the ImagePlus plugin allows the page to render.

Perhaps there's a way to resolve the conflict - using jQuery's noConflict mode?

MediaManager 3.0.3, ImagePlus 2.9.3, MODX 3.1.0-dev.

@Mark-H
Copy link
Author

Mark-H commented Feb 5, 2023

Related: #49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant