Hi,
I’ve recently started using WP All Import and I’m importing users – however they have the same email, but it looks like either this doesn’t over-ride the ignore option in importing or its failed.
Does anyone know how to import users and get it to allow same email addresses?
I wrote the following patch to remove the “Deprecated: Creation of dynamic property” warnings when running under PHP 8.2.
diff --git a/c2c-plugin.php b/c2c-plugin.php
index dee9b6c..cda2342 100644
--- a/c2c-plugin.php
+++ b/c2c-plugin.php
@@ -59,6 +59,28 @@ abstract class C2C_Plugin_039 {
private $setting_index = 0;
+ protected $admin_options_name;
+ protected $config;
+ protected $disable_contextual_help;
+ protected $disable_update_check;
+ protected $hook_prefix;
+ protected $form_name;
+ protected $menu_name;
+ protected $name;
+ protected $nonce_field;
+ protected $settings_page;
+ protected $show_admin;
+ protected $textdomain;
+ protected $textdomain_subdir;
+ protected $author_prefix;
+ protected $id_base;
+ protected $options_page;
+ protected $plugin_basename;
+ protected $plugin_file;
+ protected $plugin_path;
+ protected $u_id_base;
+ protected $version;
+
/**
* Handles installation tasks, such as ensuring plugin options are instantiated and saved to options table.
*
]]>
I needed a similar functionality that this plugin is providing, but unfortunately, it hasn’t been updated in ages.
I was looking for an alternative solution and one way to have multiple accounts using the same email is to use the Gmail alias feature.
I wrote an article about it, if anyone is interested.
]]>This sure would be handy if updated!
]]>the plugin generates this line in my ../wp-content/debug.log:
[2-Jan-2021 08:07:26 UTC] PHP Notice: wpdb::prepare wurde fehlerhaft aufgerufen. Die Abfrage enth?¤lt nicht die korrekte Anzahl von Platzhaltern (1) f??r die Anzahl der ??bergebenen Argumente (2). Weitere Informationen: Debugging in WordPress (engl.) (Diese Meldung wurde in Version 4.8.3 hinzugef??gt.)
allow-multible-accounts.php:
public function count_multiple_accounts( $email, $user_id = null ) {
global $wpdb;
if ( $user_id && is_object( $user_id ) ) {
$user_id = $user_id->ID;
}
$sql = "SELECT COUNT(*) AS count FROM $wpdb->users WHERE user_email = %s";
if ( $user_id ) {
$sql .= ' AND ID != %d';
}
$count = (int) $wpdb->get_var( $wpdb->prepare( $sql, $email, $user_id ) );
return $count;
}
my solution:
public function count_multiple_accounts( $email, $user_id = null ) {
global $wpdb;
if ( $user_id && is_object( $user_id ) ) {
$user_id = $user_id->ID;
}
$sql = "SELECT COUNT(*) AS count FROM $wpdb->users WHERE user_email = %s";
if ( $user_id ) {
$sql .= ' AND ID != %d';
$count = (int) $wpdb->get_var( $wpdb->prepare( $sql, $email, $user_id ) );
} else {
$count = (int) $wpdb->get_var( $wpdb->prepare( $sql, $email ) );
}
return $count;
}
]]>
I just confirmed that this plugin works with WP 5.5 and Woocommerce 4.4.1 as long as the if email exists in function wc_create_new_customer in /woocommerce/includes/wc-user-functions.php is removed for Woocommerce.
Simply remove the one line after the if email_exists check in wc-user-functions.php to get it to work.
if ( email_exists( $email ) ) {
}
]]>
Please update this plugin. It appears to be the only one that does this function. Thank you!!!!
]]>Hi everyone –
I’m debugging some other issues with Gravity Forms and I realized that one of the issues may be related to this no longer working in 5.4.1. Can someone in the community check to see if they are running in to any issues as well?
Cheers!
]]>When register new user I get this error:
{“success”:false,”data”:{“message”:[“Email already exists.”]}}
from page admin-ajax.php
Website page: https://farmaci.progettosalute.life/registrazione/
Installed plugin: User Registration – Custom Registration Form, Login And User Profile For WordPress (https://wpeverest.com/wordpress-plugins/user-registration/?utm_source=wporg&utm_medium=link&utm_campaign=ur-upgrade-to-pro)
Any ideas?
thanks
]]>Hi Scott,
Are you still supporting this plugin? I’ve tested your plugin with v5.3.2 and it works fine.
If you’re not supporting / updating the plugin anymore do you know any alternatives to your plugin?
All the best
Kind regards, Twan
]]>Hello
First I want to say, thanks for that plugin that’s really useful.
It works great when you enforce users to have an email address. However wordpress allows to create user without a email using wp_create_user.
What happens in that case is that the hack_pre_user_email filter is called with $email having the value ”. Then since ” is not an email adress the filter return null which isn’t a valid value for wp_create_user and causes the creation to fail.
For now, I’ll make a quick patch to make it work on my wordpress, but I bring this issue here in order to see if that case should be handled by the plugin and if yes in what way ?
Thanks for reading this,
Nelson
tried to allocate 16072704 bytes in /wp-content/plugins/allow-multiple-accounts/allow-multiple-accounts.php on line 442
Get a 502 time out when the query is cancelled
]]>We cannot create multiple user accounts after update. We have Woocommerce and WordPress.
Does it work for anybody still?
]]>Hi,
i have a few important questions about the plugin.
Does the plugin store any personal data in the wordpress data or others?
Does the plugin send any data to third party servers?
Does the plugin use cookies?
Does the plugin use google webfonts?
The reason is the EU GDPR and whether the plugin is compliant with it.
Thank you!
]]>Can this plugin be updated to work with the latest version of wordpress.
]]>Hi everyone,
Still same problem. Hope someone found a workaround and can share the solution.
Thanks
Starting with WordPress 4.8.3 a change was made to wpdb::prepare() to show a notice if the number of parameters didn’t match the number of placeholders in a SQL string.
Notice: wpdb::prepare was called <strong>incorrectly</strong>. The query does not contain the correct number of placeholders (1) for the number of arguments passed (2). Please see <a href="https://codex.www.ads-software.com/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 4.8.3.)
The fix:
In allow-multiple-accounts.php, replace the count_multiple_accounts() function, lines 512 – 525:
public function count_multiple_accounts( $email, $user_id = null ) {
global $wpdb;
if ( $user_id && is_object( $user_id ) ) {
$user_id = $user_id->ID;
}
$sql = "SELECT COUNT(*) AS count FROM $wpdb->users WHERE user_email = %s";
if ( $user_id ) {
$sql .= ' AND ID != %d';
}
$count = (int) $wpdb->get_var( $wpdb->prepare( $sql, $email, $user_id ) );
return $count;
}
with
public function count_multiple_accounts( $email, $user_id = null ) {
global $wpdb;
if ( $user_id && is_object( $user_id ) ) {
$user_id = $user_id->ID;
}
$sql = "SELECT COUNT(*) AS count FROM $wpdb->users WHERE user_email = %s";
$params = array( $email );
if ( $user_id ) {
$sql .= ' AND ID != %d';
$params[] = $user_id;
}
$count = (int) $wpdb->get_var( $wpdb->prepare( $sql, $params ) );
return $count;
}
]]>
I know support for this has been abandoned and the previous not working in multi site thread got closed without resolving, but did anyone find a solution or come up with an alternative?
thanks
]]>First off – thanks for a great plugin, been a life-saver for me for years now. However, following the release of WP 4.7.4., it no longer seems to be working. Users attempting to register get a ’email account already in use’ message. I’m not sure this is actually tied to 4.7.4. – it’s just that that is the version in use when this was first reported to me – it may have happened previously, but not been observed.
Many thanks for any help.
]]>Hi. Great plugin. Is there any way to create a unique Profile Picture for each user account created (under the one email address)? That would be really nice.
Thanks!
NK
]]>I am using buddy press and user using multiple account for same email address
when admin user login that onlying display in admin view area
.
If i have five multiple account i want to that multiple account handle by client request.
]]>Hi there, this plugin is a fantastic tool that we would love to use for distributing video tutorials for small groups who do not all have their own email address and would like to know if there is an imminent update to this plugin?
Many Thanks
James
]]>Hi, I am trying to use this plugin with a registration form created with formidable forms, but it doesn’t work and when I try to create a new account with the same email address used in another I get the message “This email is already present in our archives” and I can’t create the new account. On this forum I did find the link https://formidableforms.com/help-desk/allow-single-email-for-multiple-accounts/ to formidable form forum where they created a function for a user that use your plugin with formidable form and it seems to work reading the message. I did add their function to my function.php but I still get the same error message above. So I ask you way I can’t get your plugin work? I hope you can help me to solve this problem. Thank you in advance.
]]>Hello,
I have installed the plugin and I do not know how a user would create additional accounts? I have reviewed the docs and the images and my site looks the same. Can someone please tell me how the plugin works?
I have buddypress and am using the BP registration form but I don’t see any place for someone to add additional people to their accounts. I don’t see it in the backend either.
]]>hi I am using this plugin with “Import users from CSV”.
It adds the required field to the “Import users from CSV” plugin and users are imported into the site
however only the first of the multiple users show the email address in both “view all users” or the plugin.
Am I doing something wrong or is this a compatibility issue?
thanks
]]>hi there please help, plugin is not working with gravity forms is there anything functions that I need to insert on functions.php?
thanks in advance
]]>Anyone know how to get this working with Gravity Forms?
Doesn’t work either with or without Gravity Forms User Registration plugin.
I tried KevED’s code from another post on here, but it does nothing.
]]>Our site uses the Ultimate Member plugin to control the member features. What I like to know if ther are any issues between those two plugins and if the multiple email feature will functions properly with the Ultimate Member plugin.
]]>As reported 3 months ago, does not allow for multiple accounts if WooCommerce is activated.
https://www.ads-software.com/plugins/allow-multiple-accounts/
]]>Hi, great plugin. Just have some questions. If it helps, we’re using WP Multisite.
1. How does the system “decide” which account to use while a user is logged in?
2. When a user does a password reset, are all accounts affected?
3. Probably related to #1 and #2, which account password does the system check the email address associated to it?
https://www.ads-software.com/plugins/allow-multiple-accounts/
]]>