Title: Getting a Socket Error
Last modified: August 31, 2016

---

# Getting a Socket Error

 *  Resolved [Srikanth](https://wordpress.org/support/users/rsrikanth05/)
 * (@rsrikanth05)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/getting-a-socket-error/)
 * For the past week, whenever anyone enters the right Captcha, I get an error saying
   Could Not Open Socket on wp-comments.php.
    I’ve temporarily had to disable the
   plugin. Entering the wrong captacha takes them to the comments section of the
   article as always but the right one results in a Socket error. My blog is [http://bestpedia.in](http://bestpedia.in)
   The plugin is disabled, but I will reactivate it if asked to.
 * [https://wordpress.org/plugins/bwp-recaptcha/](https://wordpress.org/plugins/bwp-recaptcha/)

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

 *  Plugin Author [Khang Minh](https://wordpress.org/support/users/oddoneout/)
 * (@oddoneout)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/getting-a-socket-error/#post-7010750)
 * Does entering the wrong captcha show a captcha error? Everything was working 
   correctly before?
 * Can you navigate to **BWP recapt >> General Settings >> reCAPTCHA settings** 
   and then change “request method” to “cURL” or “file_get_contents” ?
 *  Thread Starter [Srikanth](https://wordpress.org/support/users/rsrikanth05/)
 * (@rsrikanth05)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/getting-a-socket-error/#post-7010761)
 * Hi, I have renabled the plugin.
    With the request method set to auto, I tried
   to enter a wrong captcha, it gave me a Socket error this time. I changed the 
   Request method to cURL and file_get_contents and both times I got the Socket 
   error.
 *  Thread Starter [Srikanth](https://wordpress.org/support/users/rsrikanth05/)
 * (@rsrikanth05)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/getting-a-socket-error/#post-7010762)
 * Note. I changed the settings just now to use the nocaptcha recaptcha instead.
   
   The request method is still file_get_contents.
 * I tried commenting and when I clicked on I’m not a Robot, and submit, it took
   some time but then opened the article with ?cerror=invalid-json#respond appended
   to it. The error above the nocaptch box now reads:
    Unknown error (invalid-json).
   Please contact an administrator for more info.
 *  Plugin Author [Khang Minh](https://wordpress.org/support/users/oddoneout/)
 * (@oddoneout)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/getting-a-socket-error/#post-7010838)
 * Can you try changing the Request method back to Auto and then use it with the
   nocaptcha recaptcha?
 *  Thread Starter [Srikanth](https://wordpress.org/support/users/rsrikanth05/)
 * (@rsrikanth05)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/getting-a-socket-error/#post-7010842)
 * Hi, it is currently set to Auto, and nocaptcha has been enabled.
 * The error message I’m getting is “Unknown error (invalid-request). Please contact
   an administrator for more info.”
 *  Plugin Author [Khang Minh](https://wordpress.org/support/users/oddoneout/)
 * (@oddoneout)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/getting-a-socket-error/#post-7010856)
 * OK one last thing to try is to set Request method to cURL. If that doesn’t work,
   please contact me via [http://betterwp.net/contact/](http://betterwp.net/contact/).
   Thanks.
 *  Thread Starter [Srikanth](https://wordpress.org/support/users/rsrikanth05/)
 * (@rsrikanth05)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/getting-a-socket-error/#post-7010863)
 * Hi, I’ve set the request method to cURL with nocaptcha as the default.
    I haven’t
   tested it out yet. Will have a look as soon as I get time.
 *  Thread Starter [Srikanth](https://wordpress.org/support/users/rsrikanth05/)
 * (@rsrikanth05)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/getting-a-socket-error/#post-7010891)
 * Hi, apologies for the late response. I set it to cURL woth nocaptcha and it has
   been working since.
    Thanks a lot for the support. Marking the topic as resolved.
 *  Plugin Author [Khang Minh](https://wordpress.org/support/users/oddoneout/)
 * (@oddoneout)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/getting-a-socket-error/#post-7010892)
 * No problem, glad you got it working.
 *  [wissamtannous](https://wordpress.org/support/users/wissamtannous/)
 * (@wissamtannous)
 * [10 years ago](https://wordpress.org/support/topic/getting-a-socket-error/#post-7010922)
 * hello i tried all of them
    file_get_contents: i get the following error “Unknown
   error (invalid-json). Please contact an administrator for more info.” cURL: i
   get the following error “Unknown error (invalid-json). Please contact an administrator
   for more info.” Socket: i get “Unknown error (invalid-request). Please contact
   an administrator for more info.”
 * my blog is [http://www.logicum.co](http://www.logicum.co)
    captcha is used in
   the comment section of any article
 * thank you
 *  [wissamtannous](https://wordpress.org/support/users/wissamtannous/)
 * (@wissamtannous)
 * [10 years ago](https://wordpress.org/support/topic/getting-a-socket-error/#post-7010923)
 * Update:
    after several tries and changing the APIkey also the comment section
   is working now and to make the contact us form 7 work , the same APIkey has to
   be added in the integration section thank you

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

The topic ‘Getting a Socket Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bwp-recaptcha.svg)
 * [Better WordPress reCAPTCHA (with no CAPTCHA reCAPTCHA)](https://wordpress.org/plugins/bwp-recaptcha/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bwp-recaptcha/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bwp-recaptcha/)
 * [Active Topics](https://wordpress.org/support/plugin/bwp-recaptcha/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bwp-recaptcha/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bwp-recaptcha/reviews/)

## Tags

 * [Comments](https://wordpress.org/support/topic-tag/comments/)

 * 11 replies
 * 3 participants
 * Last reply from: [wissamtannous](https://wordpress.org/support/users/wissamtannous/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/getting-a-socket-error/#post-7010923)
 * Status: resolved