WordPress.org

Ready to get started?Download WordPress

Forums

Embed youtube does not work (14 posts)

  1. trinakriae
    Member
    Posted 3 years ago #

    I cannot embed Youtube videos in my posts. I used the following codes:

    http://www.youtube.com/watch?v=ISIFh8hBz7g

    [youtube=http://www.youtube.com/watch?v=ISIFh8hBz7g]

    And also the iFrame code Youtube provides. What am I doing wrong?

    I host my WordPress blog in a MS Server 2008 R2 (PHP and MySQL are enabled on IIS 7.5)

    Thanks

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    See Embeds.

  3. thatruth2006
    Member
    Posted 3 years ago #

    This code works, you just have to make sure you put it on its own line and do not use the visual editor to try to center it, it will auto-center.

    So as an example you could do,
    Text

    [youtube http://www.youtube.com/watch?v=aaCBvfbDeaU&hd=1&w=525&h=350
    Text
    Note this code should be between brackets, its cutting off the closing one[youtube code]
    You seem to be using the old code, no equal sign necessary. This is the code I use which forces it to use the HD version of the video as well. Just replace the url with yours

  4. trinakriae
    Member
    Posted 3 years ago #

    I tried all your suggestions plus the methods listed in the Embeds section. No luck.

    I have the auto-embedding enabled in the settings of the Admin page.

    What can be the cause? Thanks

  5. trinakriae

    Can you try in the HTML editor instead of the Visual editor?

  6. thatruth2006
    Member
    Posted 3 years ago #

    It shouldn't matter, as long as he has it on its own line and doesn't try to do any positioning to the code that would add erroneous code around it. WordPress should just read and display.

    If you want me to take a look, I will, just send me some admin info.

  7. thatruth2006 - I'm well aware it shouldn't matter, however in many cases I've seen the http code embed itself as a LINK, which is wrong :) So trying it out that way can't hurt, now, can it?

    And FWIW, I wouldn't give an internet stranger admin access to my site. (Which means no, don't give me the access either! For all you know, I'm a ketchup bottle!)

  8. thatruth2006
    Member
    Posted 3 years ago #

    @ipstenu you are correct it can embed itself as a link which would cause it not to work, the text has to be plain text. As far as being an internet stranger, I'll give you that but I try to be a helpful one. It's just an offer to try to help someone who is having trouble with something that I have a lot of experience with. At this point,since I have been going back and forth trying to help them what reason would they have not to trust me. There is nothing I have to gain by doing anything to his site, I build sites for others, run several wordpress blogs, a pretty popular gaming and technology one I might add. I don't understand why people always want to think the worst of people.

    Anyway, trinakriae if you still are having issues I'll continue to try and help you get it solved.

  9. trinakriae
    Member
    Posted 3 years ago #

    Thanks all of you but none of the solutions works. Can it be because of some firewall settings that do not allow the WordPress code to communicate with Youtube server to fetch the video file?

    It is quite strange since I have a Tweets displayer and it displays correctly all the Tweets.

    About your request to control the admin page, unfortunately I have the admin page unreachable unless your are within my company's network.

    I hope you can help me because this issue is really getting me crazy

  10. thatruth2006
    Member
    Posted 3 years ago #

    Then it could possibly be a setting with your companies firewall or content management policies. Can you get to YouTube from your company, as in they aren't blocking it? If you paste that code and its all plain text (no link) on its own line, with nothing around it but that code it should work like a charm.

    Here's a basic question that I hadn't thought of till just now, the videos you are trying to display are "public" on youtube right? You don't have them categorized as "unlisted" or "private", because if you do then that is the problem since that breaks the embed functionality.

  11. trinakriae
    Member
    Posted 3 years ago #

    I can get to Youtube from within my company network and when I connect through VPN. I also verified that the video in Youtube were listed as public.

    Hereby I attach the errors I got when I log in the admin page. The source of these errors might be the same that blocks the embed functionality.

    http://imageshack.us/photo/my-images/684/unledbw.jpg/

    http://imageshack.us/photo/my-images/193/unled2oc.jpg/

    Moreover if I try to look for plugins through the admin I get a 500 server error.

  12. Moreover if I try to look for plugins through the admin I get a 500 server error.

    There's your problem. Something in your network is blocking you from making the kind of PHP requests needed for importing RSS feeds (which are those two admin errors) and probably embedding media.

    Either your install of PHP is goobered and doesn't have the permissions, or your network is blocking that kind of traffic.

  13. thatruth2006
    Member
    Posted 3 years ago #

    Going to agree with ipstenu there, something is going on with the permissions in your environment. Check to see if you could embed a sample video from say vimeo, if you have the same issue then its definitely something internal.

  14. trinakriae
    Member
    Posted 3 years ago #

    Ok I solved the problem with a solution which is not yet in any forum concering this issue.

    I copy from Youtube the code to embed the video. For instance:

    <iframe width="480" height="390" src="http://www.youtube.com/embed/6Z66wVo7uNw?rel=0" frameborder="0" allowfullscreen></iframe>

    Then I place this code in the post editor where I want the video to appear and in the format pane on the right you select "video".

    Then the video is correctly displayed in the post. thanks everybody for your support!

Topic Closed

This topic has been closed to new replies.

About this Topic