WordPress.org

Forums

WP-EMail
2.52 worked, but 2.60 does not for me (22 posts)

  1. ande1352
    Member
    Posted 3 years ago #

    After updating the plugin to 2.60, the mail function stopped working. Now, instead of giving the usual confirmation message that the item has been mailed, it just says:

    "-1"

    Not sure what's going on there.

    I downgraded back down to 2.52, and the plugin started functioning correctly again.

    http://wordpress.org/extend/plugins/wp-email/

  2. theresa95
    Member
    Posted 3 years ago #

    The same here. Using 2.52 for now.

  3. mcstevem
    Member
    Posted 3 years ago #

    Same story hereas well, though the error I consistently get after filling in the form and clicking Mail It! is "Failed To Verify Referrer"

    Reverting back to 2.52 puts me back in business without any other changes.

  4. Lester Chan
    Member
    Plugin Author

    Posted 3 years ago #

    @ande1352, @ theresa95 Are you using any sort of caching plugin like w3tc? If so please empty those caches so that they can be regenerated. Also your browser might be caching those JS files if you are using the caching plugin. So just empty them

    In Chrome, just got to History -> Clear Browsing History. Check "Empty Cache" and choose "Since Beginning Of Time"

    @mcstevem what is your site url? The reason you are getting "Failed To Verify Referrer" because additional security has been added.

  5. mcstevem
    Member
    Posted 3 years ago #

    @lester: Production site (reverted to v2.52) is newscenter.berkeley.edu.

  6. theresa95
    Member
    Posted 3 years ago #

    @Lester Chan

    Not AFAIK. Here are all active plugins:

    Better WordPress reCAPTCHA ( 1.0.1 )
    HeadSpace2 ( 3.6.41 )
    WP-EMail ( 2.52 )
    WP-UserOnline ( 2.81 )

    Clearing cache does not make any difference. No big problem. 2.52 is doing the job. Thanks.

  7. Lester Chan
    Member
    Plugin Author

    Posted 3 years ago #

    @mcstevem, @ theresa95: I might need to see it live or any dev site that you have so I can see the AJAX call being made.

    But if WP Email 2.52 is working fine you can stick with it. Not much feature changes accept for added security when sending the email via nonce.

  8. Subharanjan
    Member
    Posted 2 years ago #

    Yes, the wp-email_nonce parameter in the ajax call is undefined. What is the cause ?

    Ajax Source:
    action=email&youremail=testanywebsite@gmail.com&yourremarks=test&friendemail=testjoomlaphp@gmail.com&imageverify=PJL3A&p=517&wp-email_nonce=undefined

    Please let me know any fix for this.

  9. Lester Chan
    Member
    Plugin Author

    Posted 2 years ago #

    What is your site URL?

  10. Subharanjan
    Member
    Posted 2 years ago #

    Hi Lester,

    Sorry for the late response, but I think, I have fixed the problem. May be you can fix this in the plugin code too.( not sure whether its a problem for everyone )

    Thanks,

    • In line no: 837 of wp-email.php file, the function "process_email_form" checks for the wp-email-nonce but doesn't check which form type is being submitted which are:
      1. General styled - function email_form_header( )
      2. PopUp styled - function email_popup_form_header( )
    •  

    • And the PopUp styled form does not contain the code(mentioned below) to generate the nonce for the form where as its there inside the general styled form.
    • $output .= '<p style="display: none;"><input type="hidden" id="wp-email_nonce" name="wp-email_nonce" value="'.wp_create_nonce('wp-email-nonce').'" /></p>'."\n";

    • Fix:
      In line 666 of wp-email.php look for the function "email_popup_form_header" and go to line 697 , add this line below:
    • $output .= '<p style="display: none;"><input type="hidden" id="wp-email_nonce" name="wp-email_nonce" value="'.wp_create_nonce('wp-email-nonce').'" /></p>'."\n";

      This will solve the "Failed To Verify Referrer" problem. :)

  11. klevismiho
    Member
    Posted 2 years ago #

    Subharanjan thank you very much, your solution to solve "Failed To Verify Referrer" worked for me.

  12. Lester Chan
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks, will fix it!

  13. organicjar
    Member
    Posted 2 years ago #

    So I was getting the "Failed To Verify Referrer" and added the code like you mentioned and now I keep getting this error:

    Could not instantiate mail function.
    An error has occurred when trying to send this email:
    » Could not instantiate mail function.

    Any ideas?
    Cheers!

  14. Lester Chan
    Member
    Plugin Author

    Posted 2 years ago #

    @Subharanjan: Thanks, I fixed it - http://plugins.trac.wordpress.org/changeset/554123
    @ organicjar: i am unable to reproduce the problem on my end.

  15. organicjar
    Member
    Posted 2 years ago #

    @Lester All of a sudden it's working :) cheers!

  16. WPChina
    Member
    Posted 2 years ago #

    @Subharanjan: I just found my users were having this problem for a few weeks, and I tried your solution. It unfortunately did not work for me.

    Any idea on a fix for this?

  17. mcstevem
    Member
    Posted 2 years ago #

    Checking back in belatedly to say that, after changing web hosts (to WP Engine) and cleaning up lots of bits and pieces as part of the migration, I am now able to successfully update wp-email to v2.60 without losing functionality as I did before.

  18. Subharanjan
    Member
    Posted 2 years ago #

    @WPChina:As Lester has alredy fixed the core code of the plugin that I had mentioned as work around, latest version should work directly. http://plugins.trac.wordpress.org/changeset/554123

    Can you please share any dev. or stage site url to have a look.

    Subharanjan
    [ Signature moderated. ]

  19. WPChina
    Member
    Posted 2 years ago #

    @Subharanjan: thanks for your help. I have this plugin on more than 2 dozen different WordPress installations on different servers in different geographic locations on either CentOS, Ubuntu, or RedHat, and all have this same problem. I will temporarily disable this plugin on all sites, and in a few months come back and see if there is a better solution~

  20. Lester Chan
    Member
    Plugin Author

    Posted 2 years ago #

  21. WPChina
    Member
    Posted 2 years ago #

    Thank you Lester. I checked that link and read all the comments. All my sites run WP-Super-Cache and we disabled those and played around with wp-config, but the "Failed To Verify Referrer" still appears. We will continue to play around with this and see if we solve it another way.

  22. sailen82
    Member
    Posted 2 years ago #

    hi I am using this plugin for my http://www.gradea.tv/my-new-video/ site
    I am using both of the version (2.52 and 2.60) but it wont work.It not sending any mail any one.I am not using any type of catch plugins.Please help me out of there..

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags