Support » Plugin: Shortcodes Ultimate » All YouTube Embeds Broken / No Longer Showing

  • Resolved aapollo

    (@aapollo)


    All my YouTube embeds using Shortcodes Ultimate are no longer displaying. I have hundreds of videos across as many pages displaying YouTube videos.

    Please let me know how to solve this crisis ASAP!

Viewing 3 replies - 1 through 3 (of 3 total)
  • aapollo

    (@aapollo)

    Okay, I solved this issue by changing http to https in line 632 in inc/core/shortcodes.php:

    		$return[] = '<iframe width="' . $atts['width'] . '" height="' . $atts['height'] . '" src="https://www.youtube.com/embed/' . $id . $autoplay . '" frameborder="0" allowfullscreen="true"></iframe>';
    

    I also replaced all other embeds with https. Please update this in the next version.

    Big thanks to @infinet on https://wordpress.org/support/topic/ssl-breaks-google-map/ for the hint to the solution.

    aapollo

    (@aapollo)

    Here is one example:
    [s_youtube url="https://www.youtube.com/watch?v=qk8uJcaRtgg" width="440"]

    Note that no closing tag has ever been necessary, and adding the closing tag does not change the result. The video still will not show.

    The same format Vimeo videos using my custom prefix work normally:
    [s_vimeo url="https://vimeo.com/123530974" width="960"] [/s_vimeo]

    I also noticed that I’m getting a console error on SSL, meaning that it is possible that the videos are not displaying because the Shortcode is changing the URL to http:

    Mixed Content: The page at 'https://mywebsite.com/page/' was loaded over HTTPS, but requested an insecure resource 'http://www.youtube.com/embed/qk8uJcaRtgg'. This request has been blocked; the content must be served over HTTPS.

    How can I make sure the https is maintained in the shortcode’s display? Also, it seems that the vimeo urls are maintaining https…

    THANK YOU for posting this! You saved me a lot of time. 😀

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.