Hi

when i enter the Client Id and Secret Key and save it, that gives me the error:
Fatal error: Class 'Google_Client' not found in .... g_drive/includes/og_drive.client.inc on line 18

Looks like this module is not ready to use?

Thanks

Comments

jmlavarenne’s picture

Google_Client is a class provided by the Google PHP SDK.
Did you download the library ?

ashish.verma85’s picture

Yes i have downloaded it, and placed in
modules/og_drive
so that it will look
modules/og_drive/google-api-php-client/
modules/og_drive/google-api-php-client/src
.... etc etc.

ashish.verma85’s picture

hi, any idea? what is causing that error?

ashish.verma85’s picture

Its fixed. Thanks

ashish.verma85’s picture

Status: Active » Fixed
jmlavarenne’s picture

What was causing the problem in the end?

ashish.verma85’s picture

I was actually using the latest library, but i guess module is supporting the old version of library.
So i switched back to the old library, and all worked well.

i can share the links of libraries if needed, that may help others.

jmlavarenne’s picture

That would be great. I'll add a note to the module description about which version of the library to use until I get a chance to update for the newer version.

ashish.verma85’s picture

Hi

i was able to make it work using this library
https://github.com/googleplus/gplus-verifytoken-php/tree/master/google-a...

and this one
https://github.com/google/google-api-php-client

this one seems to have different structure than above one.
Please let me know if you need some more information.

Thanks
Ashish

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

zorax’s picture

Can you just tell me which version of the module you use?
Both libraries are OK ? Which one are you using?
thanks.

ashish.verma85’s picture

zorax’s picture

thanks it works for me too !

joshuautley’s picture

Your link points to the Master branch which is constantly being updated. Would you happen to know what version you used?

https://github.com/google/google-api-php-client/releases

Also could you clarify your comment in #9 above where you state that you used both libraries?

What did you do with this one https://github.com/googleplus/gplus-verifytoken-php/tree/master/google-a... ?

joshuautley’s picture

Update...

I was able to get rid of the WSOD by copying the contents of https://github.com/googleplus/gplus-verifytoken-php/tree/master/google-a... and putting it into version 1.1.3 of https://github.com/google/google-api-php-client