WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Essentials Hair Beauty
    Member
    Posted 11 months ago #

  2. Jeff K
    Member
    Plugin Author

    Posted 11 months 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 11 months ago #

    Hi

    Nothing else is written - yes I am using reCaptcha

  4. Jeff K
    Member
    Plugin Author

    Posted 11 months 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

Reply

You must log in to post.

About this Plugin

About this Topic