Problem/Motivation

Hi, I have:

  • Drupal 10.6.10
  • Flush Single Image Styles 3.0.0
  • Media Entity File Replace 8.x-1.3

I need to regenerate images with the styles after a migration is run. My migration has "image_import" as plugin in the process, not "file_copy":

field_media_image:
    -
      plugin: image_import
      source: '@source_url'
      destination: '@destination_url'
      alt: alt
    -
      plugin: flush_single_image
      action: 'regenerate'

After the first migration, there is this error:
TypeError: Drupal\flush_single_image\FlushSingleImage::flush(): Argument #1 ($path) must be of type string, array given, called in /my-website/docs/web/modules/contrib/flush_single_image/src/Plugin/migrate/process/FlushSingleImage.php on line 112 in Drupal\flush_single_image\FlushSingleImage->flush() (line 66 of /my-website/docs/web/modules/contrib/flush_single_image/src/FlushSingleImage.php).

Can anyone help me?
Thanks.

Ste

Comments

steva1982 created an issue.