I've managed to import a few D7 sites using migrate_d2d_ui and now need to import one with private files. I cannot find the right settings. I have copied the files to the server and set the path in the wizard (/home/cluster-sites/25/openit4u.com/pershorefiles/)

I get the messages like this when I run the File import:
The specified file /home/cluster-sites/25/openit4u.com/pershorefiles/private://media/2011-12-03 11.40.31.jpg could not be copied to private://media/2011-12-03 11.40.31.jpg/2011-12-03 11.40.31.jpg.

I seem to have private:// inserted between the source path and the file name, and the filename repeated in the destination.

I've tried various settings and cannot seem to get this working.

Attached is a screenshot of the File import settings.

I'd really appreciate some guidance on what I need to change in these settings to get the paths right.

CommentFileSizeAuthor
Screenshot from 2014-06-21 08:49:47.png197.43 KBmatt b

Comments

matt b’s picture

So I've removed the 'private://' from the source path by hacking modules_d2d/d7/files.inc and changing the fixUri function to:

  protected function fixUri($uri) {
    $result = str_replace('public://', '', $uri);
    $result = str_replace('private://', '', $uri);
    return $result;
  }
matt b’s picture

Status: Active » Closed (won't fix)

I've given up with the migrate module and found success using Feeds and Feeds Tamper instead.