WordPress.org

Forums

HMS Testimonials
[resolved] Error Could not open socket (4 posts)

  1. Essentials Hair Beauty
    Member
    Posted 2 years ago #

  2. Jeff K
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    Add the following to your stylesheet to hide the website field.

    .hms-testimonials-form .website { display:none; }

    Does the error give you anything else besides "could not open socket"? Also, are you using reCaptcha to help stop spam for that form?

  3. Essentials Hair Beauty
    Member
    Posted 2 years ago #

    Hi

    Nothing else is written - yes I am using reCaptcha

  4. Jeff K
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    It looks like your website is having trouble connecting to reCaptcha when submitting the form. I tested the reCaptcha functionality on a few sites and they are working for me.

    Can you ask your webhost to make sure the server you are on can use fsockopen and can access: http://www.google.com and in particular http://www.google.com/recaptcha/api/verify

    Lines 80 and 81 inside wp-content/plugins/hms-testimonials/recaptchalib.php are causing your problem.

    If at all possible, can you modify line 81 of that file and change it to:

    die ('Could not open socket ' .$errstr);

    so it puts the error message in the output.

    If you don't feel comfortable doing that, Save this text and overwrite the recaptchalib.php file with it. Then let me know if the error message changed at all.

    Jeff

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • HMS Testimonials
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic