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.

Comments

solmm created an issue. See original summary.

cilefen’s picture

A 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.

cilefen’s picture

Title: Issues after migrating from 6 » Invalid placeholder (!tag_styles) in string
Project: Drupal core » GeSHi Filter for syntax highlighting
Version: 8.1.8 » 8.x-1.x-dev
Component: taxonomy.module » Code
Issue tags: -migrate-d6-d8, -taxonomy, -GeSHi Filter
duellj’s picture

StatusFileSize
new5.06 KB

The bulk of this issue has been fixed in #2612112, but there is a couple outstanding issues:

1. <code> tags are getting escaped when passed through t() calls
2. There's still instances of !variable usage in the long form of the GeshiFilter tips

The attached patch fixes all instances !variable usage, and properly allows HTML code through to t() by passing the appropriate parameters through Markup

  • yukare committed 52388ca on 8.x-1.x authored by duellj
    Issue #2786665 by duellj: Invalid placeholder (!tag_styles) in string
    
yukare’s picture

Status: Active » Fixed

Commited to git, thanks.

I will do a new release this weekend with this and other fixes.

Status: Fixed » Closed (fixed)

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