I'm working with a couple of dozen Drupal 8 sites, and I'm experimenting with Media Library. What I've found is that on the new sites I build with 8.6, Media Library works like a champ. On older sites that I built in 8.4 or 8.5, and have upgraded to 8.6, the media_bulk_form field in the view has a "Broken/missing handler" error.

Poking around the database, I found that these four actions didn't exist in the config for the older sites:

system.action.media_delete_action
system.action.media_publish_action
system.action.media_save_action
system.action.media_unpublish_action

Exporting them from a newer site and importing them into the older sites appears to fix the problem. Should these be installed automatically with the Media Library module?

Comments

wrd created an issue. See original summary.

seirerman’s picture

I can confirm this problem, and your "fix" works as well. Thank you!

On Drupal installations that have been updated to 8.6 I noticed that the checkboxes for bulk update operations in the media view were missing, and the field "Media: bulk update" wasn't available to add to the view. Importing the four configs from another site and clearing the cache helped, though.

But the new media library has nothing to do with this, I think.

rajab natshah’s picture

Having the same issue.
Configs are in optional, and I think a module could be enabled or other modules could change the list of system actions for media_bulk_form

- views_bulk_operations
- views_bulk_edit

to fix we had to copy the core config and load them again in order for the media_bulk_form not to be missed.

rajab natshah’s picture

Version: 8.6.1 » 8.6.4
berdir’s picture

This might have been a conflict/update problem with the media actions module that older sites might have been using: https://www.drupal.org/project/media_entity_actions.

psingh10’s picture

Had same issue after upgrading the core from 8.4 to 8.6 but your fix worked to get back all the media bulk actions in place. Thank You!!

sergey-serov’s picture

Great! Thanks!!
Had the same problem on 8.7.3
This four configs just were absent in system after update:
- action.media_publish_action
- action.media_delete_action
- action.media_save_action
- action.media_unpublish_action

Also it is necessary to "Clear all caches" after import configs.

rgpublic’s picture

Okay, just for clarity's sake to help others: If you don't see any bulk actions in your media library, do this:

* Change to the drupal base directory
* Enter this command: drush cim --yes --partial --source=core/modules/media/config/optional && cr
* Magic! Bulk actions will appear :-)

Version: 8.6.4 » 8.6.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Version: 8.6.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Branches prior to 8.8.x are not supported, and Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.2.x-dev

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

lendude’s picture

Status: Active » Closed (works as designed)

We have a cause in #5 (that is outside of Drupal core's influence I feel) and a workaround in the IS and #8.

Thanks for reporting this and reporting on the possible workaround. I think we can close this now, but if you feel there is still work to be done in Drupal core please feel free to open this back up.