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

bserem’s picture

Error occures with 7.x-2.2 too (against Drupal 7.x-dev)

ronan’s picture

Status: Active » Postponed (maintainer needs more info)

What version of what database engine are you you using

raveendrab’s picture

Hi,

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).

jari.hollsten’s picture

After 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.

jari.hollsten’s picture

This 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.

baronmunchowsen’s picture

I 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.

ronan’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

Looks 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.

twooten’s picture

Thank you Ronan! I can confirm that 7.x-2.x-dev - 2012-May-30 got rid of these errors for me. Using Pantheon.

Tim