Active
Project:
Google API PHP Client
Version:
8.x-4.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Aug 2023 at 09:43 UTC
Updated:
20 Nov 2023 at 05:49 UTC
Jump to comment: Most recent
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
Comment #2
smurfxx commentedComment #3
keshavv commented@smurfxx Not able to reproduce the issue, Can you please provide the complete log?
Comment #4
smurfxx commentedI 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
Comment #5
VishalKumarSahu commentedThe 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.