Full error message:

TypeError: strtr(): Argument #1 ($string) must be of type string, Drupal\Core\StringTranslation\TranslatableMarkup given in strtr() (line 31 of core/lib/Drupal/Core/Command/DrupalConsoleLogger.php).

I recently upgraded a site to Drupal 11.4.4 from Drupal 11.3.13. I'm running focal_point version 2.1.2. I have a separate site that is running the exact same version of core and focal_point with no problems. But for some reason on this new site every single page is throwing this error. This was only happening when logged in, apparently by some link in the admin toolbar based on the stack trace but I can't figure out which one for the life of me.

I tried to replicate the issue on another site and couldn't. All the same, I'll create a merge request to fix the problem for your review.

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

jaydarnell created an issue. See original summary.

yusuf_khan’s picture

Status: Active » Reviewed & tested by the community

@jaydarnell
I Have tested on my local , Typeerror is resolve

markconroy’s picture

Version: 2.1.2 » 2.x-dev

Updating version to patch against.

luigisa’s picture

I´ve tested on my local and it´s oks

rajeshreeputra made their first commit to this issue’s fork.

rajeshreeputra’s picture

Status: Reviewed & tested by the community » Fixed

Added to merge train!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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