Posted by nlisgo on May 25, 2012 at 1:47pm
3 followers
| Project: | Backup and Migrate |
| Version: | 7.x-2.3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
Notice: Undefined index: exclude_tables in backup_migrate_destination_db->backup_settings_form() (line 122 of destinations.db.inc).
Notice: Undefined index: nodata_tables in backup_migrate_destination_db->backup_settings_form() (line 130 of destinations.db.inc).
This PHP notice appears on the advance backup form when you set multiple database connection details in settings.php. Only the settings for the default database seem to have the index exclude_tables and nodata_tables.
This is just a PHP notice and is not causing any disruption that I can see. I will supply a patch to not set the default values in the form if these values are undefined.
Comments
#1
Here is the patch:
#2
Using Drupal 7.18
I have the same problem as I have a second database due to connecting a Lime Survey Database (Lime Sync). However I have applied the suggested patch but appear to have an error as demonstrated below:
Stephens-MacBook-Pro:backup_migrate spessex$ patch < backup_migrate-undefined_exclude_tables-1600532-1.patch
can't find file to patch at input line 5
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/includes/destinations.db.inc b/includes/destinations.db.inc
|index 27d947b..8aeccd5 100644
|--- a/includes/destinations.db.inc
|+++ b/includes/destinations.db.inc
--------------------------
File to patch: