TranslatableMarkup vs Rollbar\DataBuilder::getCustomForPayload()

Created on 20 June 2024, 3 months ago
Updated 4 July 2024, 3 months ago

Problem/Motivation

When a module logs not a string, but TranslatableMarkup, you get this error:

TypeError: Rollbar\DataBuilder::getCustomForPayload(): Argument #1 ($toLog) must be of type Throwable|string, Drupal\Core\StringTranslation\TranslatableMarkup given, called in /var/www/html/vendor/rollbar/rollbar/src/DataBuilder.php on line 382

🐛 Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

🇰🇬Kyrgyzstan elaman

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024