Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
ronan CreditAttribution: ronan commentedAre 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.
Comment #2
BassPlaya CreditAttribution: BassPlaya commentedI 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?
Hope to find a solution for this because drush is simply too awesome!
Comment #3
Stolzenhain CreditAttribution: Stolzenhain commentedI 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?
Comment #4
evilehk CreditAttribution: evilehk commentedI'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!
Comment #5
couturier CreditAttribution: couturier as a volunteer commentedSounds like a manual work-around for people on Macs.