WordPress.org

Ready to get started?Download WordPress

Forums

ShareThis: Share Buttons and Social Analytics
ShareThis Settings keep Resetting after activation of any plugin (15 posts)

  1. Cerebros
    Member
    Posted 4 months ago #

    As the Topic states, every-time i activate or deactivate a plugin , the setting for the ShareThis Plugin ( appear on bottom , top , pages etc) resets. Any idea how i can fix this as it appears on my homepage even though i don't want it there.

    https://wordpress.org/plugins/share-this/

  2. sharethissupport
    Member
    Posted 4 months ago #

    Can you please try deactivating other installed plugins so that we can verify that if any other plugin is conflicting or not?
    Also please provide you website details and ShareThis Plugin version installed on that site.

  3. byelle
    Member
    Posted 4 months ago #

    Similar issue here. WP 3.9 / ShareThis 7.0.12.

    Steps to reproduce:
    1) Deactivate all plugins with the exception of ShareThis.
    2) Edit ShareThis settings, Step 4 Additional Features.
    3) Deselect "Show widget on bottom of Pages" and "Show widget on bottom of posts". Save Changes.
    4) At this point I can view a post/page and the Widget is gone as expected.
    5) Activate a plugin. I specifically used "Antispam Bee" and "All In One SEO Pack" in two separate tests.
    6) The widget now appears at the bottom of posts/pages and if I navigate back to the ShareThis settings the "Show widget" check boxes are selected.

  4. Cerebros
    Member
    Posted 4 months ago #

    Hey, Sorry for late response .
    It is the latest version of WordPress and ShareThis.

    It basically resets settings to default any time a plugin is activated.

  5. Leia Scofield
    Member
    Posted 4 months ago #

    Same issue here. Latest versions of WP and ShareThis.

  6. Aspexi
    Member
    Posted 4 months ago #

    Plugin version: 7.0.12, file sharethis.php:203

    if (isset($_GET['activate']) && $_GET['activate'] == 'true') {
    	install_ShareThis();
    }

    Commenting this code after plugin activation is a temporary fix.

    However this should be fixed in a different, better way.

    Plugin author please make a fix, plugin is being reset if any url has 'activate' in GET.

  7. sharethissupport
    Member
    Posted 4 months ago #

    Apologies for the inconvenience caused.
    We have already forwarded the issue to our tech team and they are working on it.

    Meanwhile, can you please provide us your website details and the other installed Plugins information so that we can take a look and check if any other plugin is conflicting with ShareThis or not.

  8. Aspexi
    Member
    Posted 3 months ago #

    @sharethissupport thank you. Unfortunately site is not LIVE yet and I cannot give you an access to development.

    However this issue should be straight forward to repeat.

  9. sharethissupport
    Member
    Posted 3 months ago #

    @Aspexi
    Thanks for the update.
    The issue is still not reproducible at our end but still we are working on it.
    Till the time you can check our newly released Plugin version and let us know if this works for you.

  10. kulwant2home
    Member
    Posted 3 months ago #

    @sharethissupport
    Same here as soon as i activate it resets . No solution for me till now

  11. Aspexi
    Member
    Posted 3 months ago #

    @sharethissupport

    if (isset($_GET['activate']) && $_GET['activate'] == 'true') {
    	install_ShareThis();
    }

    This code is still in the latest version. Keep in mind that if any other plugin or WordPress core use 'activate' GET variable, your plugin will reset configuration.

    You should use https://codex.wordpress.org/Function_Reference/register_activation_hook or make extra check if your plugin is being activated.

  12. sharethissupport
    Member
    Posted 3 months ago #

    @Aspexi

    Thank you very much for your efforts. We have immediately forwarded your suggestions to our engineering team for further action.
    We will update the thread, once we have any inputs from them.

  13. darisj
    Member
    Posted 3 months ago #

    So here is an example of code to replace that line with:

    register_activation_hook( WP_PLUGIN_DIR . '/' . trim( dirname( plugin_basename( __FILE__ ) ), '/' ), 'install_ShareThis' );

  14. sharethissupport
    Member
    Posted 3 months ago #

    We have fixed the issue at our end and the new plugin release will be available soon.

  15. sharethissupport
    Member
    Posted 3 months ago #

    We went ahead and issued a new release (v. 7.0.14). This is up now. This release should resolve the issue.
    We really appreciate the quick feedback. Thanks for your patience and for using ShareThis!

Reply

You must log in to post.

About this Plugin

About this Topic