Closed (duplicate)
Project:
Backup and Migrate
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Apr 2012 at 11:12 UTC
Updated:
30 May 2012 at 16:30 UTC
Hi,
While trying to backup a drupal db, it gives the above error.
1. Debian testing (wheezy)
2. Drupal 7.x-dev (23 Apr, 2012)
3. Backup_Migrate 7.x-2.x-dev (19 Apr 2012)
Both basic as well as advanced backup will give a lot of similar errors.
Comments
Comment #1
bserem commentedError occures with 7.x-2.2 too (against Drupal 7.x-dev)
Comment #2
ronan commentedWhat version of what database engine are you you using
Comment #3
raveendrab commentedHi,
Just downloaded drupal 7.14 and completed update.php.
While trying to take backup using the module, it is giving the following errors (lot, I think one for each table).
Notice: Undefined index: name in backup_migrate_destination_db_mysql->_get_tables() (line 187 of /usr/local/share/drupal7/modules/backup_migrate/includes/destinations.db.mysql.inc).
I am testing on Debian Wheezy (testing). debian version of Mysql 5.1 with PDO.
It worked fine with drupal 7.11 (from squeeze-backports).
Comment #4
jari.hollsten commentedAfter installing core 7.14 I too get lots of "Notice: Undefined index: name in backup_migrate_destination_db_mysql->_get_tables() (line 186 of.." when attempting to make a backup.
Comment #5
jari.hollsten commentedThis worked for me:
Quick patch for mysql: insert $table = array_change_key_case($table); after line 185 in modules/backup_migrate/includes/destinations.db.mysql.inc
http://drupal.org/node/1558680
Hardly a perfect solution but it'll get me going until this issue is fixed.
Comment #6
baronmunchowsen commentedI had this problem - fresh install of 7.14 and latest backup_migrate 7.x-2.x-dev, and older 7.x-2.2
Looks like the index 'name' is now 'Name'...
replacing $table['name']
with $table['Name']
in destinations.db.mysql.inc fixed the issue for me.
I don't really know much more, where that $table array comes from...
Hope this helps.
Comment #7
ronan commentedLooks like this is the same as #1558680: Notice: Undefined index: name - BM can't read DB table names
Fix is in dev, stable release rolling soon.
Comment #8
twooten commentedThank you Ronan! I can confirm that 7.x-2.x-dev - 2012-May-30 got rid of these errors for me. Using Pantheon.
Tim