Recoverable fatal error: Object of class Drupal\Core\Session\AccountProxy could not be converted to string in Drupal\loggable\Logger\Loggable->log() (line 138 of /app/web/modules/contrib/loggable/src/Logger/Loggable.php)

Occurs when the $context in Loggable::log() contains a non-string value when it's passed in to strtr() to generate the message text.

This may affect D7 as well.

Comments

mstef created an issue. See original summary.

mstef’s picture

Title: Recoverable fatal error: Object of class Drupal\Core\Session\AccountProxy could not be converted to string in Drupal\loggable\Logger\Loggable->log() (line 138 of /app/web/modules/contrib/loggable/src/Logger/Loggable.php) » Recoverable fatal error: Object of class Drupal\Core\Session\AccountProxy could not be converted to string in Drupal\loggable\Logger\Loggable->log() (line 138 of loggable/src/Logger/Loggable.php)

  • mstef committed 9b1f245 on 8.x-1.x
    Issue #2975189: Recoverable fatal error: Object of class Drupal\Core\...
mstef’s picture

Status: Active » Fixed

7.x-1.x looks fine without any changes.

Status: Fixed » Closed (fixed)

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