• <small id='h8cPk'></small><noframes id='h8cPk'>

    <tfoot id='h8cPk'></tfoot>
    <i id='h8cPk'><tr id='h8cPk'><dt id='h8cPk'><q id='h8cPk'><span id='h8cPk'><b id='h8cPk'><form id='h8cPk'><ins id='h8cPk'></ins><ul id='h8cPk'></ul><sub id='h8cPk'></sub></form><legend id='h8cPk'></legend><bdo id='h8cPk'><pre id='h8cPk'><center id='h8cPk'></center></pre></bdo></b><th id='h8cPk'></th></span></q></dt></tr></i><div id='h8cPk'><tfoot id='h8cPk'></tfoot><dl id='h8cPk'><fieldset id='h8cPk'></fieldset></dl></div>

      1. <legend id='h8cPk'><style id='h8cPk'><dir id='h8cPk'><q id='h8cPk'></q></dir></style></legend>

          <bdo id='h8cPk'></bdo><ul id='h8cPk'></ul>

        未找到“Google_Client"类

        时间:2023-10-16
      2. <i id='2vMAQ'><tr id='2vMAQ'><dt id='2vMAQ'><q id='2vMAQ'><span id='2vMAQ'><b id='2vMAQ'><form id='2vMAQ'><ins id='2vMAQ'></ins><ul id='2vMAQ'></ul><sub id='2vMAQ'></sub></form><legend id='2vMAQ'></legend><bdo id='2vMAQ'><pre id='2vMAQ'><center id='2vMAQ'></center></pre></bdo></b><th id='2vMAQ'></th></span></q></dt></tr></i><div id='2vMAQ'><tfoot id='2vMAQ'></tfoot><dl id='2vMAQ'><fieldset id='2vMAQ'></fieldset></dl></div>

            <small id='2vMAQ'></small><noframes id='2vMAQ'>

              <bdo id='2vMAQ'></bdo><ul id='2vMAQ'></ul>

                  <legend id='2vMAQ'><style id='2vMAQ'><dir id='2vMAQ'><q id='2vMAQ'></q></dir></style></legend>
                  <tfoot id='2vMAQ'></tfoot>
                    <tbody id='2vMAQ'></tbody>
                  本文介绍了未找到“Google_Client"类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我创建了一个组件:

                  <?php
                      namespace commoncomponents;
                      use Google_Client;
                      use Google_Service_Gmail;
                      use Yii;
                      use yiiaseErrorException;
                      use yiihelpersArrayHelper;
                      use yiiaseComponent;
                  
                      use yii
                  estActiveController;
                      use linslinyii2curl;
                  
                  
                  
                      class SocialLogin extends Component {
                        public $GOOGLE_CLIENT_ID;
                        public $FACEBOOK_CLIENT_ID;
                        public $GOOGLE_CLIENT_ID_IOS;
                  
                  
                  
                  
                        public function getGoogleUser($id_token,$device)
                        {
                              $clientID=$this->GOOGLE_CLIENT_ID;
                  
                              if($device=="ios")
                              $clientID=$this->GOOGLE_CLIENT_ID_IOS;
                  
                              $client = new Google_Client(['client_id' => $clientID]);
                              $payload = $client->verifyIdToken($id_token);
                              if ($payload) {
                                      // my code
                              }
                  
                          }    
                  
                     }
                  

                  它在本地运行良好,但在实时服务器上我收到以下错误:

                  Its working fine on local but on live server i'm getting following error :

                  message": "未找到类 'Google_Client'",

                  message": "Class 'Google_Client' not found",

                  会出现什么问题?

                  推荐答案

                  我已经解决了这个问题.问题是 PHP 版本,我的本地机器上是 PHP 7,服务器上是 5.6 然后我更新了 PHP 版本,所有问题都消失了.

                  I have solved the issue. The issue was PHP version, it was PHP 7 on my local machine and on server it was 5.6 then I have updated the PHP version and all problems are gone.

                  这篇关于未找到“Google_Client"类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Yii2:注册资产包与注册外部 Js 文件 下一篇:ActiveRecord 批量插入 (yii2)

                  相关文章

                1. <legend id='dHUbV'><style id='dHUbV'><dir id='dHUbV'><q id='dHUbV'></q></dir></style></legend>

                  <tfoot id='dHUbV'></tfoot>

                      <bdo id='dHUbV'></bdo><ul id='dHUbV'></ul>
                    <i id='dHUbV'><tr id='dHUbV'><dt id='dHUbV'><q id='dHUbV'><span id='dHUbV'><b id='dHUbV'><form id='dHUbV'><ins id='dHUbV'></ins><ul id='dHUbV'></ul><sub id='dHUbV'></sub></form><legend id='dHUbV'></legend><bdo id='dHUbV'><pre id='dHUbV'><center id='dHUbV'></center></pre></bdo></b><th id='dHUbV'></th></span></q></dt></tr></i><div id='dHUbV'><tfoot id='dHUbV'></tfoot><dl id='dHUbV'><fieldset id='dHUbV'></fieldset></dl></div>

                    1. <small id='dHUbV'></small><noframes id='dHUbV'>