- Issue created by @pierrelbz
- 🇫🇷France pierrelbz Paris
pierrelbz → changed the visibility of the branch 3421398-realpath-to-get to hidden.
I use S3 filesystem (s3://...) and the asset/media folder is empty or an error occurred
I found the same issue/resolution in webform module : https://www.drupal.org/project/webform/issues/3084045 →
With https://www.drupal.org/project/s3fs → installed & configured
drush content:synchronizer-export-entity node 1885
result :
an error occurred :
Error: Path cannot be empty in /app/public/web/modules/contrib/content_synchronizer/src/Service/ContentSynchronizerManager.php on line 353 #0 /app/public/web/modules/contrib/content_synchronizer/src/Service/ContentSynchronizerManager.php(353): copy()...
in src/Plugin/content_synchronizer/entity_processor/FileProcessor.php line 127
$this->fileSystem->copy($this->fileSystem->realpath($file->getFileUri()), $destination);
replace by :
// File URIs that are not supportted return FALSE, when this happens
// still use the file's URI as the file's path.
$source = $this->fileSystem->realpath($file->getFileUri()) ?: $file->getFileUri();
// Copy file in destination directory.
$this->fileSystem->copy($source, $destination);
Active
4.0
Code
pierrelbz → changed the visibility of the branch 3421398-realpath-to-get to hidden.