[wp-trac] [WordPress Trac] #49457: wp-admin javascript issues after update to 5.3.2
WordPress Trac
noreply at wordpress.org
Mon Feb 17 13:26:24 UTC 2020
#49457: wp-admin javascript issues after update to 5.3.2
----------------------------+--------------------------------------
Reporter: pegla | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 5.3.2
Severity: blocker | Keywords: needs-patch dev-feedback
Focuses: |
----------------------------+--------------------------------------
Hi,
I believe there's an issue with media-library/theme customizer
specifically with 2 files on lines (I turned on script debugger and these
are unminified files):
**- line 207 in media-audiovideo.js**
''Uncaught TypeError: wp.media.collection is not a constructor''
{{{
wp.media.playlist = new wp.media.collection({
}}}
**- line 602 in media-grid.js**
''Uncaught TypeError: Cannot read property ‘extend’ of undefined''
{{{
Details = EditImage.extend(/** @lends
wp.media.view.EditImage.Details.prototype */{
// ....
}}}
I initially thought this as theme error or server error but my guys from
Mochahost said all is good on their end specially since this is Javascript
error. And I did fresh wordpress install and update - 0 plugins 0 themes
it still happens. Also tried different browsers, Firefox, IE, Edge and
Chrome...
I tried some javascript hacking did some workarounds - but none of it
worth mentioning - except from debugging I found out that:
'collection' doesn't exist on wp.media at all and even when I wrapped it
in setTimeout for few seconds it's still wasn't there. I also tried
accessing objects directly from
window.wp.media/window.wp.media.view.EditImage -> no luck there
I'm not good with backbone and these files are webpack build so it's bit
hard to figure out what's wrong.
I filed a support questions here:
https://wordpress.org/support/topic/media-library-not-working-26/
https://wordpress.org/support/topic/wordpress-5-3-2-javascript-errors/
I'm using PHP 7.3 and I tried with 5.6 same thing happens - fix for now
would be to downgrade to WordPress 5.2.5 where it also happens but media
library and appearance/customizer seem to work fine with this error:
''Uncaught TypeError: wp.media.collection is not a constructor''
Main issue is that this is happening when I update my websites - and it's
on all of them. I usually build wordpress sites and when I give access to
admin to clients they update wordpress to get latest security updates - I
now need to tell them not to update and if they do update I will need to
revert back versions and hopefully they won't break anything.
Anyone interested I can share more details or access for the site to check
it up.
Thanks,
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49457>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list