• Resolved KeithDream

    (@keitheldridge)


    I’m trying to change my gmail From address, deleted the key in G Suite, deleted the plugin (with delete data checked in Misc), yet after reinstalling, all the old data and old From email remain intact.

    Even with the new Client ID / Secret entered, when clicking Authorize: Allow plugin to send emails using your Google account, the authorization screen is calling the old Client ID, which has already been deleted in G Suite settings.

    Therefore it does not succeed.

    Originally, what I want to do is change the From email (same domain though). Can’t do it because the plugin does not actually delete all its data upon deletion of the plugin.

    Love this plugin and really want to keep using it, I hope you can help!

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Gregor Capuder

    (@capuderg)

    Hi Keith,

    are you maybe using a multi-site WP?

    If not, are you using any caching plugins? Try clearing the cache after you change the plugin settings (Client ID/Secret).

    Are the plugin settings actually saving? When you click on the “Save settings”, do you see the new Client ID or is the old one still present?

    Take care!

    Thread Starter KeithDream

    (@keitheldridge)

    Thanks for your quick reply. It’s not multi-site. I’m using Hummingbird Pro and Cloudflare.

    I actually went through the uninstall/reinstall many times and cleared the cache on both as well as browser cache each time.

    The new Client ID does show up in the plugin. I deleted the old ID from the google admin. But when I click to authorize and the google sign-in shows up, it references the OLD ID name. So it makes sense that it isn’t working because they don’t match.

    Thread Starter KeithDream

    (@keitheldridge)

    Is there any other way to delete the plugin settings from the database? Even with the caching plugin deactivated and cloudflare on developer mode, it retains all the settings.

    And with “Check this if you would like to remove ALL WP Mail SMTP data upon plugin deletion. All settings will be unrecoverable.” The settings still are populated after re-install.

    Also to be clear, when I first changed the ID/Secret and saved, they did change to the new ones. However, since then, when I delete the ID/Secret and save (with the fields blank), they come back after save. So I suppose that means it is not saving properly.

    Very strange.

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi Keith,

    yes, this is strange…

    What if you change to another mailer and try to save settings? Does the new setting save (is new mailer selected)?

    It’s also strange that the uninstall (with the “Uninstall WP Mail SMTP” checkbox enabled) is not deleting your settings. I’ve tested it on my hosting and the uninstall works just OK.

    When saving the plugin settings, please open the browser console and switch to the network tab. then try to save the settings and check if there are any errors reported.

    You could also check your server’s PHP error logs to see if there are any error messages present, that would give us some info on what is happening.

    Take care!

    Thread Starter KeithDream

    (@keitheldridge)

    I ended up restoring to a backup that had Version 2.0.1 installed.
    It had the old ID/Secret still. So I disconnected it, added the new ID/Secret. I was able to authorize and send a test email.

    At this point, the From email was still grayed out, so I deleted the plugin (delete data checked). After reinstall, the info was still there, but I was able to update the From email address finally.

    So I’m happy to have mail functioning again and with new email address. Still makes me wonder why the data doesn’t get deleted though.

    Thread Starter KeithDream

    (@keitheldridge)

    Sorry, didn’t see your response in time.

    I did find this in the php Error logs:

    [internal function]: shutdown_action_hook() #6 {main} thrown in /var/web/site/public_html/wp-content/plugins/wp-mail-smtp/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler.php on line 29
    
    #3 /var/web/site/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #4 /var/web/site/public_html/wp-includes/load.php(960): do_action('shutdown') #

    Not sure why that’s happening as I don’t have WooCommerce installed.

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi Keith,

    The “From email” is not used when the Gmail mailer is selected. That’s why it’s grayed out (disabled). The email address used for the Gmail authorization will be used as the “From email”.

    The log you posted, does not look like an error. It’s just a log entry. Our plugin is using the Action Scheduler library made by WooCommerce, so that’s why you see the “woocommerce” string in the path of that file.

    I’m glad you sorted it out now. Are you on the latest version of the plugin now (v2.1.1)?

    Take care!

    Thread Starter KeithDream

    (@keitheldridge)

    Well that makes sense then. Thanks for explaining. And that may answers a lot of questions about the WC scheduler!

    Yes, I am now on the latest version.

    Thank you for your very quick responses and for such a great plugin!

    Keith

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi Keith,

    no problem, I’m glad you resolved it ??

    Have a nice day!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Can’t delete data when clicked on uninstall’ is closed to new replies.