• Resolved stlwmw

    (@stlwmw)


    I have a client that uses the subscribe2 plugin, and just recently, the whole thing just stopped working. Every attempt to subscribe provides a simple error:

    Sorry, but that does not look like an email address to me.

    A single use of trying to add an email threw a massive amount of errors:

    [05-Mar-2020 21:56:36 UTC] PHP Warning: Use of undefined constant IDNA_NONTRANSITIONAL_TO_ASCII – assumed ‘IDNA_NONTRANSITIONAL_TO_ASCII’ (this will throw an Error in a future version of PHP) in /home/soullici/public_html/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 1037
    [05-Mar-2020 21:56:36 UTC] PHP Warning: Use of undefined constant INTL_IDNA_VARIANT_UTS46 – assumed ‘INTL_IDNA_VARIANT_UTS46’ (this will throw an Error in a future version of PHP) in /home/soullici/public_html/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 1037
    [05-Mar-2020 21:56:36 UTC] PHP Warning: idn_to_ascii() expects parameter 2 to be integer, string given in /home/soullici/public_html/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 1037
    [05-Mar-2020 21:56:36 UTC] PHP Warning: checkdnsrr(): Host cannot be empty in /home/soullici/public_html/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 1041
    [05-Mar-2020 21:56:36 UTC] PHP Warning: Use of undefined constant IDNA_NONTRANSITIONAL_TO_ASCII – assumed ‘IDNA_NONTRANSITIONAL_TO_ASCII’ (this will throw an Error in a future version of PHP) in /home/soullici/public_html/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 1037
    [05-Mar-2020 21:56:36 UTC] PHP Warning: Use of undefined constant INTL_IDNA_VARIANT_UTS46 – assumed ‘INTL_IDNA_VARIANT_UTS46’ (this will throw an Error in a future version of PHP) in /home/soullici/public_html/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 1037
    [05-Mar-2020 21:56:36 UTC] PHP Warning: idn_to_ascii() expects parameter 2 to be integer, string given in /home/soullici/public_html/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 1037
    [05-Mar-2020 21:56:36 UTC] PHP Warning: checkdnsrr(): Host cannot be empty in /home/soullici/public_html/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 1041
    [05-Mar-2020 21:56:36 UTC] PHP Warning: Use of undefined constant IDNA_NONTRANSITIONAL_TO_ASCII – assumed ‘IDNA_NONTRANSITIONAL_TO_ASCII’ (this will throw an Error in a future version of PHP) in /home/soullici/public_html/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 1037
    [05-Mar-2020 21:56:36 UTC] PHP Warning: Use of undefined constant INTL_IDNA_VARIANT_UTS46 – assumed ‘INTL_IDNA_VARIANT_UTS46’ (this will throw an Error in a future version of PHP) in /home/soullici/public_html/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 1037
    [05-Mar-2020 21:56:36 UTC] PHP Warning: idn_to_ascii() expects parameter 2 to be integer, string given in /home/soullici/public_html/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 1037
    [05-Mar-2020 21:56:36 UTC] PHP Warning: checkdnsrr(): Host cannot be empty in /home/soullici/public_html/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 1041
    [05-Mar-2020 21:56:36 UTC] PHP Warning: Use of undefined constant IDNA_NONTRANSITIONAL_TO_ASCII – assumed ‘IDNA_NONTRANSITIONAL_TO_ASCII’ (this will throw an Error in a future version of PHP) in /home/soullici/public_html/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 1037
    [05-Mar-2020 21:56:36 UTC] PHP Warning: Use of undefined constant INTL_IDNA_VARIANT_UTS46 – assumed ‘INTL_IDNA_VARIANT_UTS46’ (this will throw an Error in a future version of PHP) in /home/soullici/public_html/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 1037
    [05-Mar-2020 21:56:36 UTC] PHP Warning: idn_to_ascii() expects parameter 2 to be integer, string given in /home/soullici/public_html/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 1037
    [05-Mar-2020 21:56:36 UTC] PHP Warning: checkdnsrr(): Host cannot be empty in /home/soullici/public_html/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 1041
    [05-Mar-2020 21:56:36 UTC] PHP Warning: Use of undefined constant IDNA_NONTRANSITIONAL_TO_ASCII – assumed ‘IDNA_NONTRANSITIONAL_TO_ASCII’ (this will throw an Error in a future version of PHP) in /home/soullici/public_html/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 1037
    [05-Mar-2020 21:56:36 UTC] PHP Warning: Use of undefined constant INTL_IDNA_VARIANT_UTS46 – assumed ‘INTL_IDNA_VARIANT_UTS46’ (this will throw an Error in a future version of PHP) in /home/soullici/public_html/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 1037
    [05-Mar-2020 21:56:36 UTC] PHP Warning: idn_to_ascii() expects parameter 2 to be integer, string given in /home/soullici/public_html/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 1037
    [05-Mar-2020 21:56:36 UTC] PHP Warning: checkdnsrr(): Host cannot be empty in /home/soullici/public_html/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 1041
    [05-Mar-2020 21:56:36 UTC] PHP Warning: Use of undefined constant IDNA_NONTRANSITIONAL_TO_ASCII – assumed ‘IDNA_NONTRANSITIONAL_TO_ASCII’ (this will throw an Error in a future version of PHP) in /home/soullici/public_html/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 1037
    [05-Mar-2020 21:56:36 UTC] PHP Warning: Use of undefined constant INTL_IDNA_VARIANT_UTS46 – assumed ‘INTL_IDNA_VARIANT_UTS46’ (this will throw an Error in a future version of PHP) in /home/soullici/public_html/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 1037
    [05-Mar-2020 21:56:36 UTC] PHP Warning: idn_to_ascii() expects parameter 2 to be integer, string given in /home/soullici/public_html/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 1037
    [05-Mar-2020 21:56:36 UTC] PHP Warning: checkdnsrr(): Host cannot be empty in /home/soullici/public_html/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 1041

    WP: 5.3.2
    S2: 10:32

    I tried disabling all other plugins, same error.

Viewing 3 replies - 1 through 3 (of 3 total)
  • @stlwmw

    This is likely due to poorly configure PHP on the server but can be fixed as follows:

    In your themes functions.php file please add the following line:

    add_filter( 's2_validate_email_with_dns', '__return_false' );

    Thread Starter stlwmw

    (@stlwmw)

    The appears to have worked. My tests succeeded, I will pass it over to the client for verification.

    Thanks!

    FYI, though, I am not certain how this could be misconfigured. It is a commercial CPanel setup that I use on about 40 or so sites, I have no other errors. Any idea what the misconfiguration might be? I can look into it further for future reference.

    Thanks again!

    @stlwmw

    As far as I can tell at the moment this seems to be happening when PHP is configured and installed with recent versions of the IDN functions but the ICU version is not recent – or perhaps not installed.

    Try using this code in an admin page to see what version you have:

    if ( defined( 'INTL_ICU_VERSION' ) ) {
    	echo INTL_ICU_VERSION;
    }

    I have a minimum of 50.1.2 (I think) across my sites and development platforms.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Subscribing appears to have recently broken’ is closed to new replies.