Remove users from groups on import?

I’ve been having an issue on my site where users are not always removed from the groups upon WooCommerce Subscription cancellation.

I’m not sure why this is happening, but in the meantime, with the Import/Export plugin, is there a way to import users and have them removed from groups upon import? Otherwise, I have to go through and manually remove them from the groups. I tried importing a file with only the groups listed that I want the user to stay in, but they still remain in the unwanted group after import.

Thank you for your help.

7 Responses to Remove users from groups on import?

  1. George March 15, 2018 at 3:25 pm #

    Hi Michelle,

    Please send me temp admin credentials to george@itthinx.com for your staging site.
    I will have a look at your setup.

    Cheers,
    George

  2. Michelle March 14, 2018 at 10:13 pm #

    Hi George,

    I have a staging site, so that’s not the issue. The issue is that the problem is not consistent and I have over 40 plugins. How can I test an inconsistent issue (sometimes it works, sometimes it doesn’t)? Unfortunately, there are no errors that are being thrown in the log.

    -Michelle

  3. George March 14, 2018 at 6:54 pm #

    Hi Michelle,

    For such cases, I think it’s better for you to keep a staging copy of your site.
    A staging site would be an exact copy of your live site, so it’s the best place to make tests freely without interfering with your live site.
    You can also contact your hosting provider, they might be able to create a staging copy without much effort. After that, we can check the situation thoroughly.

    Kind regards,
    George

  4. Michelle March 12, 2018 at 11:14 pm #

    Hi George,

    Thank you, but as I said, since users are not *always* not removed from groups, the issue is very difficult to debug. With over 40 plugins it would take forever and I would never know whether or not I found the problem anyway. So, I really don’t know how to fix it.

    -Michelle

  5. George March 9, 2018 at 8:49 am #

    Hi Michelle,

    Since the situation is not permanent, I would recommend you to create a staging copy of your site with debugging enabled. Perform tests by disabling each time one of your plugins. If there is a conflicting plugin you will be able to locate it that way.

    In any case I would suggest you to first update your plugins to the latest versions available.
    Groups WooCommerce current version is 1.12.0, WooCommerce Subscriptions is 2.2.18, Groups is 2.3.1, WooCommerce is 3.3.3 and Groups Import Export is 1.2.4 as we speak.

    Kind regards,
    George

  6. Michelle March 8, 2018 at 10:46 pm #

    Hi George,

    Thank you for your reply! Unfortunately, since users aren’t *always* not removed from groups, it’s very difficult to debug. I haven’t seen anything in the error logs for several tests as all the tests have worked. So, I can’t really explain it.

    Also, with over 20k users, exporting and importing them all would be too server-heavy to accomplish. This would also reset all their passwords as well, correct? I definitely don’t want to do that.

    Looks like I’ll be manually going in to remove them from the groups. Yay… 🙁

    -Michelle

  7. George March 8, 2018 at 9:30 am #

    Hi Michelle,

    Sorry for the inconvenience regarding WooCommerce Subscriptions. Do you also use Groups WooCommerce plugin? Which version is currently installed on your system? I think you should also enable debugging and check your debug.log file for any issues recorded.

    To enable it, edit your wp-config.php file and replace the following line:
    define(‘WP_DEBUG’, false );
    with these lines:

    define(‘WP_DEBUG’, true );
    define(‘WP_DEBUG_LOG’, true );
    define(‘WP_DEBUG_DISPLAY’, false );
    after that, any errors will be added to a file named debug.log under your wp-content folder.

    Regarding import functionality, take a backup of your users list before proceeding, in case something goes wrong. Then, edit the import file, as you did, and remove specific Groups from the users you prefer. After that save the file and import your users. For this case to be successful you should also remove your users before importing.

    Kind regards,
    George

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share