Stumbled onto this one when running migrations:

Error: Cannot use object of type Drupal\Core\StringTranslation\TranslatableMarkup as array in Drupal\jsonlog\Logger\JsonLogData->setMessage() (line 96 of /modules/contrib/jsonlog/src/Logger/JsonLogData.php).

The error that was logged to dblog right before this one was:
"Did not save to map table due to NULL value for key field tid". I assume this is the log that makes Jsonlog throw the error.

Comments

robindh created an issue. See original summary.

lorenzs’s picture

Version: 8.x-1.1 » 8.x-1.x-dev
Assigned: Unassigned » lorenzs
Status: Active » Needs review

Allthough the LoggerInterface is not expecting Drupal's TranslatableMarkup but plain strings I've built in a check in case it is.

  • lorenzs committed 140f338 on 8.x-1.x
    Issue #3020527 by lorenzs, robindh: support translatable strings as...
lorenzs’s picture

Version: 8.x-1.x-dev » 8.x-1.2
Status: Needs review » Fixed

In release 8.x-1.2

Status: Fixed » Closed (fixed)

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