Invalid placeholder warning when rollback fails

Created on 30 January 2025, about 1 month ago

Problem/Motivation

When I try to roll back a migration through the UI, and the rollback fails, I am getting the following error:

User warning: Placeholders must begin with one of the following "@", ":" or "%", invalid placeholder (!name) with string: "Rollback of !name migration failed." in Drupal\Component\Render\FormattableMarkup::placeholderFormat() (line 247 of core/lib/Drupal/Component/Render/FormattableMarkup.php).

The ! placeholder is a remnant from Drupal 7, this was removed in Drupal 8. Starting with Drupal 8.2 a deprecation warning has been emitted for these placeholders (see #2807705: FormattableMarkup::placeholderFormat() can result in unsafe replacements ) and starting with Drupal 10 this deprecation warning has become a user warning (ref #3295625: Remove deprecated code from FormattableMarkup ).

🐛 Bug report
Status

Active

Version

6.0

Component

Code

Created by

🇧🇬Bulgaria pfrenssen Sofia

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

Comments & Activities

Production build 0.71.5 2024