"Nothing to install, update or remove" how to install this module ?

Created on 2 August 2025, 2 months ago

Drupal 10.5.x
I run " composer require 'drupal/forum:^1.0' " but nothing installed, do I need to uninstall the system forum module first before install this module ?

./composer.json has been updated
Running composer update drupal/forum
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating autoload files
39 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Scaffolding files for drupal/core:

πŸ’¬ Support request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom freelylw

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

Comments & Activities

  • Issue created by @freelylw
  • πŸ‡©πŸ‡°Denmark ressa Copenhagen

    How to transition from using Drupal core Forum module to contrib version, and similar questions would be great to get documented.

    So perhaps this issue could be turned into a documentation issue, and the result added to a fresh README file β†’ ?

    I would guess that the method should be something like this:

    1. Update to the latest version of Drupal core
    2. Delete the Drupal core Forum module
    3. Download the contrib version with Composer
    4. Rebuild caches, and possibly extra steps β†’
    5. Run drush updatedb

    Of course, only try this on a backup first, and not an actual live, production web site.

    It would be great to get feedback from a maintainer, whether the steps above are correct.

    PS. Composer uses different words, which can muddy things, but in Drupal:

    • "Download" = Composer - download or delete a module
    • "Install" = Drush, or under /extend
  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

    Is drupal/forum in your composer.json?

  • πŸ‡©πŸ‡°Denmark ressa Copenhagen

    @larowlan: It seems to me not trivial to switch from core to contrib, see #3499865-15: Deprecate the Ban module β†’ .

    ... or is simply running composer require drupal/forum enough for you?

  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

    I don't know sorry, I haven't used the module in a decade

  • πŸ‡©πŸ‡°Denmark ressa Copenhagen

    Since my comment, I have realized that rebuilding caches more thoroughly than with the standard methods (like with drush cache:rebuild) may be required. Deleting the old core module, however is not a requirement.

    I have added a new section "How to replace a deprecated core module with its contrib version": https://www.drupal.org/docs/core-modules-and-themes/deprecated-and-obsol... β†’

    Though, thinking more about this, a user who does not clear caches via the settings.php trick may in fact still be using files from core/modules/forum, even if contrib/forum is downloaded. There's no real way to tell if one or the other is in use, as far as I can tell ...

    Or, I guess visiting the Extend page and checking if Forum module is listed or not under "Core" modules section could work as a method?

    Does that make it clearer what needs to be done @freelylw? Like @larowlan asked, can you see drupal/forum in the composer.json file? Is Forum module listed or not under Core modules on the Extend page? (Ideally it should only be included as a standard contrib module)

  • πŸ‡©πŸ‡°Denmark ressa Copenhagen

    By the way @larowlan, to verify this, I use DDEV with a fresh Drupal 10 instance, install Forum, and then simply download drupal/forum, and do the rest of the steps. Just to clarify that this is not an existing installation, but a plain vanilla instance.

Production build 0.71.5 2024