How to remove all traces of M2 from my site?

I would like to remove all traces of Membership2 from my site so that I can reinstall from scratch.

I have already tried deactivating the plugin and reactivating it….there is a known bug in that process (see my ticket here: https://wpmudev.com/forums/topic/bug-m2-downgrades-itself-when-deactivated#post-976006), and I’ve experienced a great many problems with my install (see ticket here: https://wpmudev.com/forums/topic/m2-is-so-messed-up-that-my-question-here-keeps-getting-rejected#post-948255) so I prefer to just start from scratch at this point.

Can I get a list of all the tables that are created so I can remove them? Also, if there are any particular nuances to the multisite install, that would be important to know, as well.

Thank you!

  • formerly-kalico
    • Site Builder, Child of Zeus

    This did not work as expected/requested. After running the command, I was prompted that it would reset all “settings and details”. That doesn’t tell me for sure that I am removing tables, but I went along with it. Then I deleted the plugin as instructed.

    I also disabled the multisite define from my wp-config file, because I know that part was problematic for me in the past when trying to disable M2.

    I neglected to check to see if it was gone from all the subsites. I didn’t think of that step until after I reinstalled it from scratch, and noticed (before activating it) that it was already active on all my subsites!

    So do I need to run this from every subsite?

  • formerly-kalico
    • Site Builder, Child of Zeus

    Actually, I can’t. Just tried it.

    There is no “settings” page now, because it’s viewing all the subsites as fresh installs. I tried adding the command to the end of a Set up page (http://MYSITE.org/SUBSITE/wp-admin/admin.php?page=membership2-setup&reset=1) and I get no option to delete anything.

    I guess I have to reenable it, then do all this again?

    Honestly, M2 is really driving me crazy. I’ve been playing with it since the summer, and I’m no closer to having it working.

  • formerly-kalico
    • Site Builder, Child of Zeus

    One more discovery….this reset process does not remove all the layers and layers of pages created by M2. As I’ve mentioned in other support threads, every time I have disabled and reenabled M2, it creates a whole new set of pages. This is incredibly frustrating, because they are in all the subsites. I have to keep going in and deleting them, and starting over…and they all get named things like registration-8 and registration-9 and registration-10 and so on. Very frustrating.

    I really don’t understand how all these issues were not dealt with before this plugin was released. This stuff even happens on the most plain vanilla site. It’s probably better in a non-multisite environment, but if this plugin purports to be multisite compatible, then it really should work much better.

  • Luís Lopes
    • QA

    Hi @kalico,

    I hope had been good today!

    Firstly, sorry for the late reply.

    1) I my previous reply I forgot to mention the database tables created by Membership 2. You can find them with the “wp_m_” prefix.

    2) Regarding to the “&reset=1” feature, this will only remove your settings and data inserted in the plugin, so you can “clean” the plugin after testing it.

    3)

    As I’ve mentioned in other support threads, every time I have disabled and reenabled M2, it creates a whole new set of pages. This is incredibly frustrating, because they are in all the subsites. I have to keep going in and deleting them, and starting over…and they all get named things like registration-8 and registration-9 and registration-10 and so on.

    Unfortunately I can not reproduce this issue.

    I have deactivated and activated the plugin and no more pages are created in my subsites.

    Cheers, Luís

  • formerly-kalico
    • Site Builder, Child of Zeus

    Hi Luis,

    This is super helpful!! I really appreciate the additional info on how the “reset” works and which tables of the database to eliminate. I thought those were the ones, but it’s good to know for sure before I start hacking away at it. :slight_smile:

    Thanks so much for testing #3 for me. Now I know that the cause must be elsewhere. I’ll try to figure it out.

    So one question I have now (and I’m a little scared to test it because things are working pretty well on my test site at the moment)….is about the define in wp-config.php. When I have MS_ALLOW_MULTISITE in there, what exactly does that do? I have been using it all throughout my testing, until now….the current test site does not have that define, and it’s also the smoothest experience I’ve had yet. I am starting to wonder if that is the cause of my troubles.

    I would like to better understand the action or interaction that define has on the network of sites, so I can decide if it’s the cause of my frustration, or if I’m using it incorrectly, or what.

    Thanks in advance!