WordPress.org

Make WordPress Core

Opened 20 months ago

Last modified 20 months 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 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.9.4
Component: General Keywords:
Focuses: javascript Cc:
PR Number:

Description

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).
https://cloudup.com/cLbAt2w2Kas

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=https://www.google.com/appserve/security-bugs/log/youtube: 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 20 months ago.
Javascript errors in console
Screen Shot 2018-03-13 at 10.52.39.png (37.0 KB) - added by radual 20 months ago.
Adding menu items - not clickable

Download all attachments as: .zip

Change History (6)

@radual
20 months ago

Javascript errors in console

@radual
20 months ago

Adding menu items - not clickable

#1 @audrasjb
20 months 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 20 months ago by audrasjb (previous) (diff)

#2 @radual
20 months 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: https://catchthemes.com/themes/verity/

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 https://lheuredupunch.com

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


20 months ago

#4 @juhise
20 months 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.