Great! I’m glad it helped you all. 🙂
Happened to me too yesterday. The reason it doesn’t work anymore is because YouTube API v2 has been discontinued and this plugin relied on it. You can see that by going to an old API link: http://gdata.youtube.com/feeds/api/videos/_4RQD2SxDOI
In order to make it work correctly you’ll need to:
- open
/wp_content/plugins/youtube_simplegallery.php
- delete the function that starts on line 58 (yotube_gallery_getYouTubeDataFromID)
- add this one instead:
function yotube_gallery_getYouTubeDataFromID($vID) {
$videodata = wp_remote_fopen('https://www.googleapis.com/youtube/v3/videos?id='.trim($vID).'&key=AIzaSyA6oW5D-ZlSIG-OHSBOR25TMd3YDRU7HdU&part=snippet,contentDetails,statistics,status');
if($videodata=='Video not found') {
return 'error';
}
else {
$videodata = json_decode($videodata,true);
return $videodata;
}
}
Good luck to you all! 🙂