Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

share|improve this question
1  
Have you tried adding the video as HTML? Without more information we cannot answer your question. –  toscho May 4 '13 at 12:13
    
Suggestion: report the workaround bellow to the plugin author. –  brasofilo May 4 '13 at 20:36
    
It seems the plugin is no longer under maintance. –  Ralf912 May 5 '13 at 23:22
add comment

1 Answer

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;

}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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