0

I'm using WordPress 3.5 and YouTube Sidebar Widget 1.3.2.

The plugin display service is unavailable. Why have I encountered service unavailable? The YouTube video is set to be public and embeddable.

3
  • 1
    Have you tried adding the video as HTML? Without more information we cannot answer your question.
    – fuxia
    Commented May 4, 2013 at 12:13
  • Suggestion: report the workaround bellow to the plugin author.
    – brasofilo
    Commented May 4, 2013 at 20:36
  • It seems the plugin is no longer under maintance.
    – Ralf912
    Commented May 5, 2013 at 23:22

1 Answer 1

3

The plugin uses cURl direkt instead of WordPress' built in HTTP class. If your sever does not support cURL, the plugin can not work and you got this message. Deinstall the plugin and use another one. Or replace the curl_it() function within the plugin with something stable.

Update

The workaraound:

Open the plugin file youtube-sidebar-widget.php and replace the function curl_it() with this:

function curl_it($url) {

  $data = wp_remote_get( $url );

  return ( ! is_wp_error( $data ) && isset( $data['body'] ) ) ?
    $data['body'] : false;

}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.