I received the following warning during an upgrade from D6 to D7 test on my localhost. So far it doesn't seem to be causing any issue, but I have no clue what the warning is telling me in order to think out any implications it may have downline.

Warning: rename() [function.rename]: Cannot rename a file across wrapper types in backup_migrate_update_7200() (line 380 of ...\sites\all\modules\backup_migrate\backup_migrate.install).

Anyone else run into this and have any problems?

Comments

smptebars1’s picture

I 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

axle_foley00’s picture

I 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.

ronan’s picture

Status: Active » Postponed (maintainer needs more info)

Yes 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.

axle_foley00’s picture

You 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.

ronan’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (works as designed)

I'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.