This plugin triggers the following PHP Notice in the WordPress debug log:
PHP Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /wp-includes/functions.php on line 3737
Basically, the problem traces back to this line in simple-import-users.php
:
add_management_page('Import Users', 'Import Users', 8, __FILE__, 'ddiu2_management_page');
The “8” being passed into the capability parameter is the deprecated argument value.
Changing the capability to ‘create_users’ makes the most sense to me. I was able to get it to work on my MultiSite network.
Here is a good overview of the problem. I am using version 1.1 of this plugin.
]]>Does this work just with BuddyPress running in WordPress, or does it need multisite/network enabled as well?
I want to pre-populate a BP site with several dozen users, but I don’t need multiple blogs at this stage.
https://www.ads-software.com/extend/plugins/simple-import-users/
]]>While it does create a new user, it doesn’t work with multiple emails. Nor does it send out the email notification.
In other words, totally useless ??
https://www.ads-software.com/extend/plugins/simple-import-users/
]]>Found the answer and figured I would share.
Go to roughly line 354 or so and find this code block…
$uarray = split( '@', $user['email'] );
$user['username'] = sanitize_user( $uarray[0] );
Now change it to this…
$uarray = split( '@', $user['email'] );
$uarray = preg_replace("/[^a-zA-Z0-9\s]/", "", $uarray);
$user['username'] = sanitize_user( $uarray[0] );
That’s it.
]]>Catchable fatal error: Object of class WP_Error could not be converted to string in /xxxx/wp-includes/formatting.php on line 2822
]]>What happens when there is a collision in user names? Is there an option to automatically alter user names until they are unique?
I see Network is required. Are user names unique within a single subnetwork blog, or are they global across all network sites?
Incidentally, the description says email account generated where obviously user name generated is intended.
https://www.ads-software.com/extend/plugins/simple-import-users/
]]>Fatal error: Call to undefined function add_user_to_blog() in C:\Programme\xampp\htdocs\blog\wp-content\plugins\simple-import-users\simple-import-users.php on line 396
]]>Anybody know of a plugin with this functionality for a non-mu blog? Trying to use it to mass import subscribers to a new membership site.
]]>I love this plugin, and have it running on 3 different sites. But I’ve noticed a flaw in the install files:
In the core plugin file simple-import-users/simple-import-users.php, there are two hard-coded instances of a blog name called “Blogs@Baruch”. These occur in the subject of emails sent to new users and in the text of the email itself.
So upon install and activation, it is necessary to edit the plugin files to reflect your actual blog/site name. Otherwise all your new users are sent emails with subject lines reading ‘Your Blogs@Baruch account has been created’, and body text also referencing Blogs@Baruch.
Hoping one of the plugin developers sees this and makes the change to a future version!
https://www.ads-software.com/extend/plugins/simple-import-users/
]]>I also have the same problem, can only import one email at a time.
]]>does not work with BP 3.0.1 and BP 1.2.5.2
]]>Broken, does nothing
]]>Catchable fatal error: Object of class WP_Error could not be converted to string in /XXXXXX/chicagoshottestpartiesonline.com/wp-includes/formatting.php on line 2772
https://www.ads-software.com/extend/plugins/simple-import-users/
]]>Fatal error: Call to undefined function add_user_to_blog() in …plugins/simple-import-users/simple-import-users.php on line 352
]]>