Update from alpha4 to alpha6 failed with message:

"Some of the pending updates cannot be applied because their dependencies were not met."

So, after removing this part of code in vars.install:

/**
 * Implements hook_update_last_removed().
 */
function vars_update_last_removed() {
  return 7103;
}

the above message disappeared and we have 2 pending queries (Flush the module cache and Update the module weight), first query is OK, but second presented AJAX error:

parsererror ResponseText: Fatal error: Call to undefined method Vars::updateModuleWeight() in /home2/palmaros/public_html/drupal/sites/all/modules/vars/vars.install on line 91

Then I returned code "Implements hook_update_last_removed()..." and run update.php once more. The message "Some of the pending updates..." is not already present (?), but AJAX error persists...

Comments

Anonymous’s picture

Status: Active » Fixed

I clearly misunderstood the purpose of the hook_update_last_removed().
I changed the installation file, and re-arranged the code as it was before. As the installation file doesn't require the Vars class, the module should update for any version previously installed.

Thank you for your report.

Status: Fixed » Closed (fixed)

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