• <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"类

        Class #39;Google_Client#39; not found(未找到“Google_Client类)
      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"类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Is Joomla 2.5 much faster than Joomla 1.5 Querywise(Joomla 2.5 比 Joomla 1.5 Querywise 快得多吗)
                  How to share Joomla login session from one joomla website to one ASP.Net MVC website(如何将 Joomla 登录会话从一个 joomla 网站共享到一个 ASP.Net MVC 网站)
                  htaccess redirect root to subdirectory but allow index.php in root AND query strings to function(htaccess 将根重定向到子目录,但允许根和查询字符串中的 index.php 起作用)
                  Joomla include database functions(Joomla 包含数据库功能)
                  nl2br() not working when displaying SQL results(显示 SQL 结果时 nl2br() 不起作用)
                  Joomla 2.5 JFactory::getSession(); seems to be caching in firefox(Joomla 2.5 JFactory::getSession();似乎在 Firefox 中缓存)

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

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

                      <tbody id='dHUbV'></tbody>

                      <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'>