• Hello I have a multisite with 4 sub site
    
    club
    training
    blog
    test
    
    The Pmpro manages from Club
    
    I can not add a user to the sub site training
    The operation is normally unfolding, but nothing in account, have you a solution ?
    main plugins
    
    Pmpro, peepso; LMD LearnDash
    • This topic was modified 2 years, 8 months ago by habibal.
    • This topic was modified 2 years, 8 months ago by habibal.
    • This topic was modified 2 years, 8 months ago by habibal.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Thomas S

    (@eighty20results)

    Hi,

    I’m not sure that I understand the problem you’re describing? Where are you not seeing the user?

    In the WP Users table, or some other location in the database? Perhaps in WordPress itself?

    Are you expecting an imported user to appear somewhere specific?

    AFIK, multisite WordPress uses a single unified database table for all registered users. There may be something specific that needs to happen for a user to become available/visible on a specific sub-site.

    What that is, I currently do not know.

    A (very) quick Google search doesn’t uncover anything different between a single-site WordPress user and a multi-site WordPress user. I.e. that there’s more/different information in the user record part of the database for the two WordPress configurations.

    Me not finding anything right now doesn’t mean much. For instance, I don’t know if there are specific roles that need to be assigned to a user. And I would not know what those might be, off the top of my head.

    Unfortunately I have not tested this plugin for multi-site configurations either and it’s on my longer term “ToDo” list (adding multi-site to automated testing for the plugin).

    • This reply was modified 2 years, 8 months ago by Thomas S. Reason: Fix an obvious typo
    Thread Starter habibal

    (@habibal)

    I thank you for your quick reply, in fact there is in the database the table wp_usermeta, there is only the wp_capabilities that corresponds to club, which function and I would like to have wp_3_capabilities and wp_4_capabilities, but there is nothing Even though during Upload the answer is DONE ! And the result in the console is at the AJAX query
    {“SUCCESS”: True, “Data”: {“status”: true, “message”: null, “display_errors”: null}}
    Is it normal that message = null or there’s a problem?

    multisite screenshoot option

    • This reply was modified 2 years, 8 months ago by habibal.
    Thread Starter habibal

    (@habibal)

    Hello Mr. Sj?lshagen, I inform you that I introduced a Hook in Function.php from the Sub site Club:

    function add_user_meta_capabilities () {
      global $wpdb	;  
      $id = $wpdb->get_var( "SELECT id FROM $wpdb->users ORDER BY id DESC LIMIT 1" );
      $cap = [ "subscriber" => true ];
      if (empty(get_user_meta($id, 'wpyc_3_capabilities', true))) add_user_meta( $id , 'wpyc_3_capabilities', $cap );
      if (empty(get_user_meta($id, 'wpyc_2_capabilities', true))) add_user_meta( $id , 'wpyc_2_capabilities', $cap );
      if (empty(get_user_meta($id, 'wpyc_4_capabilities', true))) add_user_meta( $id , 'wpyc_4_capabilities', $cap );
    }
    add_action ('added_user_meta' , 'add_user_meta_capabilities', 10);

    While waiting for your fix that say I have a problem it must be done twice why? I did not understand and the second time I have this message in the textarea status:

    Loading...
    JavaScript Loaded.
    Error during import (# of errors: 5):
    Warning: The payment gateway integration provided (membership_gateway: stripe) is not one of the supported payment gateway integrations! (Changed and using the default value for user (ID: 832) )
    Warning: May cancel membership for user (ID: 833) since there is no membership ID assigned for them.
    Error: The membership ID (0) specified for this user (ID: 833) is not a defined membership level, so we can't assign it. (Membership data not imported!)
    Warning: The payment gateway integration provided (membership_gateway: paypalexpress) is not one of the supported payment gateway integrations! (Changed and using the default value for user (ID: 833) )
    Warning: The payment gateway integration provided (membership_gateway: paypalexpress) is not one of the supported payment gateway integrations! (Changed and using the default value for user (ID: 834) )
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Import problem with multisite’ is closed to new replies.