• Resolved loukky

    (@loukky)


    The latest version,when i test request sub i found this issue,Maybe it is a bug?
    Some mail address showed its not valid.
    like someone@students.solano.edu

Viewing 15 replies - 1 through 15 (of 56 total)
  • Plugin Author WPKube

    (@wpkube)

    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.

    Thread Starter loukky

    (@loukky)

    HI @wpkube
    I have try sub without comment…

    Plugin Author WPKube

    (@wpkube)

    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.

    Thread Starter loukky

    (@loukky)

    Hi @wpkube
    This is my link,you can try here

    https://loukky.com/comment-subscriptions?srp=1868&srk=c588b142542d2f32de761a79bc143aec&sra=s&srsrc=f

    Plugin Author WPKube

    (@wpkube)

    Hi @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.

    Thread Starter loukky

    (@loukky)

    Hi @wpkube
    I have change only one there…
    You know,www.google.com can not access from some places,so i change ‘www.google.com’ to www.recaptcha.net
    Like this:
    https://github.com/stcr/subscribe-to-comments-reloaded/pull/665#issue-1006633952
    note:only google reCAPTCHA site.

    • This reply was modified 4 years, 5 months ago by loukky.
    • This reply was modified 4 years, 5 months ago by loukky.
    Plugin Author WPKube

    (@wpkube)

    Hi @loukky

    In wp_subscribe_realoded.php on 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 false or show the email address.

    Thread Starter loukky

    (@loukky)

    It showed string(28) "someone@students.solano.edu"

    Plugin Author WPKube

    (@wpkube)

    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.php on 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).

    Thread Starter loukky

    (@loukky)

    Nothing is displayed.
    And do you have Telegram or discord?

    Plugin Author WPKube

    (@wpkube)

    Did that email format work fine before? If yes, then in wp_subscribe_reloaded.php on 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.

    Thread Starter loukky

    (@loukky)

    Not work either….
    And my email work very fine before i update to the lasted version….

    Plugin Author WPKube

    (@wpkube)

    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.zip

    First 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.

    Thread Starter loukky

    (@loukky)

    After i test…from version 210104…it showed

     Email address is not valid
    
     Challenge answer is not correct

    But version 200813 work fine……..

    Plugin Author WPKube

    (@wpkube)

    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_dump calls 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.

Viewing 15 replies - 1 through 15 (of 56 total)

The topic ‘Email address is not valid’ is closed to new replies.