After migrating from 6.x to 8.x (using Migrate Drupal UI) I receive the follow error at the top of the page when viewing, adding, or updating content.
User error: Invalid placeholder (!tag_styles) in string: The supported tag styles are: !tag_styles. in Drupal\Component\Render\FormattableMarkup::placeholderFormat() (line 233 of core/lib/Drupal/Component/Render/FormattableMarkup.php).
User error: Invalid placeholder (!tags) in string: You can enable syntax highlighting of source code with the following tags: !tags. in Drupal\Component\Render\FormattableMarkup::placeholderFormat() (line 233 of core/lib/Drupal/Component/Render/FormattableMarkup.php).
User error: Invalid placeholder (!tag_styles) in string: The supported tag styles are: !tag_styles. in Drupal\Component\Render\FormattableMarkup::placeholderFormat() (line 233 of core/lib/Drupal/Component/Render/FormattableMarkup.php).
User error: Invalid placeholder (!tags) in string: You can enable syntax highlighting of source code with the following tags: !tags. in Drupal\Component\Render\FormattableMarkup::placeholderFormat() (line 233 of core/lib/Drupal/Component/Render/FormattableMarkup.php).
User error: Invalid placeholder (!tag_styles) in string: The supported tag styles are: !tag_styles. in Drupal\Component\Render\FormattableMarkup::placeholderFormat() (line 233 of core/lib/Drupal/Component/Render/FormattableMarkup.php).
User error: Invalid placeholder (!tags) in string: You can enable syntax highlighting of source code with the following tags: !tags. in Drupal\Component\Render\FormattableMarkup::placeholderFormat() (line 233 of core/lib/Drupal/Component/Render/FormattableMarkup.php).I have the following "additional" modules installed and/or active.
- Mollom
- GeSHi
- Google Analytics
- Libraries
I can't recall seeing any errors during the migration but I could be wrong.
What are the steps required to reproduce the bug?
Perform a migration from 6.x to 8.x
What behavior were you expecting?
No errors on the destination site.
What happened instead?
Above errors appear.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | geshi-filter-placeholders-2786665-4.patch | 5.06 KB | duellj |
Comments
Comment #2
cilefen commentedA module you are using is using the "!" symbol as a placeholder, which is no longer supported. Search your codebase for "tag_styles" and you will find the culprit.
Comment #3
cilefen commentedComment #4
duellj commentedThe bulk of this issue has been fixed in #2612112, but there is a couple outstanding issues:
1.
<code>tags are getting escaped when passed throught()calls2. There's still instances of
!variableusage in the long form of the GeshiFilter tipsThe attached patch fixes all instances
!variableusage, and properly allows HTML code through tot()by passing the appropriate parameters throughMarkupComment #6
yukare commentedCommited to git, thanks.
I will do a new release this weekend with this and other fixes.