• Hi,

    Just upgraded to 3.5 and I’m having a problem bringing up the Add Media screen when pressing the button. The Javascript error is as the title, full trace is

    Uncaught TypeError: Object function (a){return new m(a)} has no method ‘omit’ media-views.js:387
    media.controller.Library.media.controller.State.extend.initialize media-views.js:387
    g.Model backbone.min.js:10
    media.controller.State.Backbone.Model.extend.constructor media-views.js:229
    d backbone.min.js:38
    media.view.MediaFrame.Post.media.view.MediaFrame.Select.extend.createStates media-views.js:1613
    media.view.MediaFrame.Select.media.view.MediaFrame.extend.initialize media-views.js:1494
    media.view.MediaFrame.Post.media.view.MediaFrame.Select.extend.initialize media-views.js:1603
    g.View backbone.min.js:33
    media.View.Backbone.View.extend.constructor media-views.js:1198
    d backbone.min.js:38
    d backbone.min.js:38
    d backbone.min.js:38
    d backbone.min.js:38
    wp.media media-models.js:30
    wp.media.editor.add media-editor.js:453
    wp.media.editor.open media-editor.js:620
    (anonymous function) media-editor.js:639
    v.event.dispatch jquery.js:2
    o.handle.u

    Seems it’s this line causing the problem

    props = _.omit( props, ‘orderby’, ‘query’ ); (line 387)

    if I comment it out the Add Media screen comes up but I can’t see my library of images?

    I’ve tried stuff I’ve seen for similar issues on other threads such as define(‘CONCATENATE_SCRIPTS’, false ); in the config file and disabling all plug ins but no luck?

    Any kind sole with any ideas?

    Thanks
    Neil

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Object function (a){return new m(a)} has no method 'omit'’ is closed to new replies.