问题
I was trying to add google plus login to my web but I encountered this error which seems really weird because I have the file already added. I already enable vendor/autoload (Im using codeigniter)
Anyone had this kind of error before? How did you fix this?
A PHP Error was encountered
Severity: Error
Message: Class 'Google\Auth\OAuth2' not found
Filename: Google/Client.php
Line Number: 929
Backtrace:
回答1:
I assume you are using this package. Did you install it via composer
? It has several dependencies and it looks like based on the error, that you may be missing some of them.
来源:https://stackoverflow.com/questions/33717954/class-google-auth-oauth2-not-found