wp-calypso icon indicating copy to clipboard operation
wp-calypso copied to clipboard

Legacy Widget: Music Player Doesn't Open Media Library in WP-Admin

Open dcoleonline opened this issue 3 years ago • 12 comments

Quick summary

In wp-admin, the Choose Songs link doesn't seem to do anything. It should open the media library to allow the user to select audio files or to enter a URL as the audio source.

Here's a video of what currently happens:

https://user-images.githubusercontent.com/3505172/138282342-8fc9953c-06fd-424b-94a1-266972dd4f1e.mov

The issue doesn't seem to be related to a pop-up blocker. It seems like maybe the code that should trigger the modal isn't firing.

Steps to reproduce

  1. Visit /wp-admin/widgets.php on a site with a compatible plan (I tested with Premium and Business.)
  2. Add the legacy widget Music Player to a widget area
  3. Click on the Choose Songs text
  4. Nothing happens

What you expected to happen

I expected to see this modal that allows the user to select audio. This modal appears in the Customizer's widget area, but not in wp-admin:

image

What actually happened

The modal to select media did not appear.

Context

Customer report #32299451-hc Follow up in 4391393-zen

Operating System

No response

Browser

No response

Simple, Atomic or both?

Simple, Atomic

Theme-specific issue?

No it doesn't seem to be.

Other notes

I've tested on Chrome 95.0.4638.54 and Safari 14.1.2 and it didn't work on either a simple or Atomic site.

Reproducibility

Consistent

Severity

All

Available workarounds?

Yes, easy to implement

Workaround details

The widget works from the Customizer.

Also, the widget produces a shortcode once the music is added. It pulls in the files from the media library by the file IDs.

Example:

[playlist ids="18230,18231"]

This works, but is cumbersome and not ideal for users who need to manage a lot of files. They'll likely have to contact support before they can understand how this works if they don't go to the Customizer first.

dcoleonline avatar Oct 21 '21 13:10 dcoleonline

Thank you for reporting this @dcoleonline ! I can replicate this as well.

Robertght avatar Oct 23 '21 08:10 Robertght

Tagging @Automattic/flow-patrol-create based on issue content

dpasque avatar Oct 25 '21 15:10 dpasque

Another report here: 4405059-zd-woothemes

mrsjaved avatar Oct 26 '21 05:10 mrsjaved

Another case here: 32587376-hc

Using Customize > Widgets instead of widgets.php works as a workaround for this user.

thekingsprojects avatar Jan 07 '22 19:01 thekingsprojects

New case in 4717524-zen

Robertght avatar Jan 26 '22 05:01 Robertght

Another report 4742076-zen

Original report: https://github.com/Automattic/wp-calypso/issues/60648#issuecomment-1027670158

edequalsawesome avatar Feb 24 '22 23:02 edequalsawesome

Another report hc-35359390

aleone89 avatar May 21 '22 13:05 aleone89

5272452-zd-woothemes

Shared the Customize workaround.

rw-ye avatar Jun 06 '22 07:06 rw-ye

Another report in 35768076-hc

eduardozulian avatar Jun 10 '22 17:06 eduardozulian

Another report in 6709135-zen

eduardozulian avatar Sep 01 '23 15:09 eduardozulian

Support References

This comment is automatically generated. Please do not edit it.

  • [ ] 4391393-zen
  • [ ] 4405059-zen
  • [ ] 4717524-zen
  • [ ] 4742076-zen
  • [ ] 5272452-zen
  • [ ] 6709135-zen
  • [ ] 77644841-zen

github-actions[bot] avatar Sep 01 '23 15:09 github-actions[bot]

77644841-zen

staproehl avatar Feb 22 '24 19:02 staproehl