Title: error &#8211; Host cannot be empty
Last modified: February 26, 2020

---

# error – Host cannot be empty

 *  Resolved [eitanc](https://wordpress.org/support/users/eitanc/)
 * (@eitanc)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/error-host-cannot-be-empty/)
 * 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)

 *  [Matt Robinson](https://wordpress.org/support/users/mattyrob/)
 * (@mattyrob)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/error-host-cannot-be-empty/#post-12483898)
 * [@eitanc](https://wordpress.org/support/users/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](https://wordpress.org/support/users/eitanc/)
 * (@eitanc)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/error-host-cannot-be-empty/#post-12484629)
 * It was 5.4 and now I changed it to 7.1, the highest version possible by my hosting
   company
 *  [Matt Robinson](https://wordpress.org/support/users/mattyrob/)
 * (@mattyrob)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/error-host-cannot-be-empty/#post-12486154)
 * [@eitanc](https://wordpress.org/support/users/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](https://wordpress.org/support/users/eitanc/)
 * (@eitanc)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/error-host-cannot-be-empty/#post-12486179)
 * Will do, thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘error – Host cannot be empty’ is closed to new replies.

 * ![](https://ps.w.org/subscribe2/assets/icon-256x256.png?rev=2318630)
 * [Subscribe2 - Form, Email Subscribers & Newsletters](https://wordpress.org/plugins/subscribe2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/subscribe2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/subscribe2/)
 * [Active Topics](https://wordpress.org/support/plugin/subscribe2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/subscribe2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/subscribe2/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [eitanc](https://wordpress.org/support/users/eitanc/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/error-host-cannot-be-empty/#post-12486179)
 * Status: resolved