Hi Jeff. To be honest, I had wondered what would happen if another Plugin tried to use the Google API at the same time and now I have an answer.
The error tells us
- Postman loaded the Google API (google_api_php_client_autoload)
- “Use Your Drive” loaded the Google API soon after (Fatal error: Cannot redeclare)
And then stuff broke. Now, it was totally by chance that Postman loaded the API first; it could just as easily have been the other way around, dependent only on the arbitrary order of the plugins in your WordPress installation.
I will install “Use Your Drive” on my dev machine and write a patch for Postman. But as Use Your Drive also happens to be the cause of the error (in this case), I will have to write a patch for it as well. I will present both patches to you when I am done, and I will also submit my patch to the author of the other plugin so he/she can include it as a fix.
Thanks for bringing this to my attention. While you wait, disabling one plugin or the other should be a temporary fix.
Thanks a million Jason, I appreciate the help and quick response.
Jeff, am I wrong or is Use Your Drive only available by purchase? I’ve sent an e-mail to the author but I’ll have to wait on his response before I can offer you a patch for that plugin. He might be more responsive if he hears from a paying customer?
https://florisdeleeuwnl.zendesk.com/hc/en-us/articles/201845893-Read-this-before-creating-a-new-support-ticket
Jeff, I have an (untested) update that I believe may fix your issue. Please install Postman Gmail Extension v0.2.2:
- Deactivate and delete your copy of the current version of the plugin
- Download the v0.2.2 zip from here
- Upload the zip to your site and activate it
This fix should hide Postman’s copy of the Google API from Use Your Drive.. give it a shot.
For reference, I found the solution here.
Jason, that is AWESOME!!! It worked and we’re up and running. Thank you thank you thank you! I am a paying customer for the Use Your Drive plugin and it’s an integral part of our site for legal documents, but I am happy to push him from my end to get him to work with you. Is there anyway I compensate you for your time or make a donation? I would be glad to do that. I greatly appreciate your time and effort.
Cheers,
Jeff
Great! I believe Postman will be compatible with any other plugin using the Google API from now on; it is up to the author of Use Your Drive if he wants to make his plugin as robust, but that’s no longer relevant to our issue here.
I won’t take your money, but if ever have the opportunity to recommend Postman I would certainly appreciate that :>
Thank-you for the glowing review!
Cheers,
Jason