Using MediaWiki 1.29.1. I am using extension SlackNotifications. When editing an article, the extension SlackNotifications in the end runs curl_exec($curl_h)
which then throws "Unknown error" on VisualEditor's UI. After commenting out the curl_exec($curl_h)
in SlackNotifications extension, VisualEditor works fine.
Are there known issues when other extension uses curl and VisualEditor? This is the full code that SlackNotifications extension uses for full curl init and send:
$curl_h = curl_init();
curl_setopt($curl_h, CURLOPT_URL, $wgSlackIncomingWebhookUrl);
curl_setopt($curl_h, CURLOPT_POST, 1);
curl_setopt($curl_h, CURLOPT_POSTFIELDS, $post);
// I know this shouldn't be done, but because it wouldn't otherwise work because of SSL...
curl_setopt ($curl_h, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt ($curl_h, CURLOPT_SSL_VERIFYPEER, 0);
// Set proxy for the request if user had proxy URL set
if ($wgHTTPProxy) {
curl_setopt($curl_h, CURLOPT_PROXY, $wgHTTPProxy);
curl_setopt($curl_h, CURLOPT_RETURNTRANSFER, true);
}
// ... Aaand execute the curl script!
curl_exec($curl_h);
curl_close($curl_h);