2017-04-20 10 views
0

は私がグーグル+との投稿した写真を使用することができるようにhybridauthライブラリを設定しようとしていた動作しません。しかし、それは私が致命的なエラー与え続けるために:。HYbridauth Facebookのログインが

Fatal error: require(): Failed opening required 'Facebook\Facebook.php' (include_path='.:/var/www/magilla/lib:/var/www/magilla/models') in /var/www/magilla/lib/RPC/Util.php on line 168 

I followed each and every step of their documentation. I have used the composer to install the library. The library version is 2.9 and the facebook graph sdk, the most recent version of github

を 適切な解決策のための

答えて

0

READのEDIT * 2ではなく

私は同じ問題に直面していると私はあなたのプロジェクトのルートフォルダにcomposer require hybridauth/hybridauthを実行している私がやったのと同じ方法で、hybridauthインストールしたとします。

I solved this by running composer install within the hybridauth directory where its composer.json exist, that will install facebook sdk within the hybridauth directory where the autoload.php is being load by the script (I personally feel like it is more like a hack than a proper solution... but I have a feeling that the hybridauth developer expect you to clone then run the composer install instead of composer requiring it...I maybe wrong as I just start using composer as well)

* EDIT check out the issue on their githubは、ベンダーのパスは自分のコードにものに置き換えられているバグがあり、それはまた、それがコミット以降で固定されて言及します。私は作曲家にも新しいので、私はそれを更新するコミットを特定する方法がわからない...それを行う方法を知っているなら私にも知らせてください

* EDIT * 2大丈夫、私は更新しました2.9.3-devにすると、それは新しいものを生成せずに問題を解決するように思われる、私はまた、Googleとtwitterのために使用し、それらも良いです。その後、コマンドプロンプトでcomposer updateを実行し、この

"require": { 
     "hybridauth/hybridauth": "^2.9-dev" 
    } 

にごcomposer.jsonを編集、更新するには、物事はあなたのスクリプト

のために限り、あなたは作曲autoload.phpを必要とするように動作するはずです
関連する問題