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

    (@wpmudev-support2)

    Hello johnn22,

    Could you make me a screenshot from your Membership? Because if you are still using Membership 1 and did not upgrade to Membership 2 then data is still kept in separate tables.
    If you upgraded to Membership 2 are you sure that both of your sites are sharing the same data when it comes to membership levels (did you copied database from first site to another after creating your memberships on first site?).

    kind regards,
    Kasia

    Thread Starter johnn22

    (@johnn22)

    Hello,

    I have Membership 2 version 4.0.0.7 installed on both websites. At the moment I only registered test users, and when I upgrade the users to the Premium level (for which users normally have to pay) in the “Add Member” tab from Membership 2, I get this error:

    Fatal Error: Uncaught exception 'Exception' with message 'You cannot register a new account, because you are already logged in.' in /home/watchcou/public_html/watchcoursesregistration.ga/wp-content/plugins/membership/app/model/class-ms-model-member.php:989 Stack trace: #0 /home/watchcou/public_html/watchcoursesregistration.ga/wp-content/plugins/membership/app/model/class-ms-model-member.php(939): MS_Model_Member->create_new_user() #1 /home/watchcou/public_html/watchcoursesregistration.ga/wp-content/plugins/membership/app/controller/class-ms-controller-member.php(368): MS_Model_Member->save() #2 [internal function]: MS_Controller_Member->members_admin_page_process_editor('') #3 /home/watchcou/public_html/watchcoursesregistration.ga/wp-includes/plugin.php(525): call_user_func_array(Array, Array) #4 /home/watchcou/public_html/watchcoursesregistration.ga/wp-admin/admin.php(226): do_action('load-membership...') #5 {main} thrown in /home/watchcou/public_html/watchcoursesregistration.ga/wp-content/plugins/membership/app/model/class-ms-model-member.php on line 989

    EVen if the error is there, the test users are upgraded to the Premium level, but they don’t appear in any MySQL table. Even if I have 2 members with with active Premium membership, all the _m_ tables are empty. Here are some screenshots:
    https://i.imgur.com/8yNarmq.png
    https://i.imgur.com/rMQ2fPP.png

    Thread Starter johnn22

    (@johnn22)

    The problem is still there, can you please help me fix it?

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello johnn22,

    If you are using Membership 2 (and from your screen I can confirm that) data is not kept in separate tables, users are in wp_users and wp_usermeta. So empty tables there are correct.
    Regaring this fatal error – can you open & edit the following file;

    membership/app/controller/class-ms-controller-member.php

    Find the following on or around line 330:

    $user_id = intval( $_POST['user_id'] );

    Replace with;

    $user_id = intval( $_REQUEST['user_id'] );

    let me know if this will fix this error.

    kind regards,
    Kasia

    Thread Starter johnn22

    (@johnn22)

    Hello Kasia,

    Thank you for the answers. That line was present twice in that file and I replaced it both times. The plug-in works fine now.

    Have a great day!

    Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Awesome, and thanks for getting back to us with the status ??

    Have a great day!

    Predrag

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘2 websites, same user database’ is closed to new replies.