Summary
Upgrading from Webform 6.2.x to 6.3.x removes the webform_shortcuts submodule. Sites that previously had it end up with stale configuration (core.extension and related config), which causes errors during database updates and configuration import.

Steps to reproduce

Site on Webform 6.2.x with webform_shortcuts previously present.

Run composer require drupal/webform:^6.3@beta.

Run database updates (drush updb) and configuration import (drush cim).

Observed behavior

updb reports that webform_shortcuts is marked as installed in core.extension but the code is missing.

cim fails with: “webform_shortcuts cannot be installed because it is not present.”

Expected behavior

A clean upgrade path without manual intervention, or explicit guidance that removes/cleans up leftover webform_shortcuts configuration during the upgrade.

Request
Please provide a pre-/post-update hook or upgrade instructions that automatically remove stale webform_shortcuts config (e.g., from core.extension and its settings) to prevent cim failures.

Note
A Bootstrap 3 deprecation notice also appears during the upgrade, but that seems unrelated to this specific issue.

Issue fork webform-3544435

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

macdev_drupal created an issue. See original summary.

jrockowitz made their first commit to this issue’s fork.

jrockowitz’s picture

StatusFileSize
new106.88 KB

I think the best we can do is to add an additional warning when updating Drupal that recommends the developer download the Webform Deprecated project.

Screen shot

jrockowitz’s picture

Status: Active » Needs review
cilefen’s picture

This is the third instance of the same issue reported.

Was this module never actually marked as deprecated in 6.2? It seems not. In truth, only a major release should include backward compatibility breaks. In this case, at a minimum these modules should be marked as deprecated in a 6.2 release. Isn't it too late to put this code in 6.3.x?

macdev_drupal’s picture

StatusFileSize
new123.7 KB

Thanks that helps!

Maybe note the requirement on the webform module page, too?
That was the place I was looking for infos when I ran into the error:

Webform modul page

What about the Webform Bootstrap Module?
Should it be mooved to https://www.drupal.org/project/webform_deprecated as well?
I later ran into similiar issues and did a drush pmu webform_bootstrap to get the config imported.

macdev_drupal’s picture

Is it correct that webform_deprecated does not yet appear in packages.drupal.org?
I had to add the git repo to our composer.json before I could do a composer require drupal/webform_deprecated:6.3.x-dev@dev -W

{"type": "composer",
"url": "https://packages.drupal.org/8"
},
{"type": "vcs", "url": "https://git.drupalcode.org/project/webform_deprecated.git"}

jrockowitz’s picture

I tagged a release so that the webform_deprecated package will appear via composer.

https://www.drupal.org/project/webform_deprecated/releases/6.3.0-beta4

jrockowitz’s picture

StatusFileSize
new97.81 KB

I updated the project page

Screen shot

jrockowitz’s picture

Version: 6.3.0-beta4 » 6.3.x-dev
Status: Needs review » Reviewed & tested by the community

I tweaked the requirements to display missing deprecated module via update (drush updb and update.php) and runtime (Status report) requirements.

Moving this to RTBC.

  • jrockowitz committed 2afb544f on 6.3.x
    [#3544435] feat: Upgrade 6.2.x → 6.3.x removes webform_shortcuts →...
jrockowitz’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

  • jrockowitz committed 2afb544f on 6.x
    [#3544435] feat: Upgrade 6.2.x → 6.3.x removes webform_shortcuts →...

Status: Fixed » Closed (fixed)

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