Errors on install due to missing plugins

Created on 18 April 2023, over 1 year ago
Updated 18 July 2023, over 1 year ago

Problem/Motivation

When installing the module on Drupal 9.5.7, the on-install config fails to get installed due to an error with a missing plugin. The output when enabling via Drush is as follows:
The "flag_action:rate_node.flag" plugin does not exist. Valid plugin IDs for Drupal\Core\Action\ActionManager are: [long list that includes flag_action:rate_node_flag and flag_action:rate_node_unflag]

Presumably, if that one were fixed, the unflag plugin would have the same issue.

Steps to reproduce

Download the module and use Drush to enable it. The module is enabled, but the error is produced, which prevents the config from being installed and the schema from being properly set up in the database. (Running database updates points that out in an error: "Schema information for module flag_rating was missing from the database. You should manually review the module updates and your database to check if any updates have been skipped up to, and including, flag_rating_update_8000().")

Proposed resolution

In the on-install config, it looks like the plugin names just need to change their names slightly, to flag_action:rate_node_flag and flag_action:rate_node_unflag. Uninstalling, renaming, and reinstalling did the trick for me. Patch forthcoming momentarily.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States kurttrowbridge

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

Comments & Activities

Production build 0.71.5 2024