[wp-trac] [WordPress Trac] #29052: TypeError: this.model is undefined
WordPress Trac
noreply at wordpress.org
Tue Jul 29 13:29:47 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: | Focuses:
----------------------------+--------------------
Old description:
> 1. Open the media grid.
> 2. Click any image to open the modal. The URL changes to `/wp-
> admin/upload.php?item=123`.
> 3. Refresh the page without closing the modal. The URL is still `/wp-
> admin/upload.php?item=123`.
> 4. You'll see an error in JavaScript console:
> {{{
> TypeError: this.model is undefined
> http://trunk.wordpress/wp-includes/js/media-
> views.js?ver=4.0-beta2-20140728
> Line 4643
> }}}
New description:
1. Open the media grid.
2. Click any image to open the modal. URL changes to `/wp-
admin/upload.php?item=123`.
3. Refresh the page without closing the modal.
4. The URL is still `/wp-admin/upload.php?item=123`, but the modal does
not reappear.
5. You'll see an error in JavaScript console:
{{{
TypeError: this.model is undefined
http://trunk.wordpress/wp-includes/js/media-
views.js?ver=4.0-beta2-20140728
Line 4643
}}}
--
Comment (by SergeyBiryukov):
Hmm, I can still reproduce on one install (in both Firefox and Chrome),
but not on another.
The message is slightly different in Chrome:
{{{
Uncaught TypeError: Cannot read property 'get' of undefined
media-views.js?ver=4.0-beta2-20140728:4643
}}}
Investigating.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29052#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list