Group registration in newsletters conflicts with the "Use email as username" feature
- Status
- Open
- Subject
- Group registration in newsletters conflicts with the "Use email as username" feature
- Version
- 6.x
7.x
8.x
9.x - Category
- Conflict of two features (each works well independently)
- Feature
- Newsletters
User Administration (Registration, Login & Banning) - Submitted by
- Marc Laporte
- Lastmod by
- Marc Laporte
- Rating
- Description
To reproduce
- Install a fresh Tiki
- Create some usernames as usual
- Set "Use email as username" feature to yes
- Create more users (this time, username will be the email)
- Create a newsletter
- Subscribe the Registered group to the newsletter
- Send a newsletter
The system will crash and be unable to send the newsletter because some users don't have valid emails. If you error reporting is activated, you will get a message like this:Copy to clipboardSystem error. The following error message was returned: Duplicate entry '3-mcradmin-g' for key 'PRIMARY' The query was: INSERT INTO `tiki_newsletter_subscriptions` (`nlId`,`email`,`code`,`valid`,`subscribed`,`isUser`,`included`) VALUES (?,?,?,?,?,?,?) Values: 3 mcradmin 6b78cc21c16e768dd8fbb6b538c6bf78 y 1339700591 g n The built query was likely: INSERT INTO `tiki_newsletter_subscriptions` (`nlId`,`email`,`code`,`valid`,`subscribed`,`isUser`,`included`) VALUES ('3','mcradmin','6b78cc21c16e768dd8fbb6b538c6bf78','y','1339700591','g','n') Things to check: Is your database up and running? Is your database corrupt? Please see how to repair your database Are your database credentials accurate? (username, database name, etc in db/local.php) Did you complete the Tiki Installer? Please see the documentation for more information.- Solution
- The system should check if all values are valid emails, and then ignore and report the usernames in the errors.
- Workaround
Rename all the users to have proper emails. (Really, you should have done this already for consistency.
- Importance
- 2
- Easy to solve?
- 4
- Priority
- 8
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 4244
- Created
- Thursday 14 June, 2012 21:58:43 UTC
by Marc Laporte - LastModif
- Monday 28 October, 2013 07:10:50 UTC