[wp-trac] [WordPress Trac] #29052: TypeError: this.model is undefined

WordPress Trac noreply at wordpress.org
Sun Aug 3 21:28:40 UTC 2014


#29052: TypeError: this.model is undefined
----------------------------+--------------------
 Reporter:  SergeyBiryukov  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  4.0
Component:  Media           |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |     Focuses:
----------------------------+--------------------

Comment (by azaozz):

 Reproduced by navigating away while the Attachment Details modal is open.
 Click "View attachment page" or "Edit more details" then clicking Back.
 Error stack:

 {{{
 Uncaught TypeError: Cannot read property '_listenId' of undefined
 backbone.js?ver=1.1.2:222
 Events.(anonymous function) backbone.js?ver=1.1.2:222
 media.view.MediaFrame.EditAttachments.media.view.MediaFrame.extend.initialize
 media-grid.js?ver=4.0-beta2-29254-src:383
 Backbone.View backbone.js?ver=1.1.2:1001
 wp.Backbone.View.Backbone.View.extend.constructor wp-
 backbone.js?ver=4.0-beta2-29254-src:349
 media.View.wp.Backbone.View.extend.constructor media-
 views.js?ver=4.0-beta2-29254-src:1637
 child backbone.js?ver=1.1.2:1566
 child backbone.js?ver=1.1.2:1566
 child backbone.js?ver=1.1.2:1566
 wp.media media-models.js?ver=4.0-beta2-29254-src:42
 media.view.MediaFrame.Manage.media.view.MediaFrame.extend.openEditAttachmentModal
 media-grid.js?ver=4.0-beta2-29254-src:175
 triggerEvents backbone.js?ver=1.1.2:207
 Backbone.Events.trigger backbone.js?ver=1.1.2:148
 media.controller.StateMachine.(anonymous function) media-
 views.js?ver=4.0-beta2-29254-src:334
 media.view.MediaFrame.Manage.Router.Backbone.Router.extend.showItem media-
 grid.js?ver=4.0-beta2-29254-src:319
 _.extend.execute backbone.js?ver=1.1.2:1265
 (anonymous function) backbone.js?ver=1.1.2:1254
 (anonymous function) backbone.js?ver=1.1.2:1481
 _.some._.any underscore.js?ver=1.6.0:208
 _.extend.loadUrl backbone.js?ver=1.1.2:1479
 _.extend.start backbone.js?ver=1.1.2:1445
 media.view.MediaFrame.Manage.media.view.MediaFrame.extend.createRouter
 media-grid.js?ver=4.0-beta2-29254-src:122
 (anonymous function) underscore.js?ver=1.6.0:666

 }}}

 ( Heh,
 `media.view.MediaFrame.Manage.media.view.MediaFrame.extend.createRouter`
 is nine "levels" deep? :) )

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29052#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list