0

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:
XDProgrammer
  • 853
  • 2
  • 14
  • 31
  • 2
    I assume you are using this package https://github.com/google/google-api-php-client. 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. – takacsmark Nov 15 '15 at 09:58
  • @Mark hi, yes your right, I did not realize that there are also autoload files inside the google package,, – XDProgrammer Nov 16 '15 at 07:11
  • Great, let me post the comment as an answer then. – takacsmark Nov 16 '15 at 08:59

1 Answers1

0

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.

timss
  • 9,982
  • 4
  • 34
  • 56
takacsmark
  • 3,933
  • 23
  • 26