• Resolved eitanc

    (@eitanc)


    Hi,
    I use this plugin’s latest version, 10.31, on the latest WP version.

    I get in WP’s error_log file a repeated two errors, always shown together, like this (I changed only the user name and site name values):

    PHP Warning: idn_to_ascii() expects parameter 2 to be integer, string given in /home/<user-name>/public_html/<site-name>/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 1029
    PHP Warning: checkdnsrr(): Host cannot be empty in /home/<user-name>/public_html/<site-name>/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 1033

    I checked my subscribers list and all have a valid email address format, with @domain-name.

    How can I solve this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • @eitanc

    For now add the following line to your themes functions.php file:

    add_filter( 's2_validate_email_with_dns', '__return_false' );

    Can you tell me what version of PHP your site is using?

    Thread Starter eitanc

    (@eitanc)

    It was 5.4 and now I changed it to 7.1, the highest version possible by my hosting company

    @eitanc

    I suspect that your hosting provider have incompletely installed the idn functions and any dependencies or perhaps they have not configured all of the required variables for it to work. you may want to speak to them about that.

    The fix above should work fine for you.

    Thread Starter eitanc

    (@eitanc)

    Will do, thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘error – Host cannot be empty’ is closed to new replies.