Site logo

[Resolved] Youtube video not embedding

Home Forums Support [Resolved] Youtube video not embedding

Home Forums Support Youtube video not embedding

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • #2577074
    Grey

    Hello,

    I’m sorry, I am a newbie and need your guidance. I am trying to embed a video on my website. I haven’t had an issue in the past, but now it is giving me this error: “Sorry, this content could not be embedded.”

    I made sure that:
    1. The link I am using is not a “sharing” link. (https://youtu.be/-WBo9EvnrtM)
    2. The video on youtube is enabled for embedding and public.

    I would also like to know what you recommend as the best way to show a video on my website.

    Thanks so much for all the help!

    #2577144
    David
    Staff
    Customer Support

    Hi there,

    how are you adding the embed to the page ? And does the issue occur if you try adding it to a new draft page ?

    #2577160
    Grey

    Yes, this occurred with a new draft page.

    I am adding a youtube block inside a container.

    #2577230
    Leo
    Staff
    Customer Support

    1. The link I am using is not a “sharing” link. (https://youtu.be/-WBo9EvnrtM)

    Hmm if you are using a YouTube block then that should be the link to use, not the <iframe> link.

    More info here: https://wordpress.org/documentation/article/youtube-embed/

    Can you give that a shot?

    #2577379
    Grey

    I tried the link from the web browser URL bar (https://www.youtube.com/watch?v=-WBo9EvnrtM), and gave me the same error.

    #2577647
    Leo
    Staff
    Customer Support

    I tested the first link (https://youtu.be/-WBo9EvnrtM) you provided and it worked:
    https://www.screencast.com/t/vLmsQElv0c7

    If that’s not what you are experiencing, then I’d recommend trying #1 here:
    https://docs.generatepress.com/article/debugging-tips/

    And if that doesn’t help then try #4 in the same article – I don’t believe this is a theme related issue.

    #2579203
    Grey

    It seems like the error happens when I am in the editing page, when I go to view page, the video displays just fine.

    #2579221
    Leo
    Staff
    Customer Support

    Ok glad to hear.

    If you want to determine the culprit the debugging steps I’ve suggested here would be necessary:
    https://generatepress.com/forums/topic/youtube-video-not-embedding/#post-2577647

    We have not had other reports on this so it’s likely something specific to your install.

    #2582151
    Grey

    I deactivated all the non-GP plug-ins and the issue still exists.

    #2582679
    David
    Staff
    Customer Support

    Are you logged in as an Admin when trying to add the embed ?

    #2582761
    Grey

    Yes, I am.

    #2582847
    Pete Williams

    Just out of interest, does it work with the VideoPress block or classic block?

    #2582926
    David
    Staff
    Customer Support

    Reading up on this, it seems the error generally occurs when there is either a user role permission or server permission issue.

    If you right click > inspect the page after the error appears to open the developers tools, do you see any errors in the Console tab ?

    #2583097
    Grey

    This is the error I get from inspecting the page:

    https://app.screencast.com/lupMJXVRLb61x

    #2583104
    Leo
    Staff
    Customer Support

    I believe the error suggested that it’s a server issue.
    Can you check with your hosting support to see if they can help identify the culprit?

    Please make sure to show them the problem with a Twenty series WP theme activated so they can’t blame the theme.

Viewing 15 posts - 1 through 15 (of 20 total)
  • You must be logged in to reply to this topic.