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

XF 1.5 Error when using URL in thread

Discussion in 'Troubleshooting and Problems' started by Zynektic, Jul 30, 2015.

  1. Zynektic

    Zynektic Well-Known Member

    Hi there,

    I am working with a test website to fix colours on a theme and such and I just tried to post a URL into a thread to so that I can adjust the link colours and received this following error if anyone can help.

    Removed domain in pasting below.

    Code:
    ErrorException: preg_match(): Compilation failed: two named subpatterns have the same name at offset 72 - library/XenForo/Helper/Media.php:56
    Generated By: Zynektic, 2 minutes ago
    
    #0 [internal function]: XenForo_Application::handlePhpError(2, 'preg_match(): C...', '/home/nginx/dom...', 56, Array)
    #1 /home/nginx/domains/domain.com/public/development/library/XenForo/Helper/Media.php(56): preg_match('#youtube\\.com/....', 'https://www.sum...', Array)
    #2 /home/nginx/domains/domain.com/public/development/library/XenForo/Helper/Media.php(39): XenForo_Helper_Media->_convertMediaLinkToEmbedHtml('https://www.sum...', Array)
    #3 /home/nginx/domains/domain.com/public/development/library/XenForo/BbCode/Formatter/BbCode/AutoLink.php(231): XenForo_Helper_Media::convertMediaLinkToEmbedHtml('https://www.sum...', Array)
    #4 /home/nginx/domains/domain.com/public/development/library/XenForo/BbCode/Formatter/BbCode/AutoLink.php(193): XenForo_BbCode_Formatter_BbCode_AutoLink->_autoLinkUrl('https://www.sum...')
    #5 [internal function]: XenForo_BbCode_Formatter_BbCode_AutoLink->_autoLinkUrlCallback(Array)
    #6 /home/nginx/domains/domain.com/public/development/library/XenForo/BbCode/Formatter/BbCode/AutoLink.php(168): preg_replace_callback('#(?<=[^a-z0-9@-...', Array, 'https://www.sum...')
    #7 /home/nginx/domains/domain.com/public/development/library/XenForo/BbCode/Formatter/Base.php(590): XenForo_BbCode_Formatter_BbCode_AutoLink->filterString('https://www.sum...', Array)
    #8 /home/nginx/domains/domain.com/public/development/library/XenForo/BbCode/Formatter/Base.php(569): XenForo_BbCode_Formatter_Base->renderString('https://www.sum...', Array, 0)
    #9 /home/nginx/domains/domain.com/public/development/library/XenForo/BbCode/Formatter/Base.php(546): XenForo_BbCode_Formatter_Base->renderTreeElement('https://www.sum...', Array, 0)
    #10 /home/nginx/domains/domain.com/public/development/library/XenForo/BbCode/Formatter/Base.php(526): XenForo_BbCode_Formatter_Base->renderSubTree(Array, Array)
    #11 /home/nginx/domains/domain.com/public/development/library/XenForo/BbCode/Formatter/BbCode/AutoLink.php(79): XenForo_BbCode_Formatter_Base->renderTree(Array, Array)
    #12 /home/nginx/domains/domain.com/public/development/library/XenForo/BbCode/Parser.php(505): XenForo_BbCode_Formatter_BbCode_AutoLink->renderTree(Array, Array)
    #13 /home/nginx/domains/domain.com/public/development/library/XenForo/Helper/String.php(232): XenForo_BbCode_Parser->render('https://www.sum...')
    #14 /home/nginx/domains/domain.com/public/development/library/XenForo/ControllerPublic/Thread.php(515): XenForo_Helper_String::autoLinkBbCode('https://www.sum...')
    #15 /home/nginx/domains/domain.com/public/development/library/XenForo/FrontController.php(347): XenForo_ControllerPublic_Thread->actionAddReply()
    #16 /home/nginx/domains/domain.com/public/development/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #17 /home/nginx/domains/domain.com/public/development/index.php(13): XenForo_FrontController->run()
    #18 {main}
    
    array(3) {
      ["url"] => string(72) "https://www.domain.com/development/threads/test-2.2/add-reply"
      ["_GET"] => array(1) {
        ["/development/threads/test-2_2/add-reply"] => string(0) ""
      }
      ["_POST"] => array(9) {
        ["message_html"] => string(57) "<p>https://www.domain.com/development/<br></p>"
        ["_xfRelativeResolver"] => string(63) "https://www.domain.com/development/threads/test-2.2/"
        ["attachment_hash"] => string(32) "e936b68e001c347a8af80b070d8e5ac9"
        ["last_date"] => string(10) "1438266709"
        ["last_known_date"] => string(10) "1438266709"
        ["_xfToken"] => string(8) "********"
        ["_xfRequestUri"] => string(30) "/development/threads/test-2.2/"
        ["_xfNoRedirect"] => string(1) "1"
        ["_xfResponseType"] => string(4) "json"
      }
    }
    I am using 1.5.0 Beta 4 and only have Widget Framework and CTA Featured Threads installed to style those.
     
  2. Mike

    Mike XenForo Developer Staff Member

  3. Zynektic

    Zynektic Well-Known Member

Share This Page