• Resolved inselhopper

    (@inselhopper)


    In all my pages, the Youttube embedding no longer works. It keeps showing “This video is not available” even though the video is there. The normal embed code from Youttube works, but shortcode does not. Has Shortcode now been blocked by Youtube?

    Example see link

    • This topic was modified 4 years, 6 months ago by inselhopper.

    The page I need help with: [log in to see the link]

Viewing 11 replies - 16 through 26 (of 26 total)
  • @highzera I looked at your page, and see the empty playlist= is still there. I compared it to what my customer’s page produces and there are a couple of differences (on hers the URL is in a src=”…” tag and on yours it’s is a data-src=”…” tag. I don’t know the cause of those differences.

    If you’d like to email your youtube-advanced.php file to me at ythelp@swcp.com I can verify it looks right.

    If someone else understands what causes the different src tags maybe they can chime in.

    • This reply was modified 4 years, 6 months ago by Mark Costlow.

    Any Updates from the developer on this? It’s created a real mess with all the videos I have posted on numerous sites.

    Hi All,

    Just wanted to add my voice to this, had a client call with this issue today, not sure if it’s a change to the SU plugin, how YouTube handles empty URL params or maybe even a change to the way PHP http_build_query works.

    Either way the SU plugin needs to be updated, as others have correctly pointed out it’s the empty playlist parameter which is the culprit however I didn’t like the fix(s) posted by others which turns it into a loop (or adds the video id to make it a playlist of 1 video).

    Here is the fix that I’ve added which is what I think the plugin authors should implement. It goes directly above the $url_params = http_build_query( $url_params ); line and it basically loops through the parameters removing the keys for anything that has an empty string as a value.

    foreach ( $url_params as $url_param => $value ) {
    	if ( '' === $value ) {
    		unset($url_params[$url_param]);
    	}
    }
    • This reply was modified 4 years, 5 months ago by bonazzo. Reason: updated formatting
    • This reply was modified 4 years, 5 months ago by bonazzo. Reason: minor wording change

    I’m not sure I’m following what others have done here. I have found that this is specifically related to the inclusion of “&playlist=” in the url string. If I remove that then the video works.

    Now that I looked further @bonazzo solution works for me. Thanks.

    a bit more simple solution:

    /wp-content/plugins/shortcodes-ultimate/includes/shortcodes/youtube-advanced.php:216

    $url_params = http_build_query( array_filter($url_params) );

    Where is the author of the plugin?

    1allen,

    I used your fix and it works perfectly.

    Many thanks,

    John

    I don’t know why this is marked as resolved when it’s still an issue

    @hube2 According to the release notes of latest version 5.10.2 of the plugin, the issue has been fixed 2 weeks ago:
    https://wordpress.org/plugins/shortcodes-ultimate/#developers

    “Fixed / Fixed This video is unavailable in su_youtube_advanced shortcode”

    Is that not the case? Did you try to upgrade to the latest version yet?

    Sorry, my confusion, I was working on two sites at the same time, staging and live. One was updated and the other was not.

Viewing 11 replies - 16 through 26 (of 26 total)

The topic ‘Youtube no longer works’ is closed to new replies.