Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello, there is a small bug which cause failure of module's update :
in voting_api.install, line 293, replace :
db_drop_index($ret, '{votingapi_vote}', 'content');
db_drop_index($ret, '{votingapi_vote}', 'content_vtype');
by :
db_drop_index($ret, 'votingapi_vote', 'content');
db_drop_index($ret, 'votingapi_vote', 'content_vtype');
Comment | File | Size | Author |
---|---|---|---|
#2 | votingapi-501720-1.patch | 614 bytes | milesgillham |
Comments
Comment #1
mcload CreditAttribution: mcload commentedMy update failed too. Received this error
The following queries were executed
votingapi module
Update #6101
Failed: ALTER TABLE {{votingapi_vote}} DROP INDEX content
Failed: ALTER TABLE {{votingapi_vote}} DROP INDEX content_vtype
ALTER TABLE {votingapi_vote} ADD INDEX content_uid_2 (content_type, uid)
Comment #2
milesgillham CreditAttribution: milesgillham commentedThat diff as a patch.
Cheers,
Miles
Comment #3
eaton CreditAttribution: eaton commentedChecked into the dev release. thanks!
I won't be releasing a new version for this just yet, as it's a relatively minor issue in the last update, but this will be rolled into the 2.1 version when it comes out.
Comment #4
hgmichna CreditAttribution: hgmichna commentedGot the same error:
I corrected the two SQL statements and ran them manually.
I guess I'm not the only one who did that. Will you be able to drop the two indices in the next version without showing an error if the indices have already been dropped?
Comment #5
eaton CreditAttribution: eaton commentedYes, there should be no problem with that.
Comment #7
AgentD CreditAttribution: AgentD commentedI'm getting this in v2.3 (Drupal 6.14). It looks like the fix above isn't for 2.3, in looking at the .install file the lines appear corrected.
error: "The update process was aborted prematurely while running update #6101 in votingapi.module."
Comment #8
AgentD CreditAttribution: AgentD commentedTurning to Active. Trying to update modules and keep getting this error.
v2.3 (Drupal 6.14)
Help is greatly appreciated.
Dan
Comment #10
legolasboDrupal 6 is no longer supported. Closing old issues to clean up the issue queue.
Please reopen and update this issue if this is still an issue in the D7 or D8 version.