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
Comment #2
seirerman commentedI 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.
Comment #3
rajab natshahHaving 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.
Comment #4
rajab natshahComment #5
berdirThis 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.
Comment #6
psingh10 commentedHad 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!!
Comment #7
sergey-serovGreat! 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.
Comment #8
rgpublicOkay, 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 :-)
Comment #12
lendudeWe 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.