Download & Extend

backup_migrate_include shoudnt be used in .install

Project:Backup and Migrate
Version:7.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Upgrading from D6 to D7, following the upgrade steps gives me the following error:

Error: Call to undefined function backup_migrate_include() in
/Users/x/Sites/d7/sites/all/modules/backup_migrate/backup_migrate.install, line 189
Output from failed command :                                                                                                [error]

Fatal error: Call to undefined function backup_migrate_include() in
/Users/x/Sites/d7/sites/all/modules/backup_migrate/backup_migrate.install on line 189

I'm not 100% on this, but I dont think you can count on the .module file being loaded during the module installation.

Patch in first comment.

Comments

#1

Status:active» needs review
AttachmentSize
backup_migrate-n1102182.patch 946 bytes

#2

I'm not 100% on this, but I dont think you can count on the .module file being loaded during the module installation.

Re-reading the OP, jeez, I sounded awfully sarcastic there. Sorry for that. I promise any perceived edginess to this issue was not intended :P

#3

Status:needs review» fixed

One day I'll understand the black magic behind why the module code is sometimes available during update and sometimes it isn't. In the mean time, patch applied and commited. Thanks

#4

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.