Twig\Error\RuntimeError: The "replace" filter expects an array or "Traversable" as replace values, got "string". in twig_replace_filter()

Created on 12 January 2023, almost 2 years ago
Updated 21 February 2024, 10 months ago

Problem/Motivation

Twig error is thrown on the config page due to incorrect parameters for the replace filter in opcache-config.html.twig.

Steps to reproduce

Visit /admin/reports/opcache/config.

Proposed resolution

replace({'_': '-'})

See https://twig.symfony.com/doc/2.x/filters/replace.html

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mortona2k Seattle

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.

Production build 0.71.5 2024