I am using mailing list, but I am having problem with subscription.
I have 1 record in mailing list emails and every I try to add new it shows error:
user warning: Duplicate entry '1' for key 1 query: INSERT INTO mailing_list_emails (id, email) VALUES (1, 'email@domain.com') in C:\xampp\htdocs\demo\modules\mailing_list\mailing_list.module on line 85.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | mailing_list_fix_schema.patch | 2.07 KB | emichan |
Comments
Comment #1
mmachina commenteduser warning: Duplicate entry '1' for key 1 query: INSERT INTO mailing_list_emails (id, email) VALUES (1, 'email@domain.com') in /modules/mailing_list/mailing_list.module on line 85.
Yup getting the same error... anyone got any ideas?
Comment #2
PRZ commentedSame error here... anyone have anything on this yet?
Comment #3
emichan commentedHi - this is a problem with the current database schema and the way it defines the email table. I made a patch to fix this issue - tested on my own testing server.
To apply it, download the patch, and save it to your contributed modules folder. This will be the parent directory of the mailing_list module directory. Change to this directory and patch -p0 < mailing_list_fix_schema.patch.
So for example on a single site installation from drupal root after downloading the patch, cd sites/all/modules && patch -p0 < mailing_list_fix_schema.patch.
More on applying patches : http://drupal.org/patch/apply
Applying patches on Windows: http://drupal.org/node/60179
Ta!
emichan
Comment #4
maartenvg commentedThis issue has a patch, therefore CNR.
Comment #5
rcosta commentedComment #6
rjperry commentedHow do I export the emails once they have been entered?
Comment #7
vacilando commentedSubscribing
Comment #8
Jaza commentedWorking well for me. I'd say this is ready to commit.
Comment #9
litwol commentedthanks