Problem/Motivation

The "replace" filter expects an array or "Traversable" as replace values, got "string". in twig_replace_filter() (line 33 of modules/contrib/drowl_paragraphs/modules/drowl_paragraphs_types/templates/paragraph--drowl-paragraphs-types--link-intext.html.twig).

https://twig.symfony.com/doc/3.x/filters/replace.html expects an array.

Steps to reproduce

Use Drupal 9 and link paragraph type.

Proposed resolution

https://twig.symfony.com/doc/3.x/filters/replace.html Use array notation.

Remaining tasks

Fix in 3.x
Fix in 4.x

User interface changes

None

API changes

None

Data model changes

None

Comments

Anybody created an issue. See original summary.

anybody’s picture

Issue summary: View changes

  • Anybody committed 0110953 on 8.x-3.x
    Issue #3205638 by Anybody: The "replace" filter expects an array or "...

  • Anybody committed e4441ba on 4.x
    Issue #3205638 by Anybody: The "replace" filter expects an array or "...
anybody’s picture

Status: Active » Fixed

Fixed in latest dev and stable release!

Twig 2.x compatibility.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.