Fatal error: Cannot redeclare quickbar_update_7201() (previously declared in /drupal_path/sites/all/modules/contrib/quickbar/quickbar.install:16) in /drupal_path/sites/all/modules/contrib/quickbar/modules/quickbar_extras/quickbar_extras.install on line 15

Comments

bocaj’s picture

Status: Active » Fixed

This has been fixed! Thanks vasike for reporting and redndahead for correcting!

Commit: http://drupalcode.org/project/quickbar.git/commit/9ec6086

Status: Fixed » Closed (fixed)

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

christiaan_’s picture

I had a similar problem updating Quickbar, more specifically the Quicbar_extras to the latest dev version. Kept getting update failed.

From this post : #1329924: Missing Field in quickbar_update_7201() I added the the same missing name field in the quickbar_extras.install file.

Adding the following line:

$query->addField('variable', 'name');

The function quickbar_extras_update_7201 now looks like this :

function quickbar_extras_update_7201() {
  $ret = array();
  // Undo Serialized Variables.
  $query = db_select('variable');
  $query->addField('variable', 'name');
  $query->condition('name', 'quickbar_extras_settings_%', 'LIKE');
  $result = $query->execute();
  
  foreach($result as $record) {
    $value = variable_get($record->name, array());
    variable_set($record->name, unserialize($value));
  }
  return $ret;
}

After adding this the update worked without a problem.