We encounter this error while writing information to the log, when while saving the workflow with some error messages.

TypeError: strtr(): Argument #1 ($string) must be of type string, Drupal\Core\StringTranslation\TranslatableMarkup given in strtr() (line 78 of /var/www/html/vendor/drush/drush/src/Log/DrushLog.php).

Issue fork workflow-3495308

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

alex_optim created an issue. See original summary.

alex_optim’s picture

Title: TypeError: strtr(): Argument #1 ($string) must be of type string, Drupal\Core\StringTranslation\TranslatableMarkup given in strtr() » TypeError: strtr(): Argument #1 ($string) must be of type string

alex_optim changed the visibility of the branch 3495308- to hidden.

  • johnv committed 42705cd8 on 8.x-1.x
    Issue #3495308: TypeError: strtr(): Argument #1 ($string) must be of...
johnv’s picture

Version: 8.x-1.x-dev » 8.x-1.8
Component: Workflow Notifications » Code
Status: Active » Fixed

Thanks. I solved it in another way. Comparing with other logError() calls, the message should not have been translated in the first place.

Status: Fixed » Closed (fixed)

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