Issue with module installation.

Created on 15 December 2023, 11 months ago
Updated 8 January 2024, 11 months ago

I am encountering an issue when installing the module.

Steps Reproduce:

1. Installed the module using Composer with the command: composer require 'drupal/group_unique_title:^1.0@beta'.

2: first when trying to enable this module, it throws an error, after the page reloads, the module is enabled successfully but after enabling this module when flushing the cache it throws an error on all pages error mentioned below.

Error: Class "Drupal\core_event_dispatcher\FormHookEvents" not found in Drupal\group_unique_title\EventSubscriber\GroupUniqueTitleFormEventSubscriber::getSubscribedEvents() (line 135 of modules\contrib\group_unique_title\src\EventSubscriber\GroupUniqueTitleFormEventSubscriber.php).

I've attached an image illustrating my actionsโ€”installing the module and searching within the extended panel.

๐Ÿ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia aman_lnwebworks

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

Comments & Activities

  • Issue created by @aman_lnwebworks
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia aman_lnwebworks

    Here is the patch for the issue

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States jnicola

    Oh cool, thanks for sharing! I just put this out this AM and I haven't tested standing this up from scratch. I'll take a gander tomorrow!

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States jnicola

    Hey there, could you let me know what version of hook event dispatcher you are using? We're utilizing 4.0 release candidate. If you're using 3.x this won't work probably as I think they changed all of their hooks classes.

    I think that may be your problem. I should probably mark this as D10 exclusive and setup a bunch of requirements in here for group version, Drupal version, and hook_event_dispatcher version.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia aman_lnwebworks

    Hi @jnicola

    I am using the same version you mentioned 4.0. I have tried the dev and recommended version too, but it still gives me an error.

  • Status changed to Needs review 11 months ago
  • Status changed to Active 11 months ago
  • Status changed to Needs review 11 months ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States jnicola

    Okay, I reviewed the issue further and I believe the issue was actually the missing module requirement in the info.yml file for drupal:core_event_dispatcher, a submodule of hook_event_dispatcher

    While I believe your code would fix the error, the event would simply never be triggered.

    I've updated the info.yml file AND just to make sure everything is working I put all the other requirements in composer.json as well.

    Please try again using the latest development branch commit.

  • Status changed to Fixed 11 months ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States jnicola

    Marking fixed until I hear otherwise :) Probably will add to a second alpha release here shortly!

  • Status changed to Fixed 11 months ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States jnicola
Production build 0.71.5 2024