Buddypress on Main site
Everything up to date
Is there a limit to the number of emails I can put in?
I have a high school with 1767 students that I need to get their emails into. I can get 1193 and it will let any one register with any email.
Any help is appreciates.
Is it not allowing you to add more than 1193, There is no limit(It is being stored in options table which is a mysql longtext field(which is around 4GB and should allow more than 100K emails(not great for performance though as we load it as array)).
Can you please explain the current behavior( anyone can register with any email?)
I was having problems initially adding emails. If there were any spaces behind the email it would not work. Any email address could register. I removed all the spaces and tried adding all the emails in at once. When I did this I tried to register an email that was not in the list. It allowed the registration to go through.
I then started adding 50 at a time and checking each time. Things worked well until I got to 1193. When I added the 1194 email it would again allow the registration.
I do have the Auto Activate Auto Login plugin activated on the site.
Thanks for the help Brajesh
Ok, I have got the reason and yes, our regular expression is failing after the limit you specified. I got this message in debug
Warning: preg_match_all(): Compilation failed: regular expression is too large at offset
So, we need to keep the list small. Now, That will not be an issue in your case.
As I see, most of your emails are from a particular domain. Do you want to allow all users from that to register? If yes, we can use just one entry for all of them.
You must be logged in to reply to this topic.