Description:

The WordPress¬† Plugin “YouTube Channel Gallery” (found at https://wordpress.org/plugins/youtube-channel-gallery/) is a very popular plugin used by over 50,000 web sites. Recently, Google made changes to the YouTube API and the new Version 3 has caused a lot of web sites to suddenly lose their awesome channel feeds. This video will show you how to fix the “YouTube Channel Gallery Plugin Not Working” problem without changing to another plugin.

Script:

(opens with website already loaded with the error message)

Hi, this is Jerry Boutot and AppDataWorks IT Consulting Services.

In this video I’m going to show you how to easily fix the YouTube Channel Gallery plugin so that it continues to work on your website after the YouTube Data API Version 3 changes.

Recently, Google changed the YouTube Data API to Version 3 and effectively broke the YouTube Channel Gallery feed for many websites, mine included. Suddenly , when users visit your page containing the YouTube Channel Gallery plugin, they may see the error you see on the screen instead of your videos.

I accidentally discovered this yesterday and began the process of researching the problem. Some users on the Plugin Support page created their own patches by modifying the youtube-channel-gallery php file, which is never really a good idea unless you really know what you’re doing. Another reason it’s not a good idea to do this is because the person offering up the file with the fix or patch may actually be tricking you into installing a php file with programming that could infect your site with a virus.

I looked at the instructions and other users comments on one of the patches and actually downloaded the php file and replaced the original file produced by the plugin author with the patched file. It didn’t work, so I put the original file back¬† and did more research.

I found a couple of plugins and tried them but I didn’t like how they worked, and none of them presented a page of videos the way YouTube Channel Gallery does, so I moved on from that to more research.

I found that I could create a playlist on my YouTube Channel and add embed code for the entire playlist onto the page with the broken YouTube Channel Gallery plugin and tried that. I wasn’t too impressed and I’ll show you why. Let’s do just that.

As you can see, on my YouTube channel I created this playlist called Default and added all my videos to it. If you look here, you see the Share button. Click it, then click the Embed link at the top. Copy all the code in that field to the clipboard.

Let’s put the page into Edit mode.

Now, I’ll comment out this YouTube Channel Gallery Feed shortcode to disable it for now by going into TEXT mode in the editor and adding HTML Comment tags. (add the comment tags).

Now I’ll paste the Embed Code into the page, Update it, and View it.

You can see now the embed code works just fine. The problem is, it only shows one video, and as you can see you have to click the PLAYLIST dropdown to see other videos to select to play. That’s OK for a quick fix, and so I decided to use this fix to update all of my client web pages.

I fixed about half a dozen broken pages and then came across one that actually still worked with the YouTube Channel Gallery plugin. Let me show you this:

I studied the code and suddenly I realized the difference between the one that worked and the ones that don’t are the feed parameter

And the user parameter. This shortcode uses playlist and a playlist code, the broken ones use feed=”user” and user=”youtube channel name”.

So now let’s fix my Video Page so the YouTube Channel Gallery still works. We’ll put the page in edit mode and remove the Embed Code from Youtube.

Now we’ll un-comment the YouTube Channel Gallery shortcode and change the feed parameter to “playlist”. Now, we need to get the playlist code.

Go back to Youtube and click Share again, then click the Share tab. The playlist code is everything you see after list=

Copy the code to the clipboard and go back to the editor for the web page you are fixing. Replace the channel name with the playlist code.

Update the page, and view it.

Your YouTube Channel Gallery should be fixed.

Now whenever you upload a video to YouTube, make sure you add it to the Default playlist (or whatever playlist you want) and it will show up automagically on your web page using the YouTube Channel Gallery.

This is Jerry Boutot and AppDataWorks IT Consulting – Have an AWESOME day!

The following two tabs change content below.
Jerry Boutot is a Microsoft Certified Application Developer (MCAD) and Microsoft Certified Professional (MCP). He owns AppDataWorks, LLC, which develops custom solutions for Desktop Software, Web Applications, Database Systems, and Online Marketing Solutions.

Pin It on Pinterest

Share This

Share This

Share this post with your friends!