[wp-trac] [WordPress Trac] #39511: JS Error: Cannot read property 'models' of undefined in wp-includes/js/media-views.js at line no 7727

WordPress Trac noreply at wordpress.org
Sat Jan 7 23:19:40 UTC 2017


#39511: JS Error: Cannot read property 'models' of undefined in wp-includes/js
/media-views.js at line no 7727
--------------------------+------------------------------
 Reporter:  chandrapatel  |       Owner:  adamsilverstein
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  4.8
Component:  Media         |     Version:  4.6
 Severity:  normal        |  Resolution:
 Keywords:  commit        |     Focuses:  javascript
--------------------------+------------------------------
Changes (by adamsilverstein):

 * keywords:  has-patch => commit
 * owner:   => adamsilverstein
 * status:  new => assigned
 * milestone:  Awaiting Review => 4.8


Comment:

 @chandrapatel Thanks for your detailed bug report and the patch. The check
 seems quite reasonable and appropriate here.

 I was able to reproduce the issue you described and see the error in my
 console when attempting to upload, and I am unable to upload images.

 [[Image(https://cl.ly/2S0m3z2h0V09/Add_New_Post__wpdev__WordPress_2017-01-07_18-00-08.jpg)]]

 After applying your patch I verified I no longer see the console message,
 and image uploading works fine.

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


More information about the wp-trac mailing list