atorreno
Forum Replies Created
-
Forum: Plugins
In reply to: [Twitter Widget Pro] Authorize New Account does not redirectk, figured it out.
Apparently, wp_remote_get() doesn’t have up-to-date certificate authorities, or perhaps doesn’t have any at all, so it can’t verify ssl certificates. I suppose this is Windows-specific? Not sure.
This article talks about it
https://wordpress.stackexchange.com/questions/21749/what-is-the-relationship-between-curl-wordpress-and-cacert-pemSo the two options are to install certificate authorities, which I couldn’t figure out, or to turn off ssl verification
in twitter-widget-pro/lib/wp-twitter.php
find this
$resp = wp_remote_get($request_url);
and change to this
$resp = wp_remote_get($request_url, array('sslverify'=>false));
just in case I also changed this
$resp = wp_remote_request($request_url, array( 'method'=>$method, 'body'=>$parameters));
to this
$resp = wp_remote_request($request_url, array( 'method'=>$method, 'body'=>$parameters, 'sslverify'=>false));
Forum: Plugins
In reply to: [Twitter Widget Pro] Authorize New Account does not redirectI get the same thing that I got by tinkering with your code
SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
According to this:
https://richardwarrender.com/2007/05/the-secret-to-curl-in-php-on-windows/I have a few extra steps in Windows before I can make the remote call to Twitter.
I’m too far down the rabbit hole at this point. Is your code eventually using cURL? Can you point me in the right direction as to where I insert the fix mentioned in the Richard Warrender blog post?
Forum: Plugins
In reply to: [Twitter Widget Pro] Authorize New Account does not redirectForum: Plugins
In reply to: [Twitter Widget Pro] Authorize New Account does not redirectForum: Plugins
In reply to: [Twitter Widget Pro] Authorize New Account does not redirectDigging into your code I see this
$token = $this->_wp_twitter_oauth->getRequestToken( $auth_redirect );
which generates this error
SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failedForum: Plugins
In reply to: [Twitter Widget Pro] Authorize New Account does not redirectSorry, I forgot to mention that, v2.5.2