久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  1. <tfoot id='pGKCL'></tfoot>
    <i id='pGKCL'><tr id='pGKCL'><dt id='pGKCL'><q id='pGKCL'><span id='pGKCL'><b id='pGKCL'><form id='pGKCL'><ins id='pGKCL'></ins><ul id='pGKCL'></ul><sub id='pGKCL'></sub></form><legend id='pGKCL'></legend><bdo id='pGKCL'><pre id='pGKCL'><center id='pGKCL'></center></pre></bdo></b><th id='pGKCL'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='pGKCL'><tfoot id='pGKCL'></tfoot><dl id='pGKCL'><fieldset id='pGKCL'></fieldset></dl></div>

      <bdo id='pGKCL'></bdo><ul id='pGKCL'></ul>
  2. <legend id='pGKCL'><style id='pGKCL'><dir id='pGKCL'><q id='pGKCL'></q></dir></style></legend>
    1. <small id='pGKCL'></small><noframes id='pGKCL'>

      實(shí)現(xiàn) Oauth2 登錄,致命錯誤:找不到“Google_Servic

      Implementing Oauth2 login, Fatal error: Class #39;Google_Service#39; not found(實(shí)現(xiàn) Oauth2 登錄,致命錯誤:找不到“Google_Service類)
        <tbody id='7G3Qi'></tbody>
        <bdo id='7G3Qi'></bdo><ul id='7G3Qi'></ul>

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

              <legend id='7G3Qi'><style id='7G3Qi'><dir id='7G3Qi'><q id='7G3Qi'></q></dir></style></legend>

              <small id='7G3Qi'></small><noframes id='7G3Qi'>

                <tfoot id='7G3Qi'></tfoot>

                本文介紹了實(shí)現(xiàn) Oauth2 登錄,致命錯誤:找不到“Google_Service"類的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                我正在將我網(wǎng)站的登錄系統(tǒng)從 LightOpenID 更新為 Google 的 Oauth 2.0.

                I am updating my website's login system from LightOpenID to Google's Oauth 2.0.

                當(dāng)我需要 Client.php 和 Service/Oauth2.php 時出現(xiàn)錯誤

                When I require the Client.php and the Service/Oauth2.php I get an error

                致命錯誤:在第 32 行的/home/myname/repos/website_current/lib/google-api-php-client/src/Google/Service/Oauth2.php 中找不到Google_Service"類

                Fatal error: Class 'Google_Service' not found in /home/myname/repos/website_current/lib/google-api-php-client/src/Google/Service/Oauth2.php on line 32

                我使用的代碼(來自我的 login.php 文件)看起來像這樣

                The code I am using (from my login.php file) looks like this

                require_once(dirname($_SERVER['DOCUMENT_ROOT']).'/lib/autoload.php');
                require('Google/Client.php');
                require('Google/Service/Oauth2.php');
                echo "exit";
                exit();
                

                我在 PHP.ini(在/etc/php5/apache2/php.ini 中)添加了包含路徑

                I have added the include path in the PHP.ini (in /etc/php5/apache2/php.ini) as

                include_path = ".:/usr/local/lib/php:/home/myname/repos/website_current/lib/google-api-php-client/src"
                

                所以它似乎我的 Oauth2.php 文件看不到任何其他包含,包括類Google_Service",它是Service.php"中的一個文件夾.

                So its seems my Oauth2.php file can't see any of the other includes including the class 'Google_Service' which is one folder up in 'Service.php'.

                我的文件夾結(jié)構(gòu)如下:

                lib/
                ... autoload.php
                ... functions.php
                ... google-api-php-client/
                    ... src/
                        ... Google/ (etc etc)
                public_html/
                ... login/
                    ...login.php
                

                我不知道為什么會發(fā)生這種情況.應(yīng)該可以看到包含路徑,并使用 phpinfo() 顯示為包含路徑;有人可以給我一些見解嗎?

                I have no idea why this is occuring. The include path should be seen, and shows up as an included path using phpinfo(); Can someone please give me some insight?

                推薦答案

                確保您在任何其他 Googlerequire_once"行BEFORE之前添加該行.

                Make sure you add the line BEFORE any other Google "require_once" lines.

                require_once 'google-api-php-client/autoload.php';
                

                我最后吃了它,它讓我撓了 10 分鐘.

                I had it last and it had me scratching my head for a good 10 minutes.

                這篇關(guān)于實(shí)現(xiàn) Oauth2 登錄,致命錯誤:找不到“Google_Service"類的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                相關(guān)文檔推薦

                Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動游標(biāo)不起作用)
                PHP PDO ODBC connection(PHP PDO ODBC 連接)
                Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術(shù)方法)
                php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個值;等于變量的值)
                MSSQL PDO could not find driver(MSSQL PDO 找不到驅(qū)動程序)

                <small id='x2EwA'></small><noframes id='x2EwA'>

                    <tbody id='x2EwA'></tbody>
                • <legend id='x2EwA'><style id='x2EwA'><dir id='x2EwA'><q id='x2EwA'></q></dir></style></legend>
                      • <bdo id='x2EwA'></bdo><ul id='x2EwA'></ul>

                        <i id='x2EwA'><tr id='x2EwA'><dt id='x2EwA'><q id='x2EwA'><span id='x2EwA'><b id='x2EwA'><form id='x2EwA'><ins id='x2EwA'></ins><ul id='x2EwA'></ul><sub id='x2EwA'></sub></form><legend id='x2EwA'></legend><bdo id='x2EwA'><pre id='x2EwA'><center id='x2EwA'></center></pre></bdo></b><th id='x2EwA'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='x2EwA'><tfoot id='x2EwA'></tfoot><dl id='x2EwA'><fieldset id='x2EwA'></fieldset></dl></div>
                        1. <tfoot id='x2EwA'></tfoot>
                          主站蜘蛛池模板: 日韩精品在线视频免费观看 | 国产欧美一区二区精品忘忧草 | 亚洲三区视频 | 91精品国产综合久久婷婷香蕉 | 亚洲精品电影在线 | 中文精品一区二区 | 欧美日韩在线免费观看 | 久久久久久久久久久久一区二区 | 成人h动漫精品一区二区器材 | 毛片在线免费 | 97免费在线观看视频 | 日韩在线 | 亚洲国产视频一区二区 | 婷婷在线免费 | 亚洲成人精品国产 | 中文字幕日韩在线观看 | 91看国产 | 福利社午夜影院 | 久久精品欧美一区二区三区不卡 | 免费一区二区三区 | 视频一区二区三区中文字幕 | 亚洲网在线| 国产精品久久久久久久久久久新郎 | 久久一二 | 一级免费看 | 欧美一区二区三区视频在线播放 | 国产综合视频 | 国产在线精品一区 | 亚洲狠狠| 国精日本亚洲欧州国产中文久久 | 国产精品成人国产乱一区 | 日本精品久久久久 | 国产欧美精品一区二区 | 日韩精品中文字幕一区二区三区 | 国产毛片久久久久久久久春天 | 黄色大片免费播放 | 一本一道久久a久久精品综合蜜臀 | 国产在线精品一区二区 | 亚洲综合一区二区三区 | 国产精品成人久久久久 | 国产成人99久久亚洲综合精品 |