Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Any export returns a malformed image URL. The node imports but the image does not and the rest of the import aborts.
This is what I get:
'node_export_file_url' => 'http://stage.knowledgeavatars.com/public%3A//neurons51.jpg',
It should be:
'node_export_file_url' => 'http://stage.knowledgeavatars.com/sites/default/files/IMG_2224.JPG',
Comment | File | Size | Author |
---|---|---|---|
#2 | node_export-malformed-image-url-2191405-2.patch | 578 bytes | fabianderijk |
Comments
Comment #1
selvakumar CreditAttribution: selvakumar commentedTry to use image_create_url instead of url in node_export.module file: Line 1052
// Remote export mode
elseif ($export_mode == 'remote') {
$export_data = file_create_url($file->uri, array('absolute' => TRUE));
}
Comment #2
fabianderijkI've tested this, and it worked for me. I've added a patch for this as well to make it easier for the maintainers.
I would also not mind to be maintainer on this module to see if/what we can do to make it even better.
Comment #3
danielb CreditAttribution: danielb commentedhttps://drupal.org/node/2046431