Can you please share your code?
also, have you tried adding these curl settings?
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
Hi @gnoric,
Thanks for trying to reply me back.
But, I am asking query for default WordPress functions.
Let me share my code here. So, you may get an idea to resolve the issue.
if (!function_exists('solwin_dashboard_widget_news')) {
function solwin_dashboard_widget_news() {
echo '<div class="rss-widget">'
. '<div class="solwin-news"><p><strong>' . __('Solwin Infotech News', SOLWIN_TEXTDOMAIN) . '</strong></p>';
wp_widget_rss_output(array(
'url' => esc_url('https://www.solwininfotech.com/feed/'),
'title' => __('News From Solwin Infotech', SOLWIN_TEXTDOMAIN),
'items' => 5,
'show_summary' => 0,
'show_author' => 0,
'show_date' => 1
));
echo '</div></div>';
}
}
Please check code again and find the point as I called one feed URL and that contain https. It means that SSL installed URL call.
But, when site haven’t installed any SSL certificate with the website then this call not working correctly.
It showing me error like below.
RSS Error: WP HTTP Error: cURL error 51: SSL: no alternative certificate subject name matches target host name ‘www.solwininfotech.com’
Let me know if you need more details from my side.