Hello, I have a Drupal 10.6.12 website, and today at /admin/reports/updates I saw there an update to 6.3.0 for this module (6.2.10 was installed currently) - with the status of "Compatible".
So I followed the standard composer install command composer update drupal/webform --with-all-dependencies and afterward went to /update.php. However, at this page I'm seeing the following:
Requirements problem
Status Details
Errors found
Webform Bootstrap
Bootstrap 3.x missing.
Bootstrap 3.x. must be enabled to install the Webform Bootstrap module.
Checked
Web server
Apache
PHP
8.3.31
PHP extensions
Enabled
Database support
Enabled
Database system
MariaDB
Database system version
10.3.39-MariaDB-log-cll-lve
Database support for JSON
Available
Is required in Drupal 10.0.
PHP memory limit
4096M
File system
Writable (public download method)
Unicode library
PHP Mbstring Extension
Minimum schema version
The installed schema version meets the minimum.
Schema version: 10600
Check the messages and try again.
Also, if I try going to any of the other admin pages (ex - /admin/reports/updates), I just see a white screen with this message: The website encountered an unexpected error. Try again later.
So I really have no idea what is wrong and what to do to fix this. It does appear that the Webform module includes "Webform Bootstrap", so it seems like a bug of some kind that upgrading from 6.2.10 to 6.3.0 would break in this way.
Comments
Comment #2
dbdrupal commentedI'm interested in doing this same update but this gives me pause. Did you try clearing your cache to see if that cleans it up?
Comment #3
cilefen commentedIt's not a mystery so much as an upgrade problem. See #3492971: Document webform_bootstrap deprecation for more info.
Comment #4
liam morlandI have improved the release notes for 6.3.0 to mention installing
webform_bootstrap.Comment #6
jimmb commentedSorry to re-open this, but installing the new webform_bootstrap module (1.0.3) first did not work. I should also note that the theme this site is using -- DXPR -- is based on Bootstrap 5. As such, I do have the latest version of Bootstrap 5 installed on this site.
And based on the release notes at https://www.drupal.org/project/webform/releases/6.3.0, I thought that installing webform_bootstrap first and then upgrading webform to 6.3.0 would work perfectly.
Instead, after upgrading to webform 6.3.0, I then went to /update.php and was greeted with this message:
Interestingly, the messages that "Bootstrap 3.x missing." and "Bootstrap 3.x. must be enabled to install the Webform Bootstrap module." did remind me that after installing webform_bootstrap I went to /extend and saw that it was *already* checked as being enabled. So then I went to /admin/reports/updates and saw that webform_bootstrap 1.0.3 was indeed appearing there as installed and active. So I figured it was okay to proceed with installing webform 6.3.0.
So perhaps there is something in here that is getting confused. All I know is that I followed the instructions as given, and believe I'm doing everything correctly, and yet the upgrade path from webform 6.2.10 to 6.3.0 is still giving me problems.
Comment #7
liam morlandI've changed the release notes. If you don't already use
webform_bootstrap, you don't need to add it.Comment #8
jimmb commentedThanks for the latest release notes update - I think it's closer to making sense to me... However, I'm not sure how to interpret "If you use webform_bootstrap ...". For example, at /admin/reports/updates I see the following:
So there it says "Webform Bootstrap" is included, and then I check /admin/modules to see if it's enabled. And here I see:
Note that here "Webform Bootstrap" is checked, which I take to be enabled and therefore makes me think that I *am* using it.
So given all this, the latest release notes give me the impression that I am using Webform Bootstrap (whether aware of it or not) and therefore should proceed with installing /project/webform_bootstrap like I did in my previous post....
But since I know that doesn't work, then I'm still not sure what I'm supposed to do to upgrade Webform from 6.2.10 to 6.3.0. The only other option from the release notes is to install /project/webform_deprecated and then try upgrading to Webform 6.3.0 ...
But all things considered, I'm not sure if that's correct either and so am going to hold off on doing anything until the next steps to upgrade /project/webform for this website are more clear.
Comment #9
liam morlandThe error message that you had suggests to me that you did not have
webform_bootstrapinstalled. You can probably uninstall it and then remove thewebform_bootstrapproject from your build. The documentation is not going to improve unless someone experiments and figures out what better instructions should say.Comment #10
jimmb commentedHello, a quick follow-up that I just ran the command
composer show drupal/webform_bootstrap, and that outputted:So it does seem there is a discrepancy here where the composer command shows webform_bootstrap is not installed, while at /admin/modules webform_bootstrap is checked in such a way that it can't be unchecked. That is, webform_bootstrap appears to be required by another module and therefore can't be uninstalled - at least not using the UI.
I hope some of this may help, but since I"m not a programmer and since Webform 6.2.10 seems to be working fine anyway, I probably will just disregard this update. Perhaps someday someone will figure out how it can be updated in this scenario - which is really nothing special or out of the ordinary and therefore I'd think others sites will have (or are having) this same issue.
Comment #11
liam morlandModules can be uninstalled only at
admin/modules/uninstallor with Drush. If it can't be uninstalled atadmin/modules/uninstall, it will have a "Required by" statement explaining why.Comment #12
brandon- commentedCould this issue come from the new module actually being packaged as 'drupal/webform_bootstrap-webform_bootstrap' ?
Comment #13
liam morlandPossibly. It probably needs to be added to Composer using the string you give.