Added JS Cookie dependency not enabled on update

Created on 18 August 2025, about 2 months ago

Problem/Motivation

The JS Cookie dependency added in 4.0.1 does not get enabled after running `update.php`.

Steps to reproduce

  • composer require drupal/fpa:4.0.0
    drush pm:enabe fpa -y
    composer require drupal/fpa:4.0.1
    drush updb -y
    drush pm:list --filter js_cookie
    
  • Observe that the dependency is not enabled.
  • Proposed resolution

    It seems the `update.php` process does not ensure newly added dependencies are enabled.

    Implement a hook_update_N() to ensure this dependency is enabled.

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇺🇸United States jcandan

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

Comments & Activities

  • Issue created by @jcandan
  • First commit to issue fork.
  • @astonvictor opened merge request.
  • 🇺🇦Ukraine AstonVictor

    Hi there,

    Implemented a simple update hook to force enable the module.
    Thanks in advance

  • 🇮🇳India vinodhini.e chennai

    Hi,
    Tested the module on Drupal 10.5.1.
    Followed the steps mentioned in the issue but could not reproduce the problem.
    The JS Cookie dependency added in 4.0.1 was installed and enabled successfully after running update.php (or drush updb) without applying the merge request.

    Steps followed:

    composer require drupal/fpa:4.0.0
    drush pm:enable fpa -y
    composer require drupal/fpa:4.0.1
    drush updb -y
    drush pm:list --filter js_cookie

    Thanks.

Production build 0.71.5 2024