Title: [Plugin: Avatar Privacy] get_headers() function
Last modified: August 20, 2016

---

# [Plugin: Avatar Privacy] get_headers() function

 *  Resolved [Scott West](https://wordpress.org/support/users/scottwest/)
 * (@scottwest)
 * [14 years ago](https://wordpress.org/support/topic/plugin-avatar-privacy-get_headers-function/)
 * I really like the Avatar Privacy plugin. It fits my needs just fine.
 * I am having a problem with the Discussion Settings >> not checked by default (
   commenters and users can opt in by checking it).
 * I’m getting an error message.
 * > “The get_headers() function seems to be disabled on your system! To check if
   > a gravatar exists for an E-Mail address, this PHP function is needed. It seems
   > this function is either disabled on your system or the gravatar.com servers
   > can not be reached for another reason. Check with your server admin if you 
   > don’t see gravatars for your own gravatar account and this message keeps popping
   > up after saving the plugin settings.”
 * I’m not sure what to do about this. I’m only able the use the checked by default
   setting. Any ideas?
 * Thanks for any help, Scott
 * [http://wordpress.org/extend/plugins/avatar-privacy/](http://wordpress.org/extend/plugins/avatar-privacy/)

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

 *  Plugin Contributor [Ammaletu](https://wordpress.org/support/users/ammaletu/)
 * (@ammaletu)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-avatar-privacy-get_headers-function/#post-2777709)
 * get_headers() is a PHP function that returns information about remote content.
   The plugin uses it to check if a gravatar image exists (the first of the plugin’s
   settings). I built a check into the plugin because it might be disabled on some
   systems, and it seems it actually is disabled on yours. The check is triggered
   by saving the settings.
 * Of course, if you want to use the new default avatars or the opt-in feature, 
   you don’t need the get_headers function. The check should not be done then. I’ll
   correct this in the upcoming version of the plugin (working on it, but probably
   won’t be released before WP 3.4 finally is otu).
 * For now, unless you intend to check the first checkbox (“Don’t publish encrypted
   E-Mail addresses for non-members of gravatar.com.”), you can simply disable the
   check. Open avatar-privacy-options.php and remove or better comment-out lines
   47 to 57 (the first part of the validate_settings function, up to the second 
   comment).
 * Thanks for using the plugin and for taking the time to contact me. 🙂
 * Besides, the settings should save fine even if the error message is displayed.
   It at least works that way at my local test blog.
 *  Thread Starter [Scott West](https://wordpress.org/support/users/scottwest/)
 * (@scottwest)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-avatar-privacy-get_headers-function/#post-2777737)
 * Thank you Ammaletu for the info. The plugin seems to be working great. I give
   it a ***** five star rating.

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

The topic ‘[Plugin: Avatar Privacy] get_headers() function’ is closed to new replies.

 * ![](https://ps.w.org/avatar-privacy/assets/icon.svg?rev=2711226)
 * [Avatar Privacy](https://wordpress.org/plugins/avatar-privacy/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/avatar-privacy/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/avatar-privacy/)
 * [Active Topics](https://wordpress.org/support/plugin/avatar-privacy/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/avatar-privacy/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/avatar-privacy/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Scott West](https://wordpress.org/support/users/scottwest/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-avatar-privacy-get_headers-function/#post-2777737)
 * Status: resolved