• Hi,
    I just switched to your plugin and it’s working great for me so far. The only issue is that I also use BackupBuddy to backup my website using google drive as a destination. This plugin is causing BackupBuddy to fail now though because both plugins define a Google_Model class.

    Is there a way to fix this or allow both plugins to still run?
    Maybe “_SMTP” can be appended to all the default Google classes so the new class name would be Google_Model_SMTP? This way any other plugin that is trying to use Google doesn’t cause conflicts.

    The Google_Model class is defined here:
    Gmail SMTP: gmail-smtp/google-api-php-client/src/Google/Model.php
    BackupBuddy: backupbuddy/destinations/gdrive/Google/Model.php

    PHP Fatal error: Cannot redeclare class Google_Model in…

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter techoguy

    (@techoguy)

    Maybe another option if possible, can you only load what you need when your plugin settings pages are loaded vs all the time? This way when other plugins need to use the similar classes for Google there’s no conflict.

    Plugin Author Noor Alam

    (@naa986)

    Hi, Do you only get that error on the admin side? Or does it occur on the front end as well?

    Thread Starter techoguy

    (@techoguy)

    Well, BackupBuddy only loads the Google Model class when it needs it which is when you load the setup page in the admin panel for the BackupBuddy Remote destination page and when the Cron job runs to do the backup and sends the backup to google drive.

    So it does not happen on the front end but does on a specific admin page and when the cron job runs.

    Thread Starter techoguy

    (@techoguy)

    also,
    I tried to use the plugin organizer plugin to stop/block your plugin from loading on the specific admin page but it didn’t work on your plugin.

    Thread Starter techoguy

    (@techoguy)

    Hi, are there any updates on this?

    Thanks!

    Hello! Any news on this?

    I also use backupbuddy and the same issue – the automatic updates stopped from working to Google Drive after activating and configuring your plugin.

    The problems are strictly from the backend – also the Google Drive folder structure is no longer available in the Backupbuddy interface.

    So the emails are sent (even woocommerce transactional emails) so your plugin is working, but somehow overrides other plugins from using the Google_Model class.

    I got a reply from backupbuddy support, and they’re saying they’re using Google_Model class best practices, it’s your plugin’s fault…

    Thank you in advance for trying to solve this ??

    Again… any news? Do you plan to make your plugin compatible with other plugins that use the Google_model class?

    Thanks again.

    If you need, I can send you the latest backupbuddy plugin archive, so you can take a look yourself. Please leave here an email address.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Doesn't work with BackupBuddy (both define Google_Model)’ is closed to new replies.