• Resolved Jeffsne

    (@jeffsne)


    Hi, I just started using the Postman plugin along with the Postman Gmail addon and I’m getting this error when I submit a registration. I’m using Gravity Forms for registration.

    Btw, the Test Email function works great from the Postman plugin, but now I’m getting this error. Any ideas?

    Fatal error: Cannot redeclare google_api_php_client_autoload() (previously declared in /home/infinitymedrx/public_html/home/wp-content/plugins/postman-gmail-extension/Postman/Postman-Mail/google-api-php-client-1.1.2/autoload.php:18) in /home/infinitymedrx/public_html/home/wp-content/plugins/use-your-drive/includes/Google-sdk/autoload.php on line 32

    Thanks,
    Jeff

    https://www.ads-software.com/plugins/postman-smtp/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jason Hendriks

    (@jasonhendriks)

    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.

    Thread Starter Jeffsne

    (@jeffsne)

    Thanks a million Jason, I appreciate the help and quick response.

    Plugin Author Jason Hendriks

    (@jasonhendriks)

    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

    Plugin Author Jason Hendriks

    (@jasonhendriks)

    Jeff, I have an (untested) update that I believe may fix your issue. Please install Postman Gmail Extension v0.2.2:

    1. Deactivate and delete your copy of the current version of the plugin
    2. Download the v0.2.2 zip from here
    3. 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.

    Thread Starter Jeffsne

    (@jeffsne)

    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

    Plugin Author Jason Hendriks

    (@jasonhendriks)

    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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal Error on Registration Form’ is closed to new replies.