WordPress.org

Ready to get started?Download WordPress

Forums

Avatar Privacy
[resolved] get_headers() function (3 posts)

  1. Scott West
    Member
    Posted 2 years ago #

    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/

  2. Ammaletu
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  3. Scott West
    Member
    Posted 2 years ago #

    Thank you Ammaletu for the info. The plugin seems to be working great. I give it a ***** five star rating.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic