Recurly watchdog messages are causing a fatal error on /admin/reports/dblog

Created on 11 December 2023, 7 months ago
Updated 11 April 2024, 3 months ago

on /admin/reports/dblog I'm getting a fatal error if there is a watchdog message from recurly.

The website encountered an unexpected error. Please try again later.
TypeError: htmlspecialchars(): Argument #1 ($string) must be of type string, Drupal\Core\Url given in htmlspecialchars() (line 432 of core/lib/Drupal/Component/Utility/Html.php).

htmlspecialchars(Object, 11, 'UTF-8') (Line: 432)
Drupal\Component\Utility\Html::escape(Object) (Line: 270)
Drupal\Component\Render\FormattableMarkup::placeholderEscape(Object) (Line: 216)
Drupal\Component\Render\FormattableMarkup::placeholderFormat('Account information could not be sent to Recurly, could not load the Recurly_Account object while trying to update <a href="@url">@title</a> with the values @values.', Array) (Line: 99)
Drupal\Component\Render\FormattableMarkup->__toString() (Line: 1247)
Drupal\views\Plugin\views\field\FieldPluginBase->renderText(Array) (Line: 1186)
Drupal\views\Plugin\views\field\FieldPluginBase->advancedRender(Object) (Line: 238)

I believe the variables in the error messages that have $entity->toUrl() need to be $entity->toUrl()->toString() This occurs a few times throughout the module.

πŸ› Bug report
Status

Fixed

Version

5.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States loze

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024