We have Drupal 9.4.5 with Chaos Tools Suite (ctools) 4.01

Last week a change was made by the module maintainers and 4.01 was marked unsupported. The release notes recommend 8.x-3.11.

However I'm not clear if it is safe to "downgrade" (I presume one could do this by specifying the exact version in Composer).

The update page in Drupal rather unhelpfully suggests that the recommended version is the one already installed, 4.01.

Ignore or downgrade?

Tim

Comments

dadderley’s picture

I downgraded on a couple of sites. This appeared to be successful with no unpleasant unexpected outcomes.

//////

host | uxx-xxxxxxx@us1014.server.us:~/www/mysite.com/public_html$ composer require 'drupal/ctools:^3.11'
./composer.json has been updated
Running composer update drupal/ctools
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 1 update, 0 removals
  - Downgrading drupal/ctools (4.0.1 => 3.11.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
  - Downloading drupal/ctools (3.11.0)
  - Downgrading drupal/ctools (4.0.1 => 3.11.0): Extracting archive
Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
Package symfony/debug is abandoned, you should avoid using it. Use symfony/error-handler instead.
Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead.
Generating autoload files
Hardening vendor directory with .htaccess and web.config files.
52 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Cleaning installed packages.
host | uxx-xxxxxxx@us1014.server.us:~/www/mysite.com/public_html$ drush updb
 -------- ---------------- ------------- -------------------------------------
  Module   Update ID        Type          Description
 -------- ---------------- ------------- -------------------------------------
  ctools   remove_entityb   post-update   Invalidate the service container to
           undleconstrain                 force EntityBundleConstriant is
           t                              Removed.
 -------- ---------------- ------------- -------------------------------------

 Do you wish to run the specified pending updates? (yes/no) [yes]:
 > yes

>  [notice] Update started: ctools_post_update_remove_entitybundleconstraint
>  [notice] Update completed: ctools_post_update_remove_entitybundleconstraint
 [success] Finished performing updates.
host | uxx-xxxxxxx@us1014.server.us:~/www/mysite.com/public_html$ drush cr
 [success] Cache rebuild complete.
VM’s picture

I ran into this too. 'caveat' The following may have worked without issue because I don't think I had any ctools dependents installed.

What I did was uninstall ctools 4.0.1 then reinstall 3.11. All worked out as expected.

timanderson’s picture

Downgrade successfully applied, thanks all.

Tim