Hi,
I think there are two things that do not work as they should.
1) every time I edit the newsletter node (original node, not versions), the scheduler settings are misconfigured. Not seem to save the settings.
2) I have also seen that every time I edit the newsletter node (and change the scheduler settings), the server sends me many mails as often I edited the node. I have received the same three newsletters (just changing the version). Looking into the DB I saw that every time I save the newsletter node, inserts a new record in the table simplenews_scheduler, instead of updating the record that already exists or create a new but annulling the previous one.
I hope I have helped and thanks for this module!
PS: The module version is the last one dev: 6.x-1.x-dev (2010-May-01)
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | simplenews_scheduler.796160_02.patch | 17.03 KB | sgabe |
| #2 | simplenews_scheduler.796160_01.patch | 17.21 KB | sgabe |
Comments
Comment #1
sgabe commentedHmm...I see the problem. I will look further into this and dig up a solution. Thanks for pointing this out!
Comment #2
sgabe commentedI am attaching a patch which I believe will fix these problems among others.
Please, test it and report back. I would like to commit these changes and roll a new release ASAP.
Note: There are some changes in the database schema, so don't forget to run update.php!
Comment #3
sfyn commentedsubbed
I am going to try out this patch right away. I will let you know how it goes.
Comment #4
sfyn commentedWhat I meant by "right away" was two days later.
For starters the update generated lots of exciting sql errors: here's a dump of drush output:
I deleted the problem record in simplenews_scheduler, and ran the failed sql queries directly. That said, you may want to adjust your update script to account for multiple records for the same node in simplenews_scheduler.
I'm going to try running with the patch now.
Comment #5
sgabe commentedYeah, that's because there are multiple records for the same node due to the inappropriate behavior of the module which is addressed by this issue. I will modify the update procedure to remove those records first, I guess it will be fine than.
Thanks for your feedback!
Comment #6
sgabe commentedI am attaching a new patch in which the update procedure deletes the duplicates and the insert/update operations are combined in one query.
Comment #7
sfyn commentedGreat - I have tested both patch in #2 with my sql hacks and patch in #6 without. Both are properly recurring daily sends.
+1 For the patchg in #6.
Comment #8
disparil commentedCongratulations, this works perfectly.
I tried the patch from # 6 and run update.php for schema changes, and nothing has broken :)
Now save the settings right. However, to leave it all working, after you apply the patch, you have to edit the newsletter node and re-save the scheduler options to make the newsletter scheduling as active.
Thanks!!
Comment #9
sgabe commentedCommitted. Thanks for your help!