Fatal error: require_once() [function.require]: Failed opening required './sites/all/modules/backup_migrate/includes/db.inc' (in

cjones - November 2, 2009 - 20:50
Project:Backup and Migrate
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:fixed
Description

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

reinvented - November 27, 2009 - 15:02

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 735

I can, however, backup to a file, and then restore from that backup file to a different database without issue.

#2

ronan - November 27, 2009 - 19:30
Status:active» fixed

Latest commit should fix this. Thanks for the reports

 
 

Drupal is a registered trademark of Dries Buytaert.