After installed the module and uploaded the latest google-api-php-client i get this error on Drupal 10.1.2:

Backend fatal error: PHP Fatal error: Declaration of Drupal\\dblog\\Logger\\DbLog::emergency(Stringable|string $message, array $context = []): void must be compatible with Psr\\Log\\LoggerInterface::emergency($message, array $context = []) in /home/zbqcyuua/domains/mydomain.com/public_html/core/lib/Drupal/Core/Logger/RfcLoggerTrait.php on line 20\n, referer: http://mydomain.com/admin/people/permissions/module/google_api_client

I forgot to write that the status page of Drupal (admin/reports/status) is broken and it returns a white page, if I rename the folder everything goes well.

Comments

smurfxx created an issue. See original summary.

smurfxx’s picture

Issue summary: View changes
keshavv’s picture

@smurfxx Not able to reproduce the issue, Can you please provide the complete log?

smurfxx’s picture

I only have that message on my server console, I didn't install via composer because the site is on a shared server that doesn't support it, so I installed everything manually, copying latest Google API PHP library (2.15.0) via FTP on site_root/libraries/google_api_client

VishalKumarSahu’s picture

The error is basically due to difference in PSR Logger version. The OP may need to update the google API module to be compatible with required PSR Logger version.