ande1352
Member
Posted 1 year 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/
theresa95
Member
Posted 1 year ago #
The same here. Using 2.52 for now.
mcstevem
Member
Posted 1 year 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.
@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.
mcstevem
Member
Posted 12 months ago #
@lester: Production site (reverted to v2.52) is newscenter.berkeley.edu.
theresa95
Member
Posted 12 months 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.
@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.
Subharanjan
Member
Posted 11 months 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.
Subharanjan
Member
Posted 11 months 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. :)
klevismiho
Member
Posted 11 months ago #
Subharanjan thank you very much, your solution to solve "Failed To Verify Referrer" worked for me.
organicjar
Member
Posted 11 months 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!
@Subharanjan: Thanks, I fixed it - http://plugins.trac.wordpress.org/changeset/554123
@ organicjar: i am unable to reproduce the problem on my end.
organicjar
Member
Posted 11 months ago #
@Lester All of a sudden it's working :) cheers!
WPChina
Member
Posted 10 months 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?
mcstevem
Member
Posted 10 months 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.
Subharanjan
Member
Posted 10 months 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. ]
WPChina
Member
Posted 10 months 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~
WPChina
Member
Posted 10 months 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.
sailen82
Member
Posted 10 months 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..