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

Can't Fix Problem to embed Links with |

Discussion in 'Media Gallery Resolved Bugs' started by Kai Kreye, Feb 2, 2015.

  1. Kai Kreye

    Kai Kreye Member

    Hi! I have a problem to embeding Links wich includes this |

    For example: http://www.epictv.com/media/podcast...n-downhill-course-|-urban-legend-ep-23/601138

    If I remove the | from the link, I can import the Video, but than there are no tags, no description etc...

    This is the error the serer gets:
    Code:
    Invalid URI supplied Vor einem Moment - library/Zend/Uri/Http.php:156
    
    
    #0 /homepages/32/d399530394/htdocs/mtb4free/library/Zend/Uri.php(143): Zend_Uri_Http->__construct('http', '//www.epictv.co...')
    #1 /homepages/32/d399530394/htdocs/mtb4free/library/Zend/Http/Client.php(270): Zend_Uri::factory('http://www.epic...')
    #2 /homepages/32/d399530394/htdocs/mtb4free/library/Zend/Http/Client.php(253): Zend_Http_Client->setUri('http://www.epic...')
    #3 /homepages/32/d399530394/htdocs/mtb4free/library/XenForo/Helper/Http.php(21): Zend_Http_Client->__construct('http://www.epic...', Array)
    #4 /homepages/32/d399530394/htdocs/mtb4free/library/XenGallery/ViewPublic/Media/PreviewVideo.php(72): XenForo_Helper_Http::getClient('http://www.epic...', Array)
    #5 /homepages/32/d399530394/htdocs/mtb4free/library/XenGallery/ViewPublic/Media/PreviewVideo.php(24): XenGallery_ViewPublic_Media_PreviewVideo->_getTitleAndDescription('http://www.epic...')
    #6 /homepages/32/d399530394/htdocs/mtb4free/library/XenForo/ViewRenderer/Abstract.php(227): XenGallery_ViewPublic_Media_PreviewVideo->renderJson()
    #7 /homepages/32/d399530394/htdocs/mtb4free/library/XenForo/ViewRenderer/Json.php(88): XenForo_ViewRenderer_Abstract->renderViewObject('XenGallery_View...', 'Json', Array, 'xengallery_medi...')
    #8 /homepages/32/d399530394/htdocs/mtb4free/library/XenForo/FrontController.php(586): XenForo_ViewRenderer_Json->renderView('XenGallery_View...', Array, 'xengallery_medi...', NULL)
    #9 /homepages/32/d399530394/htdocs/mtb4free/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_Json), Array)
    #10 /homepages/32/d399530394/htdocs/mtb4free/index.php(13): XenForo_FrontController->run()
    #11 {main}
    
    Benötigter Status
    
    array(3) {
      ["url"] => string(93) "http://mtb4free.de/index.php?xengallery/preview-video&_xfResponseType=json&media_id=undefined"
      ["_GET"] => array(3) {
        ["xengallery/preview-video"] => string(0) ""
        ["_xfResponseType"] => string(4) "json"
        ["media_id"] => string(9) "undefined"
      }
      ["_POST"] => array(5) {
        ["embed_url"] => string(136) "http://www.epictv.com/media/podcast/a-super-aggressive-line-through-the-2015-manizales-urban-downhill-course-|-urban-legend-ep-23/601138"
        ["_xfRequestUri"] => string(20) "/index.php?media/add"
        ["_xfNoRedirect"] => string(1) "1"
        ["_xfToken"] => string(8) "********"
        ["_xfResponseType"] => string(4) "json"
      }
    }
    
    
    
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    There may not actually be a whole lot we can do here.

    It's actually Zend Framework which is validating the URL here. Technically, it is correct to state that it is an invalid URL because the | character shouldn't be valid in a URL.

    We catch this error, and prevent it from being shown to the end user, and we log it. It shouldn't prevent the media being added, but it will prevent the title and description from being scraped automatically.
     
    Kai Kreye likes this.

Share This Page