OK. So playlists work but channel user id doesn’t. For now I’ll use Playlist until the USER ID problem is fixed.
Randomly getting this error on the front page too:
Fatal error: Cannot use object of type WP_Error as array in /home/techwiz/public_html/wp-content/plugins/youtube-channel-gallery/youtube-channel-gallery.php on line 615
It still doesn’t work for me.
I both tried the server side Api key and the client key, and i keep having the error message.
i managed to show the error number to track the problem and this is a 403error.
Hi techwiz.com.au,
I am looking all of your posts from the time plugin stopped working. You are really doing a great job by letting us know whats happening. As of now I understand that you are some how able to make this work, Could you please share the “youtube-channel-gallery.php” and what ever files you made changes to crack this issue.
Thank you
Joy
(@joyously)
Oxizee, that is not an error, it is the shortcode displaying something that it should not be displaying (like debug output).
To fix the string(xxx) error I commented out line 612 of youtube-channel-gallery/youtube-channel-gallery.php. The developer must have forgot to remove it after testing.
//(var_dump($ytchag_feed_url);
I’m getting a similar output as “Oxizee” above my main video except it starts with:
string(152)”https://www.googleapis.com/youtube/v3/playlistItems? … etc.
if it’s not an error, how do we get rid of this? Is this an error in the plug-in’s code?
@newmedia: That is working for now, until the author fixed it. Thanks!
@newmedia: Big thanks from me too, saved me a bunch of debugging!
Author uploaded a new version where he removed the debug info. Now only if he fixes the select video in player thingy, i am happy.
Just letting everyone know, I haven’t really been looking over the code at all, but another user discovered a way to get the complete user uploads. The way the did it was to change the type to a PLAYLIST and change the UC from he start of the channel id to UU. What this does is gives you an automatically generated playlist based on all the channels uploads. My guess is UC stands for User Channel and UU stands for User Uploads. That will get everyone started with a Channel Uploads list anyway. From what I can see in the code though, the issue could lie around the following code:
Line 608 : $ytchag_link_url = 'https://www.youtube.com/channel/' . $ytchag_id;
Line 616 : $content= '<div class="vmcerror">' . sprintf( __( 'Message from server: %1$s. Check in YouTube if the id <a href="%2$s">%3$s</a> belongs to a %4$s. To locate the id of your %4$s check the <a href="http://wordpress.org/extend/plugins/youtube-channel-gallery/faq/">FAQ</a> of the plugin.', 'youtube-channel-gallery' ), $response_message, $ytchag_link_url, $ytchag_user, $ytchag_feed ) . '</div>';
%2$s is the pointer for the variable $ytchag_link_url but when I check the link, it doesn’t append the channel id although the variable $ytchag_user does contain the channel id. If someone wants to play with it, maybe giving the variable $ytchag_link_url the value of $ytchag_user may fix it, but the fix described above works for me for the time being. Hope this helps some other people.
@techwiz.com.au
I am kind of confused. So for example let’s say i want to use the following Youtube Channel for the Plugin: https://www.youtube.com/user/IGNentertainment . So i have to change the Video feed type from uploaded by a user(which doesent seem to work atm) to Playlist. So far so good. The Channel Name is: IGNentertainment.
Now where exactly do i find that UC & UU that you mentioned?
Can you please explain it with an example?
I found the channel id from going to one of their videos and hovering over the channel name (IGN). This is what I got.
https://www.youtube.com/channel/UCKy1dAqELo0zrOtPkf0eTMw
So for this example I would use UUKy1dAqELo0zrOtPkf0eTMw