token_scan() throws warnings if given something other than string.

Created on 21 February 2013, about 12 years ago
Updated 15 April 2025, 11 days ago

How do I track this down:

Warning: preg_match_all() expects parameter 2 to be string, array given in token_scan() (line 124 of C:\wamp\www\Core7\includes\token.inc).
πŸ› Bug report
Status

Closed: outdated

Version

7.0 ⚰️

Component

token system

Created by

πŸ‡ΊπŸ‡ΈUnited States NancyDru Boston

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

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.

  • πŸ‡¦πŸ‡ΊAustralia geoffreyr Sydney, AU / Gadigal country

    Given that Drupal 7 has now reached its End Of Life β†’ , this issue should be closed.

    Thanks for all your hard work on this one. @joshmiller's patch in #28 is probably the approach you want to take to resolve this for your D7 sites, and can probably be managed within your codebases via Composer or Drush Patchfile, but it won't be merged into the Drupal 7 codebase.
    This issue no longer applies in Drupal 8+ due to \Drupal\Core\Utility\Token::scan() being strongly typed.

Production build 0.71.5 2024