douwen3836 2015-10-21 12:29
浏览 26

Google PHP API库需要openssl PHP扩展[关闭]

Trying to make google sign in in localhost , using xampp server.

gives an error

Fatal error: Uncaught exception 'Google_Exception' with message 'The Google PHP API library needs the openssl PHP extension' in C:\xampp\htdocs\test\vendor\Signer\P12.php:38 Stack trace: #0 C:\xampp\htdocs\test\vendor\Auth\AssertionCredentials.php(130): Google_Signer_P12->__construct('0??????0?????*?...', 'notasecret') #1 C:\xampp\htdocs\test\vendor\Auth\AssertionCredentials.php(107): Google_Auth_AssertionCredentials->makeSignedJwt(Array) #2 C:\xampp\htdocs\test\vendor\Auth\OAuth2.php(312): Google_Auth_AssertionCredentials->generateAssertion() #3 C:\xampp\htdocs\test\vendor\Auth\OAuth2.php(239): Google_Auth_OAuth2->refreshTokenWithAssertion() #4 C:\xampp\htdocs\test\vendor\Auth\OAuth2.php(75): Google_Auth_OAuth2->sign(Object(Google_Http_Request)) #5 C:\xampp\htdocs\test\vendor\RpcHelper.php(69): Google_Auth_OAuth2->authenticatedRequest(Object(Google_Http_Request)) #6 C:\xampp\htdocs\test\vendor\GitkitClient.php(337): Gitkit_RpcHelper->getGitkitCerts() #7 C:\xampp\htdocs\test\vendor\GitkitClient.php(124): Gitkit_Client->ge in C:\xampp\htdocs\test\vendor\Signer\P12.php on line 38

  • 写回答

2条回答 默认 最新

  • doucheng9304 2015-10-21 12:30
    关注

    To enable OpenSSL in XAMPP you have to edit your php.ini and remove the semicolon to:

    ;extension=php_openssl.dll
    

    Restart you apache after saving the php.ini.

    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度