Closed (works as designed)
Project:
Backup and Migrate
Version:
7.x-2.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Aug 2012 at 03:17 UTC
Updated:
1 Nov 2013 at 16:08 UTC
Jump to comment: Most recent
Comments
Comment #1
smptebars1 commentedI have this same issue as well/
Notice: rename() [function.rename]: Unable to find the wrapper "private" - did you forget to enable it when you configured PHP? in backup_migrate_update_7200() (line 380 of /home/timemast/public_html/drupal7/sites/all/modules/backup_migrate/backup_migrate.install).
If anyone knows how to resolve this please help
Comment #2
axle_foley00 commentedI think this is because you need to have a Private files directory setup. If you go to Configuration -> Media -> File system and set a directory path for private files, this might solve this issue.
Comment #3
ronan commentedYes this is because in D7 the b&m files are stored in the private file directory, but if you're doing an update from drupal 6 that directory won't exist yet. It's a bit of a chicken and an egg situation as there really isn't a mechanism for B&M's update script to wait until after that setup has been done before transferring the files. The good news is you can always just move the files by hand from your public files directory to your private directory after the update or even leave them where they are if you don't care about them going forward (though for best security practice you should remove them if you don't need them).
Any ideas as to how I can do this upgrade more smoothly would be appreciated.
Comment #4
axle_foley00 commentedYou could probably use Drush to set the private file directory before your run the B&M update script:
drush vset --always-set file_private_path 'sites/default/files/sitename/private'Or write another script that does both the drush command above and also copy the files.
Comment #5
ronan commentedI'm not sure there's much I can do within the module to help with this transition. There are easy enough workarounds and no data is lost though so I'm going to leave this as is.