Hi,

The module B&M crashs the cmd i do with drush (drush cc all or when i want to enable a module) i always have this message: "Error: Cannot redeclare class backup_migrate_source_db in /...../sites/all/modules/backup_migrate/includes/sources.db.inc, line 318", some module i've uninstalll and install again doesn't work the same.

I am on the openoutreach-7.x-1.8 but experimented the same problem with the 1.7.

Any idea? Thanks in advance. Jérôme

Comments

ronan’s picture

Status: Active » Postponed (maintainer needs more info)

Are you on a mac? This can happen (not just with Backup and Migrate) on a mac when the path to your web root has a capital letter in it (ie: /Users/Whoever/WebDocuments/...) not really sure why or how to fix it though. I'd have to search back through old tickets to see what other people did to fix it.

BassPlaya’s picture

I have the same problem and that capital letter fix is not working.
I have updated to the latest version (as of now: backup_migrate 7.x-3.0) but it still throws in that error. I don't quite get it because line 318 is actually the end of the file, there's nothing on that line but the closing curly brace. What gives?

Fatal error: Cannot redeclare class backup_migrate_source_db in /Users/Me/Sites/www.d7sandbox.dev/sites/all/modules/backup_migrate/includes/sources.db.inc on line 318
Drush command terminated abnormally due to an unrecoverable error.
Error: Cannot redeclare class backup_migrate_source_db in
/Users/Me/Sites/www.d7sandbox.dev/sites/all/modules/backup_migrate/includes/sources.db.inc, line 318

Hope to find a solution for this because drush is simply too awesome!

Stolzenhain’s picture

I guess the main discussion about this takes part in #1305254: Fatal error: Cannot redeclare class backup_migrate_destination_db .

Should be noted, that my error occurs in line 318 as well, though – due to the new version?

evilehk’s picture

I'm on a mac, and had a capital letter in one of the paths leading up to my docroot. Making that folder all lowercase seemed to have fixed the problem! Thanks, ronan!

couturier’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Sounds like a manual work-around for people on Macs.