Closed (fixed)
Project:
Simplenews
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2012 at 23:19 UTC
Updated:
13 Feb 2012 at 14:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
berdirIt says what it is.
Somehow, Simplenews tries to save a subscriber with an empty mail address. I don't know how that could happen.
When reporting bugs, you need to report them so that we are able to reproduce them. There are two ways to do that.
a) Give us detailed steps on how to reproduce it on a clean/new installation of Simplenews. Have a look at #1400124: Undefined index: simplenews_subscriber in simplenews_build_unsubscribe_mail() when unsubscribing anonymous users to see how that could look like (You don't need to debug the code like that report did, just the detailed steps are important).
b) Provide us with a dump of your data (e.g. use the contact form on my profile) and then explain how to trigger that error there.
Comment #2
visum commentedMy site is also throwing this error when a user tries to register a new account, whether or not he has chosen to subscribe to the one available newsletter.
Anonymous users have no problem subscribing through the block form, and existing users can subscribe without error.
I'll try to post again here soon with steps to reproduce.
Comment #3
miro_dietikerDo you hide your email field or do you use tools like logintoboggan?
We didn't test the software with special addon modules that tweak the registration process too much.
As Berdir said, we'll need a proper report or we won't be able to help.
Comment #4
visum commentedThe error seems to occur when a person attempts to create an account using an e-mail address that is already subscribed to the newsletter
Steps to reproduce:
Now...
From a privileged browser, go in to the newsletter subscription list and delete the e-mail address in question. Try to register the new account again, and the error doesn't appear.
Hope that helps.
Comment #5
berdirYes, that's perfect :)
The attached patch fixes the bug and adds test coverage for this case.
PS: There are very few reasons to use any other version than -dev because everything is commited against that, needs to be tested against that and will then find it's way into the next release.
Comment #6
miro_dietikerJust perfect. Great to have this covered too.
Comment #7
visum commentedGot it, thanks!