[英]Importing public files - Drupal Upgrade from 7 to 9
I am trying to upgrade Drupal from 7 to 9.我正在尝试将 Drupal 从 7 升级到 9。
When I run the following command to import the public files from D7 site to D9 site:当我运行以下命令将公共文件从 D7 站点导入到 D9 站点时:
drush migrate-import upgrade_d7_file
Output is Output 是
upgrade_d7_file Migration - 1129 failed.
Then I ran然后我跑了
drush mmsg upgrade_d7_file
It says,它说,
upgrade_d7_file:uri: File '//sitesdefault/files//images/test1.jpg' does not exist
Public file system path in source site is源站点中的公共文件系统路径是
sites/default/files/
Not sure why it's removing the frontslash from sites/default and added to the beginning.不知道为什么要从站点/默认值中删除前斜杠并添加到开头。
Any help is highly appreciated.非常感谢任何帮助。 Thanks in advance.提前致谢。
It works now.现在可以了。
I had to add --legacy-root=http://domainname
to the drush migrate-upgrade
command.我必须将--legacy-root=http://domainname
添加到drush migrate-upgrade
命令。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.