WordPress.org

Ready to get started?Download WordPress

Forums

Navayan Subscribe
Sending Two Emails (29 posts)

  1. SweetBillyPilgrim
    Member
    Posted 1 year ago #

    Hello,

    Love the plug-in. Exactly what I'm looking for. However I have developed a problem I hope you can help with.

    I installed a few "subscribe to my blog" plug ins to test on my site.

    Whilst testing them I probably installed and deleted yours a couple of times and now when I notify subscribers I get two exactly the same emails sent?

    Any idea how I can correct this? And is there a way to remove all evidence of the plug in when deleting it? I thought a way to cure my problem might be to start over, but I've removed it and re-installed it and the problem persists!

    HELP!

    http://wordpress.org/extend/plugins/navayan-subscribe/

  2. snow6
    Member
    Posted 1 year ago #

    I face with this problem too.

  3. Amol Nirmala Waman
    Member
    Plugin Author

    Posted 1 year ago #

    Please install new version 1.1.8. Rate it if you like. Mark this topic as 'resolved' if this solves your problem.

  4. BirgitteTherkelsen
    Member
    Posted 1 year ago #

    Hi, it is still sending out several emails to subscribers.... much to their annoyance.

    I hope you can fix this soon. I have version 1.1.8

    Sincerely Birgitte

  5. taylorleighca
    Member
    Posted 1 year ago #

    ...I'm running 1.1.8 as well and my client's subscribers are receiving more 2+ emails a post. Any suggestions on resolving this situation?

    Thanks a million.

  6. 3NT
    Member
    Posted 1 year ago #

    Just upgraded to everything latest. I’m joining the company – i’m getting double notification on publishing news. Did anybody resolve the problem.

  7. serith
    Member
    Posted 1 year ago #

    This plugin fits my needs perfectly, but I am also have the same issue of subscribers receiving 2 email. I am eager to use this plugin but I am forced to disable it until this issue is resolved as I do not want to bombard my subscribers.

  8. phil88530
    Member
    Posted 1 year ago #

    I have the same issue, double email notifications received

  9. phil88530
    Member
    Posted 1 year ago #

    I actually find out why it's sending 2 emails:

    because when you update/create a post, the save_ppst method seems getting called twice.

  10. serith
    Member
    Posted 1 year ago #

    phil88530 - is this something we can fix ourselves or do we have to wait for the fix to be implemented in the next release of this plugin?

  11. phil88530
    Member
    Posted 1 year ago #

    you can fix this urself by:

    define your own meta-tag for the post, which indicates if your post has email notification sent or not.

    for the first email sending, you then set this meta-tag to be false(or true depends how to define it), and check it in the beginning of the email sending, to ensure that you don't send it twice.

    function nys_UpdateBox(){
    global $metaEmailSent;

    if ( $value && !empty($value) && !get_post_meta($post->ID, $metaEmailSent)){
    echo NAVAYAN_SUBSCRIBE::nys_SendNotification( $post->ID );
    //ensure only send email once when create
    update_post_meta($post->ID, $metaEmailSent, true);
    }
    }

  12. serith
    Member
    Posted 1 year ago #

    phil88530 - I'm not very familiar with meta-tags and php

    How do I define a meta-tag for the post?

    and which file do I put that code?

    thanks for the help so far

  13. Amol Nirmala Waman
    Member
    Plugin Author

    Posted 1 year ago #

    all, try new version 1.1.9

  14. serith
    Member
    Posted 1 year ago #

    I have installed the new version 1.1.9 and my subscribers are still getting 2 emails.

  15. tim
    Member
    Posted 1 year ago #

    i think it has to do with sending an email for all new posts AND sending an email for updates when you choose to click the subscribe button.

    i just started testing this out to see how it works. the original post when i choose the 'notify subscribers' box sends two emails. if i go back and update that post and 'notify subscribers' again. it only sends one email for the update.

    more testing on my part needed.

    also, is there a way to set this up (like there used to be) to default to notify? i update using an app on my phone alot and it doesn't notify subscribers anymore. (just tested this out)

    thanks
    Tim

  16. larsgs
    Member
    Posted 1 year ago #

    Great plugin - but I really need the 2 email issue to be fixed.

  17. Galeforce99
    Member
    Posted 1 year ago #

    Same problem - 2 emails, on version 1.1.9

    Its a great plugin, but this problem is annoying.

  18. fuf
    Member
    Posted 1 year ago #

    This problem STILL isn't fixed. The biggest problem in an otherwise great plugin.

  19. hmgauna
    Member
    Posted 1 year ago #

    This was really silly. I had these problems:

    1. I found that the plugin was not working on Publish with Custom Post Types, but was working on Saving them.
    2. The save option always triggered duplicates.

    Being clear that the issue was the save_post hook, I replaced it by publish_post... And that made the work. Which is in fact strange, but maybe someone come with the explanation on why it was triggered twice in that case.

    If this is a stable solution, the whole if ( isset($_POST['publish']) ){} elseif ( isset($_POST['save']) ){} does not make any sense. I think that @Amol Nirmala Waman might be able to explain why he put that in the very first place.

    Besides that, I wrote a bit of code to make the plugin work with custom post types. The problem here was that custom post types have their own publish action, in the format publish_customposttype. So for me this is doing the work, right now:

    /***************************************************
    * NOTIFICATION CHECKBOX
    * *************************************************/
    if ( $_POST['post_type'] != 'post'  ) {
    	$type_publish = 'publish_'.$_POST['post_type'];
    	} else { $type_publish = 'publish_post'; }
    if ( has_action($type_publish) || has_action('save_post') ){
    	add_action( $type_publish, 'nys_UpdateBox', 10, 1 );
    }

    Using WordPres 3.5

    I hope it helps, and if Amol needs to point out something about this, please let us everyone know.

    Thanks for the support.

  20. gladman
    Member
    Posted 1 year ago #

    Is there a good alternative? Two emails getting sent on my blog too.

  21. simbo108
    Member
    Posted 1 year ago #

    Finally found out the problem with sending 2 emails

    here is the link

    http://www.plrways.com/helps/help-for-navayan-subscribe/

    Good luck

  22. goodplacesgreatthings
    Member
    Posted 1 year ago #

    As of yesterday, my blog is multiple email notifications to subscribers. Usually, it sends 2 emails every time. For some reason, perhaps the fact that I did a custom save, yesterday it sent 4 notifications.

    Can someone please help with this? I know our subscribers are annoyed. I will not custom save another post so I am not concerned about the fix for that function. Still, sending 2 emails each time is an ongoing problem.

    Is there a fix coming? When I click the link above, it appears to be "lessons". Surely there is a simple answer without paying for a class.

  23. da4kinov
    Member
    Posted 1 year ago #

    Thank you,hmgauna!
    You saved my day :) Now sending only 1 email.

  24. goodplacesgreatthings
    Member
    Posted 1 year ago #

    I just reread hmgaunal's post and wish I knew what to do to fix the problem, but not sure just how to follow these instructions. If someone would tell me more, I would really appreciate it.

    Where do I go to enter the code that is suggested?

    Do I erase something before adding the lines above?

    I'm really a novice, as you can see.

    Thanks so much!

  25. Phoenix Helix
    Member
    Posted 1 year ago #

    I tried hmguanal's fix, but being a code novice, I created a problem with my entire website. Deleting Navayan restored my website to normal, thankfully. Since I don't want to spam my subscribers, I've switched to Subscribe2 instead.

  26. IIStevowII
    Member
    Posted 1 year ago #

    The problem occurs because of post revisions. So a simple check wether or not a post is a revision will solve the problem.

    In the navayan-subscribe folder should be a functions.php file.

    Around line 128 there should be a function called: function nys_UpdateBox() {, change that to: function nys_UpdateBox($post_id) {

    2 lines below change the if statement to: if (!empty($checked) && !wp_is_post_revision($post_id)) {

    Problem fixed.

  27. Amol Nirmala Waman
    Member
    Plugin Author

    Posted 12 months ago #

    All, please upgrade to v1.13

  28. gdsenior
    Member
    Posted 9 months ago #

    My blog site is http://www.seniormedaids.com/

    I found this information helpful. However, me being a code novice my main problem is my blog is sending (4) four emails at a time about the same notification of a new post.

    Please check this out for me, I am still having this problem with my comments on my blog site, I want to keep these potential customers/followers etc.

    I want to only send (1) one email not (4) four.

  29. gdsenior
    Member
    Posted 8 months ago #

    My blog site is http://www.seniormedaids.com/

    I found this information helpful. However, me being a code novice my main problem is my blog is sending (4) four emails at a time about the same notification of a new post.

    Please check this out for me, I am still having this problem with my comments on my blog site, I want to keep these potential customers/followers etc.

    I want to only send (1) one email not (4) four.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.