Problems with adding new users + 500 error after creating new website

Hi all,

I have two problems with user rights I think. First admin-users can not add normal users to their own subsites. The option is simply not there. Only exsisting network users can be added.

Also I have a problem when creating a new website as super-admin. After creating the website I get this 500 error. The user is created, but can not login nor seems to have admin rights to their own website. However the dashboard says he/she show have admin right.

Any thought anybody?

  • Predrag Dubajic

    Hey Maarten,

    Hope you're doing well today :slight_smile:

    Try going to Settings > Network Settings and enable "Add New Users" option, your subsite admins should be able to add new users after that.

    As for the 500 error, this usually means there's fatal error going on somewhere but the error on its own doesn't tell us much.

    Can you enable debug log in your wp-config.php by replacing define('WP_DEBUG', false); with this code:

    // Enable WP_DEBUG mode
    define('WP_DEBUG', true);
    
    // Enable Debug logging to the /wp-content/debug.log file
    define('WP_DEBUG_LOG', true);
    
    // Disable display of errors and warnings
    define('WP_DEBUG_DISPLAY', false);
    @ini_set( 'display_errors', 0 );

    Create new subsite and this should create debug.log file in your wp-content folder that could tell us what is going on.
    Can you please save it as .txt file and attach it here so we can check it out.

    Best regards,
    Predrag

  • Dimitris

    Hey there Maarten,

    hope you're good today and don't mind me jumping in!

    The errors that got my attention in the debug log file are:

    [28-Sep-2016 10:24:01 UTC] PHP Catchable fatal error: Argument 1 passed to WP_HTTP_Requests_Response::__construct() must be an instance of Requests_Response, none given, called in /var/www/vhosts/xxxxxxxxxxxxx/httpdocs/wp-content/plugins/multisite-cloner/multisite-cloner.php on line 355 and defined in /var/www/vhosts/xxxxxxxxxxxxxx/httpdocs/wp-includes/class-wp-http-requests-response.php on line 45

    [28-Sep-2016 10:24:07 UTC] PHP Warning:  array_keys() expects parameter 1 to be array, integer given in /var/www/vhosts/xxxxxxxxxxxxx/httpdocs/wp-content/plugins/cornerstone/includes/classes/elements/class-element-wrapper.php on line 219
    [28-Sep-2016 10:24:07 UTC] PHP Warning:  array_keys() expects parameter 1 to be array, integer given in /var/www/vhosts/xxxxxxxxxxxxx/httpdocs/wp-content/plugins/cornerstone/includes/classes/controls/class-control-group.php on line 85
    [28-Sep-2016 10:24:07 UTC] PHP Warning:  in_array() expects parameter 2 to be array, null given in /var/www/vhosts/xxxxxxxxxxxxx/httpdocs/wp-content/plugins/cornerstone/includes/classes/controls/class-control-group.php on line 177
    [28-Sep-2016 10:24:07 UTC] PHP Warning:  in_array() expects parameter 2 to be array, null given in /var/www/vhosts/xxxxxxxxxxxxx/httpdocs/wp-content/plugins/cornerstone/includes/classes/controls/class-control-group.php on line 177
    [28-Sep-2016 10:24:07 UTC] PHP Warning:  in_array() expects parameter 2 to be array, null given in /var/www/vhosts/xxxxxxxxxxxxx/httpdocs/wp-content/plugins/cornerstone/includes/classes/controls/class-control-group.php on line 177
    [28-Sep-2016 10:24:07 UTC] PHP Warning:  Invalid argument supplied for foreach() in /var/www/vhosts/xxxxxxxxxxxxx/httpdocs/wp-content/plugins/cornerstone/includes/classes/controls/class-control-group.php on line 87

    How do you add the new subsites? Are you using the Multisite Cloner cloner plugin?
    Could you please try to deactivate it along with the "Cornerstone" plugin and test again?

    Warm regards,
    Dimitris

    PS. Is the Cornerstone plugin, this one https://wordpress.org/plugins/cornerstone/?

  • Dimitris

    Hey there Maarten,

    hope you're doing good today! :slight_smile:

    Thanks for the tips. I disabled the Multisite Cloner plugin and that worked!
    Too bad that now it's not possible to clone a website on creation.

    Could you give this another spin? You can disable the "Cornerstone" plugin and proceed with a Multisite Clone through our plugin and test if this continues? I look forward for your results on this! :slight_smile:

    Warm regards,
    Dimitris

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.