Fatal error accessing login page subsite MS network

Hey all,

when adding a second site to my multisitenetwork with S2members installed I got the following error when trying to access the dashboard of the subsite:

Fatal error: Uncaught Error: Call to undefined function get_userdata() in /var/www/vhosts/toxicologie.nl/httpdocs/wp-includes/user.php:460 Stack trace: #0 /var/www/vhosts/toxicologie.nl/httpdocs/wp-content/plugins/s2member/src/includes/classes/access-cap-times.inc.php(136): get_user_option(‘s2member_access…’, 636) #1 /var/www/vhosts/toxicologie.nl/httpdocs/wp-includes/class-wp-hook.php(298): c_ws_plugin__s2member_access_cap_times::log_access_cap_times(‘18190’, 636, ‘wp_2_capabiliti…’, Array) #2 /var/www/vhosts/toxicologie.nl/httpdocs/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(’’, Array) #3 /var/www/vhosts/toxicologie.nl/httpdocs/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #4 /var/www/vhosts/toxicologie.nl/httpdocs/wp-includes/meta.php(267): do_action(‘updated_user_me…’, ‘18190’, 636, ‘wp_2_capabiliti…’, Array) #5 /var/www/vhosts/toxicologie.nl/httpdocs/wp-includes/user.php(821): update_metadata(‘user’, 636, ‘wp_2_capabiliti…’, ‘a:6:{s:13:"admi…’, ‘’) #6 /var/www/vhosts/toxicologie.nl in /var/www/vhosts/toxicologie.nl/httpdocs/wp-includes/user.php on line 460

It seems it has something to do with S2members so I hope someone here can help me out.