Modules Explode and Rewrite do not work together in D8

Created on 26 December 2019, over 5 years ago
Updated 13 October 2023, almost 2 years ago

I tired to import multiple images like here:
https://drupal.stackexchange.com/questions/225669/how-to-import-multiple...

Modules Explode and Rewrite work separately, but do not work together.

After importing I have message:
Client error: `GET http://sitename.com/files/image1.jpg,image2.jpg` resulted in a `404 Not Found` response:

πŸ› Bug report
Status

Active

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine vasyok

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡¦Ukraine vasyok

    Sory it doesn't work.
    If i place Rewrite plugin before Exploding - it write:
    cURL error 3: (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)

  • πŸ‡ΊπŸ‡ΈUnited States damondt

    This should work before or after explode and loop over the array if after. How does tamper normally handle multiple values? Should this be handled in the tamper module and it loop over values if there are multiple?

  • Status changed to Closed: duplicate 5 days ago
  • πŸ‡³πŸ‡±Netherlands megachriz

    This was already reported before in πŸ› Rewrite plugin does not work after Explode Closed: duplicate . However, I just closed that one as a duplicate too because a fix for this issue is now available in a combination of two other issues:

    • πŸ› "Rewrite" plugin doesn't work right Active
      This ensures that the data of previously applied Tamper plugins (thus before the Rewrite plugin) is written back to the item. The Rewrite plugin then finds the most up to date data on the item.
    • ✨ Rewrite plugin: iterate through values to rewrite Needs work
      Among other things, this adds support for arrays for the Rewrite plugin. If your initial source value is for example Foo,Bar,Qux and you explode that using a comma as separator and then use the Rewrite plugin to add a "x" to it, you'll get ["Foox","Barx","Quxx"] instead of ["Foox","Foox","Foox"].
Production build 0.71.5 2024