I just installed 7.x-1.4 and the new 1.0.5-beta version of google api php client but after this upgrade I am getting the following error:

Fatal error: Call to undefined method Google_Client::addService() in
xxxxxxxxxxxx\sites\all\modules\gauth\gauth_login\gauth_login.module on line 172

Is there anything that I may have missed?

Comments

d0tcom’s picture

Title: Undefined method Google_Client » Undefined method Google_Client::addService()
sadashiv’s picture

Status: Active » Needs review
StatusFileSize
new1.83 KB

Hi,

Thanks for reporting this bug. I think I didn't change this. Please try the attached patch

d0tcom’s picture

That fixed it! Thanks sadashiv!

Kiendeleo’s picture

Status: Needs review » Reviewed & tested by the community

Confirmed, patch worked for me.

arieliglesias’s picture

I have my drupal site on a Web Hosting, for which I don't have access to the server itself in order to apply the patch. Will this patch be included in an upcoming release of gauth module? And if so, is there an estimate on the date?
Thanks so much in advance and best regards,

khburres’s picture

Thanks, this solved my problem as well.

d0tcom’s picture

5arieliglesias you can apply the patch manually. Read this article:
https://www.drupal.org/node/534548

wrsix’s picture

Thanks for the patch. It worked just dandy.

arieliglesias’s picture

Thanks @d0tcom! I have just applied the patch based on those instructions and it works perfectly. Thanks so much! Best regards,

deggertsen’s picture

Status: Reviewed & tested by the community » Fixed

This is a fixed issue as it was committed to dev back in August of 2014. See http://drupalcode.org/project/gauth.git/commit/0cc4ee7

deggertsen’s picture

Version: 7.x-1.4 » 7.x-1.x-dev

Note that this is only applied to dev. A new release will be necessary and the module summary will need to be updated to reflect the new version of google api php client.

Status: Fixed » Closed (fixed)

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

manjirik’s picture

This patch works for me. Thanks Sadashiv.
I have just changed gauth_login_gauth_google_response() function first changes and then gauth_login_user_login_submit() changes.

sadashiv’s picture

I think you should try the latest version and latest release for google api php client

Thanks,
Sadashiv.