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.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

KurtTrowbridge created an issue. See original summary.

kurttrowbridge’s picture

Issue summary: View changes

kurttrowbridge’s picture

Status: Active » Needs review

Patch added; confirmed it installed as expected on my site.

slowflyer’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.