Media Not Publishing. 'The "media_publish_action" plugin does not exist'

Created on 15 December 2022, almost 2 years ago
Updated 9 March 2023, over 1 year ago

We've been using the media patch for the scheduler plugin 8.1 successfully for several years, just in the last few weeks, scheduled media will not publish, it just stays 'Scheduled'.

The log will show that the the scheduled media was published, followed by a cron error that goes something like this:
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...

I've found similar reports β†’ that seem to be related to a conflict with the Workbench Moderation module, but we don't have that installed. I've confirmed that scheduled content publishes correctly, and originally we were on 8.1.4 with media patch, but I've updated to 2.0.0-rc8 and we're still having the same issue. My guess is maybe another module conflict, are there any other confirmed reports of modules that interfere with scheduling media? The only recent module update we performed was to the SMTP module.

πŸ’¬ Support request
Status

Closed: works as designed

Version

1.4

Component

Code

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.

  • πŸ‡¬πŸ‡§United Kingdom jonathan1055

    Pleased to hear that you got your site working. Thanks for sharing the information.

Production build 0.71.5 2024