• I am having trouble with importing members into Membership 2. I am starting from scratch and not upgrading from the old membership plugin in this case.

    I tried exporting data to see the format of the file so that I could upload the proper file and get the message:
    “Fatal error: Class ‘MS_Addon_Coupon_Model’ not found in /home/content/19/9141419/html/realms/wp-content/plugins/membership/app/model/import/class-ms-model-import-export.php on line 193”
    so I tried udpating the htacess file as suggested in a thread I found to:
    <Files *.json>
    ForceType application/octet-stream
    Header set Content-Disposition attachment
    </Files>
    But that did not work.

    I also tried using https://codebeautify.org/csv-to-xml-json/cb309cb3 to convert the csv I have to json file as suggested in another thread. I downloaded the json file after conversion from csv and when I attempt to upload the file in Memebership 2, it says “No valid export file uploaded, please try again.”

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @cbeckley , I hope you are doing well!

    I can replicate the same on my installation and reported this as a bug to our developers. If the hotfix well be out earlier than the official plugin update, I’ll post it in this thread.

    Thank you for letting us know about it.

    In the meantime, because Membership 2 accept only json files, here is the json file example in case you need it:
    https://ufile.io/91019

    You can also import members from CSV you can use this plugin for now:
    https://www.ads-software.com/plugins/wp-ultimate-csv-importer/

    Kind regards,
    Nastia

    Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @cbeckley, I hope all is well!

    Our developers provided a hot fix for this issue.

    Please download the class-ms-model-import-export.php file from here and place it inside the /wp-content/plugins/membership/app/model/import/ folder.

    Let me know if you have any further questions!

    Cheers,
    Nastia

    Thread Starter cbeckley

    (@cbeckley)

    Hi Nastia,
    Thanks for your help!
    I downloaded that file and replaced it, so I am able to export the .json file now, but that file doesn’t seem to do me much good. It would take me longer to try set up the data that I want to import into this format then it would for me to just add the members one at a time manually.

    Trying to use that csv plugin you suggested and it only wants to match the standard wp user fields and not any of the membership ones that I need. The csv file that I have is a list of members from another domain that was using the original membership plugin, so I need all of that data.

    The test .json file that I converted from a csv file still gives me the error, “No valid export file uploaded, please try again.” When I compare it to the exported .json file, it seems like it’s in the same format, although the data is different. Mine includes expiration dates. Since it doesn’t look like I can attach a file here, I have uploaded it here for you to see and possibly test with (this is just a test file with no real data).

    https://drive.google.com/file/d/0B0r4fLbrOYWWTkZFd3dIUG1OX3M/view?usp=sharing

    Thanks!

    Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @cbeckley, I hope you are doing well!

    My apologies for delayed reply here!

    I downloaded the .json file attached, and could replicate the same, this file can’t be imported because of its structure. There is no user ID, no information regarding a Membership the user belongs too. Plus there is “Membership Level” added inside, which indicate that you may have Membership 1 on your site.

    First, please make sure that you switched from Membership 1 to Membership 2. The menu on your dashboard should be showing Membership 2. If it is just “Membership” go to Plugins > All plugins and click on the Switch to Membership2 now buttons. See the screenshot:

    If you are starting from 0, the json file will require too much time and knowledge to modify. So it would be best to add registred user to your site first, create memberships and bulk add users to these memberships.

    Skip this step if the users are already registred on your site:
    If users are not registered on your site, you can bulk import users with a plugins like:
    Import users from CSV with meta or you can use the CSV Import that I have already suggested.

    Third step, is to create memberships. Go to Membership 2 > Memberships > Create New Memberships

    And the final step, add users to memberships. Go to Membership 2 > All Members > All Users, select all users and use Bulk Actions to add a membership.

    As for the json file, if you still wish to use this method, you need to follow the rules that are shown in this example (which was already posted above).

    First, specify the membership and after a membership ID. See this example:

     {
        "id":10000,
        "name":"Membership Name",
        "description":" ",
        "type":"user" / "simple" / "dripped",
        "active":true/false,
        "private":true/false,
        "free":true/false,
        "price":99,
        "trial":true/false,
        "payment_type":"permanent"/ "date"/ "recurring"
    }

    Let me know if you have any more questions.

    Cheers,
    Nastia

    Thread Starter cbeckley

    (@cbeckley)

    Thanks for getting back to me.
    I am switching from Membership in one domain to Membership 2 on another with no users yet.

    I understand that I can add Members to membership levels in bulk, but what about the recurring dates? Is that only in the system for reference? Since they are using a PayPal onetime purchase or PayPal subscription, then does it really matter what Membership 2 says is the expiration date since PayPal will handle that?

    Also, since I am adding these users to the new domain without transferring their former passwords, do I just need to prompt each user to update their password on their first visit to the new domain or is there a more graceful way of handling that?

    Thanks!

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello cbeckley,

    I understand that I can add Members to membership levels in bulk, but what about the recurring dates? Is that only in the system for reference? Since they are using a PayPal onetime purchase or PayPal subscription, then does it really matter what Membership 2 says is the expiration date since PayPal will handle that?

    Well, dates are there for Membership to check if there was payment made before that date so access can be extended. So if dates are not matching – expiration date is before payment is made then subscription of user expires.

    Also, since I am adding these users to the new domain without transferring their former passwords, do I just need to prompt each user to update their password on their first visit to the new domain or is there a more graceful way of handling that?

    Other way to notify member would be to send them email – in form of a newsletter I suppose to request password change.
    Membership 2 does not have option to send that type of emails so you would need to use other plugin.

    kind regards,
    Kasia

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Importing members into Membership 2’ is closed to new replies.