Email address is not valid
-
The latest version,when i test request sub i found this issue,Maybe it is a bug?
Some mail address showed its not valid.
likesomeone@students.solano.edu
-
Hi @loukky
I just tried that format of email address and didn’t get an issue.
This is for the “request management link” form, correct? And the email address you tried does have active subscriptions? If there are no active subscriptions for an email address it will show the “Email address is not valid” error.
HI @wpkube
I have try sub without comment…Hi @loukky
I tried that one as well, it worked fine.
Can you send over the URL to your site? Trying the subscription might give me an idea as to what’s going on.
Hi @wpkube
This is my link,you can try herehttps://loukky.com/comment-subscriptions?srp=1868&srk=c588b142542d2f32de761a79bc143aec&sra=s&srsrc=fHi @loukky
This is weird. The same email on my site works fine but not on yours.
Do you have experience with making modifications to the plugin files? If yes, I can let you know what exactly to add so we can get some additional information on why the email address is seen as invalid.
Hi @wpkube
I have change only one there…
You know,www.google.comcan not access from some places,so i change ‘www.google.com’ towww.recaptcha.net…
Like this:
https://github.com/stcr/subscribe-to-comments-reloaded/pull/665#issue-1006633952
note:only google reCAPTCHA site.Hi @loukky
In
wp_subscribe_realoded.phpon line 765 you’ll see:$email = $this->utils->check_valid_email( $sre );Just after that line (and before the
} else {part which is on line 766) add this:var_dump( $email );Then try the form submission again and let me know what’s shown at the top of the content.
You’ll see the full path to the file and at the end it will either say
falseor show the email address.It showed
string(28) "someone@students.solano.edu"If it returns the email address then it passes the validity check.
Let’s go down further the subscription process. First, remove the previous change.
Then in
templates/subscribe.phpon line 72 is:$stcr_post_email = $wp_subscribe_reloaded->stcr->utils->check_valid_email( $email );Just after that add:
var_dump( $stcr_post_email );And then check again what’s shown (like before).
Nothing is displayed.
And do you have Telegram or discord?Did that email format work fine before? If yes, then in
wp_subscribe_reloaded.phpon line 721 you’ll see:return;Remove that line and then try again.
That’s something that changed in the latest update and if it worked fine before, should be the cause of the issue.
No, sorry, I don’t use those services. There is a contact form at subscribe-reloaded.com/contact so you can contact us directly via email.
Not work either….
And my email work very fine before i update to the lasted version….Do you remember which version did you use before?
You can see the versions over at https://wordpress.org/plugins/subscribe-to-comments-reloaded/#developers
And you can download the different versions:
https://downloads.wordpress.org/plugin/subscribe-to-comments-reloaded.211019.zip
https://downloads.wordpress.org/plugin/subscribe-to-comments-reloaded.210315.zip
https://downloads.wordpress.org/plugin/subscribe-to-comments-reloaded.210126.zipFirst one is from October. Second one March. Third one January.
I don’t think you had an older version that that.
To test a different version you could disable and delete the plugin, then install it using the ZIP package (from the links above).
But, keep in mind that deleting it will also delete your settings. It will not delete subscriptions if you have the “Safely uninstall” option set to “Yes” in WP admin > StCR > Options. But it will delete the settings and restore them back to default when you activate the plugin again.
Alternatively you could use an FTP client to just overwrite the plugin files with the older version files, in that case nothing gets deleted.
After i test…from version 210104…it showed
Email address is not valid Challenge answer is not correctBut version 200813 work fine……..
In version 210104 there was a change to the “request management link” form which will show “email address is not valid” if there’s no subscriber with that email, but that does not apply to “subscribe without comment” form.
Google reCAPTCHA was added to “subsribe without comment” form.
Other than that, no changes related to that functionality were made.
But, it might be related to reCAPTCHA (not sure how but everything is possible), because “Challenge answer is not correct” shouldn’t be showing there.
Can you try disabling reCAPTCHA and then try the email again?
If it makes no difference replace subscribe.php code with this code.
The difference between original (latest version) and the one from the link is just 3
var_dumpcalls in there at different locations. One location is the same as before, second one at the point where the variable that stores the validity state of the email is set and the third one is inside of the output before the validity is checked and the output “Email address is not valid” is displayed.
The topic ‘Email address is not valid’ is closed to new replies.