Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've installated lastest dev version and configured correctly (my config works fine with Simple FB connect), but if I go to login page /user/login/facebook it returns:
TypeError: Argument 7 passed to Drupal\social_auth_facebook\Plugin\Network\FacebookAuth::__construct() must be an instance of Drupal\Core\Logger\LoggerChannelFactory, instance of Drupal\redirect_404\Render\Redirect404LogSuppressor given, called in /var/www/teatro.it/modules/contrib/social_auth_facebook/src/Plugin/Network/FacebookAuth.php on line 59 in Drupal\social_auth_facebook\Plugin\Network\FacebookAuth->__construct() (line 81 of modules/contrib/social_auth_facebook/src/Plugin/Network/FacebookAuth.php).
Comment | File | Size | Author |
---|---|---|---|
#3 | fatal_error_in_route-2856632-3.patch | 1.17 KB | Znak |
Comments
Comment #2
gvsoI think the issue happens because the constructor expects the LoggerChannelFactory object, and the logger object passed to it seems to be a customized one. Could you please test if changing LoggerChannelFactory to LoggerChannelFactoryInterface fixes the issue?
Comment #3
Znak CreditAttribution: Znak commentedComment #4
csedax90 CreditAttribution: csedax90 commentedpatch #3 solves the problem
Comment #5
gvsoAn issue is usually considered fixed when the changes has been applied to the repository. Changing to RTBC
Comment #7
gvsoThanks!
Comment #9
Dave ReidI think this should be changed to just use \Psr\Log\LoggerInterface instead of the logger channel factory, unless there's a specific need to have the factory instead of the logger itself.
Comment #10
gvsoI don't think there's a need to have the factory itself, but I guess loggers would implement ChannelFactoryInterface since it's the interface provided by core.
Is there a page where \Psr\Log\LoggerInterface is recommended or any core modules that use it?