• I have a fresh install of WP 5.7.2.
    When i enter the Media Library, if i click on an image nothing happens and this error appears in the error console

    
    

    media-views.min.js?ver=5.7.2:2
    Uncaught TypeError: this.activateMode is not a function
    at media-views.min.js?ver=5.7.2:2
    at st (inject_start.js:200)
    at Function.sa (inject_start.js:200)
    at n._createModes (media-views.min.js?ver=5.7.2:2)
    at n.initialize (media-views.min.js?ver=5.7.2:2)
    at n.initialize (media-grid.min.js?ver=5.7.2:2)
    at n.h.View (backbone.min.js?ver=1.4.0:2)
    at n.constructor (wp-backbone.min.js?ver=5.7.2:2)
    at n.constructor (media-views.min.js?ver=5.7.2:2)
    at n [as constructor] (backbone.min.js?ver=1.4.0:2)
    (anonymous) @ media-views.min.js?ver=5.7.2:2
    st @ inject_start.js:200
    sa @ inject_start.js:200
    _createModes @ media-views.min.js?ver=5.7.2:2
    initialize @ media-views.min.js?ver=5.7.2:2
    initialize @ media-grid.min.js?ver=5.7.2:2
    h.View @ backbone.min.js?ver=1.4.0:2
    constructor @ wp-backbone.min.js?ver=5.7.2:2
    constructor @ media-views.min.js?ver=5.7.2:2
    n @ backbone.min.js?ver=1.4.0:2
    n @ backbone.min.js?ver=1.4.0:2
    n @ backbone.min.js?ver=1.4.0:2
    wp.media @ media-models.min.js?ver=5.7.2:2
    openEditAttachmentModal @ media-grid.min.js?ver=5.7.2:2
    p @ backbone.min.js?ver=1.4.0:2
    f @ backbone.min.js?ver=1.4.0:2
    c @ backbone.min.js?ver=1.4.0:2
    n.trigger @ backbone.min.js?ver=1.4.0:2
    i.<computed> @ media-views.min.js?ver=5.7.2:2
    toggleSelectionHandler @ media-views.min.js?ver=5.7.2:2
    dispatch @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.7.2:2
    v.handle @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.7.2:2

    When i try to upload a file from multi-file uploader:

    
    

    media-models.min.js?ver=5.7.2:2
    Uncaught TypeError: _.all is not a function
    at n.validator (media-models.min.js?ver=5.7.2:2)
    at n.validate (media-models.min.js?ver=5.7.2:2)
    at n._validateHandler (media-models.min.js?ver=5.7.2:2)
    at p (backbone.min.js?ver=1.4.0:2)
    at f (backbone.min.js?ver=1.4.0:2)
    at c (backbone.min.js?ver=1.4.0:2)
    at n.trigger (backbone.min.js?ver=1.4.0:2)
    at n._onModelEvent (backbone.min.js?ver=1.4.0:2)
    at p (backbone.min.js?ver=1.4.0:2)
    at f (backbone.min.js?ver=1.4.0:2)

    If i use the single file uploader it kinda works, but once the upload ends, a 404 Not found page appears with
    “Nothing here”
    with the url being still /wp-admin/media-new.php
    If i go to wp-admin/upload.php the uploaded file is there.

    When i add an image block to a Page using Gutenberg, i can select it from Media Library and it works.
    But i can’t do that when creating/editing a Post.
    As soon as i try to add an Image or Video or Media With Text block,
    i get “This block encountered an error and it cannot be previewed”, and in the console:

    
    

    react-dom.min.js?ver=16.13.1:125
    TypeError: this.activateMode is not a function
    at media-views.min.js?ver=5.7.2:2
    at st (inject_start.js:200)
    at Function.sa (inject_start.js:200)
    at n._createModes (media-views.min.js?ver=5.7.2:2)
    at n.initialize (media-views.min.js?ver=5.7.2:2)
    at n.initialize (media-views.min.js?ver=5.7.2:2)
    at n.initialize (media-views.min.js?ver=5.7.2:2)
    at n.h.View (backbone.min.js?ver=1.4.0:2)
    at n.constructor (wp-backbone.min.js?ver=5.7.2:2)
    at n.constructor (media-views.min.js?ver=5.7.2:2)
    Me @ react-dom.min.js?ver=16.13.1:125
    Jh.f.componentDidCatch.c.callback @ react-dom.min.js?ver=16.13.1:139
    Wg @ react-dom.min.js?ver=16.13.1:67
    oj @ react-dom.min.js?ver=16.13.1:127
    Aj @ react-dom.min.js?ver=16.13.1:160
    unstable_runWithPriority @ react.min.js?ver=16.13.1:25
    Da @ react-dom.min.js?ver=16.13.1:60
    ab @ react-dom.min.js?ver=16.13.1:154
    Te @ react-dom.min.js?ver=16.13.1:146
    (anonymous) @ react-dom.min.js?ver=16.13.1:61
    unstable_runWithPriority @ react.min.js?ver=16.13.1:25
    Da @ react-dom.min.js?ver=16.13.1:60
    Pg @ react-dom.min.js?ver=16.13.1:61
    ha @ react-dom.min.js?ver=16.13.1:60
    mk.Events.current @ react-dom.min.js?ver=16.13.1:236
    Ei @ react-dom.min.js?ver=16.13.1:41

    Can it be related to file permissions?
    Can i solve it by using an older WP version?

    Thanks

Viewing 1 replies (of 1 total)
  • Moderator t-p

    (@t-p)

    This may be a plugin or theme conflict. Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.

Viewing 1 replies (of 1 total)
  • The topic ‘Media Library not working’ is closed to new replies.