media_publish_action 'Revert to Source' error

Created on 11 January 2023, over 1 year ago
Updated 8 March 2023, over 1 year ago

Hello, we're having an issue with our site and media actions, we're unable to perform some media actions, and in the error log get the following message:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "media_publish_action" plugin does not exist. Valid plugin IDs for Drupal\Core\Action\ActionManager are... entity:publish_action:media...

When I check configuration manager it shows that the Delete media, Publish media, Save media and Unpublish media actions have changed.

Trying to Revert these to source gives the following generic white screen error:

The website encountered an unexpected error. Please try again later.

and then in the Recent Log Messages, it just shows the same 'The "media_publish_action" plugin does not exist.' error as above. Can anyone help troubleshoot this issue? We're trying to use Scheduler for media, but this is not allowing it to work and causing headaches.

πŸ› Bug report
Status

Active

Version

1.7

Component

Base module

Created by

πŸ‡ΊπŸ‡ΈUnited States phandolin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States phandolin

    I was finally able to get our site working (with some help) by using drush config commands.

    # Delete bad configs

    drush config:delete system.action.media_publish_action
    drush config:delete system.action.media_save_action
    drush config:delete system.action.media_unpublish_action
    drush config:delete system.action.media_delete_action
    drush config:delete views.view.media

    # Export all configs - you should see the deleted configs. Confirm.
    drush config:export

    # Create new configs from vendor files

    Do a config:import and pass in the absolute path to the folder containing the new configs from the media vendor.

    ## example
    drush config:import --source=/web/core/modules/media/config/optional --partial

    # you should see the new configs staged to be created. confirm

    # Do a full config export
    drush config:export

    confirm your changes. This export dumps all of your configs into config/sync directory which is checked into the repo. You should see just those few configs have changed in the git status. These changes should be checked in and pushed to the site.

Production build 0.69.0 2024