Make WordPress Core

Opened 6 years ago

Last modified 6 years ago

#43535 new defect (bug)

wp-mediaelement.min.js?ver=4.9.4:1 crashes, making the Widgets in customize.php unusable

Reported by: radual's profile radual Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.9.4
Component: General Keywords:
Focuses: javascript Cc:


When accessing wp-admin/customize.php with a live preview, I am unable to add menu items or to switch between "Text/Visual" for the text widgets. At the first sight, it seems to be a problem with Javascript.

The console looks like having an error with the media gallery - Uncaught TypeError: Cannot read property 'indexOf' of null (see screenshot for details).

There is also a second error in the console - which does not seem related - but it may prove helpful: Error parsing header X-XSS-Protection: 1; mode=block; report= insecure reporting URL for secure page at character position 22. The default protections will be applied.

I have also disabled live preview with a die(), the situation is the same - which makes me think the error is more related to the way media gallery interprets some part of the content while rendering customize.php. Everything works smoothly for wp-admin/widgets.php (no Javascript errors).

There may be other sections that are affected, but I can confirm these two:

  • Widgets > Footer X > Any text widgets: cannot switch between Visual and Text (stays blocked on Visual)
  • Menu > Main Menu > Add items: items are not clickable (and the first one is not folded).

Browser: Chrome 64.0

Attachments (2)

Screen Shot 2018-03-13 at 10.39.52.png (387.8 KB) - added by radual 6 years ago.
Javascript errors in console
Screen Shot 2018-03-13 at 10.52.39.png (37.0 KB) - added by radual 6 years ago.
Adding menu items - not clickable

Download all attachments as: .zip

Change History (6)

6 years ago

Javascript errors in console

6 years ago

Adding menu items - not clickable

#1 @audrasjb
6 years ago

Hello and welcome on WordPress Trac @radual

I can't reproduce. Did it happens on a fresh new WP install and a bundled theme?

Last edited 6 years ago by audrasjb (previous) (diff)

#2 @radual
6 years ago

Hi @audrasjb and thank you for the quick response.

The install is not fresh - it has been customized with widgets and plugins (which we disabled - but the problem kept persisting; we may try to disable them again just to make sure).

The theme that is being used is:

The media gallery is quite full of items - video, audio, images, so I couldn't track something specific to a certain item.

One of the widgets embeds a Youtube video, as you may see in the footer of

This ticket was mentioned in Slack in #core by chetan200891. View the logs.

6 years ago

#4 @juhise
6 years ago

@radual Would you mind trying with default theme? It might be theme issue, if it's still not working, try disabling plugins.

Note: See TracTickets for help on using tickets.