1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.1 Media Link Error

Discussion in 'Troubleshooting and Problems' started by Siber, Jul 9, 2013.

  1. Siber

    Siber New Member

    Please advise how to fix this error. Thanks!

    [​IMG]
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Invalid "Match URLs" for the media site in question?

    Admin CP -> Home -> BB Code Media Sites
     
  3. Siber

    Siber New Member

    yup Jake.

    match URLs:
    youtube.com/watch?v={$id}
    youtube.com/v/{$id}
    youtube.com/{$id}
    youtube.com/*/u/*/{$id}
    youtube.com/watch?feature=player_embedded&v={$id}

    embeded HTML
    <iframe width="500" height="300" src="http://www.youtube.com/embed/{$id}?wmode=opaque" frameborder="0" allowfullscreen></iframe>


    put in Youtube link, get undefined error >.<
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Which URL are you attempting to embed?
    Does it work here?
     
  5. Mike

    Mike XenForo Developer Staff Member

    This is an indication of a bad regex (or the regular expression option being selected when you didn't mean to) for one of the media sites -- not necessarily the one you're actually attempting to embed.
     
  6. Siber

    Siber New Member



    works fine here and work on my domain typing in media=youtube...

    however place url into editor and error pop up.
     
  7. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    More specifically, Mike and I are referring to these options:

    Admin CP -> Home -> BB Code Media Sites -> [click the media site]
    > Match URLs
    > Advanced Options: Regular Expression Matching: Use 'Match URLs' as PCRE regular expressions


    Either the Match URLs is bad or Use 'Match URLs' as PCRE regular expressions is enabled when it shouldn't be.
     

Share This Page