"webform module can not be updated. Its schema version is 2. Updates up to and including 20 have been removed in this release. In order to update webform module, you will first need to upgrade to the last version in which these updates were available."

Not sure what (if anything) I should be doing in response to this.

Thanks.

Comments

MrRedPants’s picture

Assigned: MrRedPants » Unassigned
quicksketch’s picture

Category: bug » support

This means that you previously had installed a (very old) version of Webform that needs to be removed before you can install Webform. Drop all tables that start with "webform" in the database and drop the row for webform from the "system" database table.

If you are trying to upgrade from Webform 1.x to 3.x, you need to install Webform 2.9 first, then install Webform 3.x. You can't upgrade directly from Webform 1.x versions to 3.x, which is what's happening currently.

quicksketch’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

Lappie’s picture

Title: Running update.php gives back this error » Running update.php gives back this error about updating beyond a particular schema version

Changed the title a bit to make it clearer what the error is.

flaviovs’s picture

Status: Closed (fixed) » Active

I hate to reopen old issues, but I'm facing this very same problem right know and couldn't figure out how to solve it. I've never ever installed a very old version of Webforms, but just updated from some 2.x (which I'm sure was not 2.9) to 3.0.

I think that the problem started when I exported the database using version 3.x and imported it in another Drupal server where only the 2.x version was available. Immediately after noticing that I was not using 3.x, I replaced 2.x with 3.x and (mistakenly) ran update.php again.

My site is working perfectly, and all webforms work like a charm. However, everytime I run update.php I'm faced with that scaring message. Also, my status report (admin/reports/status) always tells me that my database is out of date, no matter how many times I run update.php. Needless to say that uninstalling the module is not an option, because if I do that I would lose all my webforms.

Is there any way to get rid of that message? Some SQL I may run to stop this annoyance?

Thank.

quicksketch’s picture

I think that the problem started when I exported the database using version 3.x and imported it in another Drupal server where only the 2.x version was available. Immediately after noticing that I was not using 3.x, I replaced 2.x with 3.x and (mistakenly) ran update.php again.

When 2.x was installed (or if you run update.php under 2.x) it may have set the "schema" version in the "system" database table to something lower than Webform 3.x is aware of. If you're positive that 3.x is running fine right now (I'd be a little skeptical of this myself), then you can just update the schema version number in the system table manually. Check to see whatever the latest (last) webform_update_xxxx() function is in your webform.install file, and manually update the schema version in the system database table to match whatever xxxx is. That will make Webform think that it's all up-to-date and won't throw any errors in update.php.

The only guaranteed suggestion I can make to fix the problem would be to disable, uninstall, then reinstall the module, but you probably won't want to go that route since it will delete all your existing webforms and submitted data.

flaviovs’s picture

Status: Active » Fixed

quicksketch, thank you for your comprehensive reply. The site is working smoothly with 3.x so far. No complaint neither from visitors nor site admins, so I guess everything is ok. I'll look into this on the next upgrade.
Again, many thanks.

Status: Fixed » Closed (fixed)

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