Fatal error: require_once() [function.require]: Failed opening required './sites/all/modules/backup_migrate/includes/db.inc' (in
| Project: | Backup and Migrate |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | fixed |
Jump to:
After creating and configuring a MySQL Database destination, I cannot back up to that database. Submitting the form at admin/content/backup_migrate results in the error
Fatal error: require_once() [function.require]: Failed opening required './sites/all/modules/backup_migrate/includes/db.inc' (include_path='.:/usr/share/php:/usr/share/pear') in [...]/sites/all/modules/backup_migrate/backup_migrate.module on line 208
I attempted to fix it by changing line 26 of includes/destinations.db.inc to
backup_migrate_include('files', 'destinations.db');
But this resulted in another error:
Fatal error: Call to undefined function backup_migrate_db_restore() in [...]/sites/all/modules/backup_migrate/backup_migrate.module on line 735
... which appears to be a separate issue ...

#1
I'm also experiencing this issue: if I set my source as "default database" and my destination as a different database, I get the error:
Fatal error: Call to undefined function backup_migrate_db_restore() in [...]/sites/all/modules/backup_migrate/backup_migrate.module on line 735I can, however, backup to a file, and then restore from that backup file to a different database without issue.
#2
Latest commit should fix this. Thanks for the reports