尝试登录Facebook时遇到问题: TypeError:传递给League \ OAuth2 \ Client \ Provider \ AbstractProvider :: getResourceOwner()的参数1必须是League \ OAuth2 \ Client \ Token \ AccessToken的实例,给定为null,在/ var / www / html / modules / contrib中调用/social_auth_facebook/src/FacebookAuthManager.php,位于League \ OAuth2 \ Client \ Provider \ AbstractProvider-> getResourceOwner()中的第53行(/ var / www / html / vendor / league / oauth2-client / src / Provider / AbstractProvider的765行.php)#0 /var/www/html/modules/contrib/social_auth_facebook/src/FacebookAuthManager.php(53):League \ OAuth2 \ Client \ Provider \ AbstractProvider-> getResourceOwner(NULL)#1 / var / www / html /modules/contrib/social_auth/src/Controller/OAuth2ControllerBase.php(253):Drupal \ social_auth_facebook \ FacebookAuthManager-> getUserInfo()#2 /var/www/html/modules/contrib/social_auth_facebook/src/Controller/FacebookAuthController.php (80):Drupal \ social_auth \ Controller \ OAuth2ControllerBase-> processCallback()#3 [内部功能]:Drupal \ social_auth_facebook \ Controller \ FacebookAuthControll er-> callback()#4 /var/www/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123):call_user_func_array(Array,Array)#5 / var / www / html / html / core / lib /Drupal/Core/Render/Renderer.php(582):Drupal \ Core \ EventSubscriber \ EarlyRenderingControllerWrapperSubscriber-> Drupal \ Core \ EventSubscriber {closure}()#6 / var / www / html / core / lib / Drupal / Core / EventSubscriber / EarlyRenderingControllerWrapperSubscriber.php(124):Drupal \ Core \ Render \ Renderer-> executeInRenderContext(Object(Drupal \ Core \ Render \ RenderContext),Object(Closure))#7 / var / www / html / core / lib / Drupal /Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97):Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array,Array)#8 / var / www / html / vendor / symfony / http-kernel / HttpKernel。 :Drupal \ Core \ EventSubscriber \ EarlyRenderingControllerWrapperSubscriber-> Drupal \ Core \ EventSubscriber {closure}()#9 / var / www / html / vendor / symfony / http-kernel / HttpK ernel.php(68):Symfony \ Component \ HttpKernel \ HttpKernel-> handleRaw(Object(Symfony \ Component \ HttpFoundation \ Request),1)#10 / var / www / html / core / lib / Drupal / Core / StackMiddleware / Session.php(57):Symfony \ Component \ HttpKernel \ HttpKernel-> handle(Object(Symfony \ Component \ HttpFoundation \ Request),1,true)#11 / var / www / html / core / lib / Drupal / Core / StackMiddleware / KernelPreHandle.php(47):Drupal \ Core \ StackMiddleware \ Session-> handle(Object(Symfony \ Component \ HttpFoundation \ Request),1,true)#12 / var / www / html / core / modules / page_cache / src / StackMiddleware / PageCache.php(106):Drupal \ Core \ StackMiddleware \ KernelPreHandle-> handle(Object(Symfony \ Component \ HttpFoundation \ Request),1,true)#13 / var / www / html / core / modules / page_cache / src / StackMiddleware / PageCache.php(85):Drupal \ page_cache \ StackMiddleware \ PageCache-> pass(Object(Symfony \ Component \ HttpFoundation \ Request),1,true)#14 / var / www / html / core / lib / Drupal / Core / StackMiddleware / ReverseProxyMiddleware.php(47):Drupal \ page_cache \ StackMiddleware \ PageCache-> hand le(Object(Symfony \ Component \ HttpFoundation \ Request),1,true)#15 /var/www/html/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52):Drupal \ Core \ StackMiddleware \ ReverseProxyMiddleware -> handle(Object(Symfony \ Component \ HttpFoundation \ Request),1,true)#16 /var/www/html/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23):Drupal \ Core \ StackMiddleware \ NegotiationMiddleware-> handle(Object(Symfony \ Component \ HttpFoundation \ Request),1,true)#17 /var/www/html/core/lib/Drupal/Core/DrupalKernel.php(693):Stack \ StackedHttpKernel-> handle(Object(Symfony \ Component \ HttpFoundation \ Request),1,true)#18 /var/www/html/index.php(19):Drupal \ Core \ DrupalKernel-> handle(Object(Symfony \ Component \ HttpFoundation \请求))#19 {main}。
有人可以帮助我吗?
drupal / social_api,drupal / social_auth,drupal / social_auth_facebook,联赛/ oauth2-client
答案 0 :(得分:0)
我已将所有库更新为dev,但问题仍然存在
TypeError:传递给League \ OAuth2 \ Client \ Provider \ AbstractProvider :: getResourceOwner()的参数1必须是League \ OAuth2 \ Client \ Token \ AccessToken的实例,给出的值为null,在/ var / www / html /中调用在League \ OAuth2 \ Client \ Provider \ AbstractProvider-> getResourceOwner()中的第53行上的modules / contrib / social_auth_facebook / src / FacebookAuthManager.php