XF 2.1 ErrorException: [E_NOTICE] Trying to get property 'url' of non-object

calopezes

Member
URLs in post show only

http://

I found this error in ACP

ErrorException: [E_NOTICE] Trying to get property 'url' of non-object
src/XF/BbCode/ProcessorAction/AutoLink.php:433


#0 src/XF/BbCode/ProcessorAction/AutoLink.php(433): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/var/www/vhosts...', 433, Array)
#1 src/XF/BbCode/ProcessorAction/AutoLink.php(414): XF\BbCode\ProcessorAction\AutoLink->getUnfurlBbCode('https://xenforo...')
#2 src/XF/BbCode/ProcessorAction/AutoLink.php(134): XF\BbCode\ProcessorAction\AutoLink->unfurlLinkUrl('https://xenforo...')
#3 [internal function]: XF\BbCode\ProcessorAction\AutoLink->XF\BbCode\ProcessorAction\{closure}(Array)
#4 src/XF/BbCode/ProcessorAction/AutoLink.php(145): preg_replace_callback('#^(?<=[^a-z0-9@...', Object(Closure), 'https://xenforo...')
#5 [internal function]: XF\BbCode\ProcessorAction\AutoLink->filterString('https://xenforo...', Array, Object(XF\BbCode\Processor))
#6 src/XF/BbCode/Processor.php(375): call_user_func(Array, 'https://xenforo...', Array, Object(XF\BbCode\Processor))
#7 src/XF/BbCode/Processor.php(358): XF\BbCode\Processor->filterString('https://xenforo...', Array)
#8 src/XF/BbCode/Traverser.php(65): XF\BbCode\Processor->renderString('https://xenforo...', Array)
#9 src/XF/BbCode/Traverser.php(37): XF\BbCode\Traverser->renderSubTree(Array, Array)
#10 src/XF/BbCode/Traverser.php(20): XF\BbCode\Traverser->renderAst(Array, Object(Tapatalk\XF\BbCode\RuleSet), Array)
#11 src/XF/Service/Message/Preparer.php(160): XF\BbCode\Traverser->render('https://xenforo...', Object(XF\BbCode\Parser), Object(Tapatalk\XF\BbCode\RuleSet), Array)
#12 src/XF/Service/Message/Preparer.php(122): XF\Service\Message\Preparer->processMessage('https://xenforo...')
#13 src/XF/Service/Post/Preparer.php(98): XF\Service\Message\Preparer->prepare('https://xenforo...', true)
#14 src/XF/Service/Thread/Replier.php(107): XF\Service\Post\Preparer->setMessage('https://xenforo...', true, true)
#15 src/XF/Pub/Controller/Thread.php(318): XF\Service\Thread\Replier->setMessage('https://xenforo...')
#16 src/XF/Pub/Controller/Thread.php(453): XF\Pub\Controller\Thread->setupThreadReply(Object(SV\CrowdModeration\XF\Entity\Thread))
#17 src/XF/Mvc/Dispatcher.php(321): XF\Pub\Controller\Thread->actionAddReply(Object(XF\Mvc\ParameterBag))
#18 src/XF/Mvc/Dispatcher.php(248): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'AddReply', Object(XF\Mvc\RouteMatch), Object(Siropu\AdsManager\XF\Pub\Controller\Thread), NULL)
#19 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(Siropu\AdsManager\XF\Pub\Controller\Thread), NULL)
#20 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#21 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#22 src/XF.php(390): XF\App->run()
#23 index.php(20): XF::runApp('XF\\Pub\\App')
#24 {main}
 
Can you confirm what the URL was there? Does it happen with other URLs?

Right now, I can't really see how that error is possible.
 
Hi Mike, sorry for doubleposting, plese delete my other thread if you want.

The problem comes with curl url, when I insert one in the message finally the message only show https://

Lets try to put to this message:

test


Final output

test
http://


Testing curl url tool

<!DOCTYPE html>
<html id="XF" lang="en-US" dir="LTR"
data-app="public"
data-template="thread_view"
data-container-key="node-24"
data-content-key="thread-161052"
data-logged-in="false"
data-cookie-prefix="xf_"
class="has-no-js template-thread_view"
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">

<title>XF 2.1 - ErrorException: [E_NOTICE] Trying to get property &#039;url&#039; of non-object | XenForo community</title>

<meta name="description" content="URLs in post show only

http://

I found this error in ACP

ErrorException: [E_NOTICE] Trying to get property &#039;url&#039; of non-object..." />
<meta property="og:description" content="URLs in post show only

http://

I found this error in ACP

ErrorException: [E_NOTICE] Trying to get property &#039;url&#039; of non-object
src/XF/BbCode/ProcessorAction/AutoLink.php:433


#0 src/XF/BbCode/ProcessorAction/AutoLink.php(433): XF::handlePhpError(8, &#039;[E_NOTICE] Tryi...&#039;, &#039;/var/www/vhosts...&#039;..." />
<meta property="twitter:description" content="URLs in post show only

http://

I found this error in ACP

ErrorException: [E_NOTICE] Trying to get property &#039;url&#039; of non-object
src/XF/BbCode/ProcessorAction/AutoLink.php:433


#0..." />


<meta property="og:url" content="https://xenforo.com/community/threa...ing-to-get-property-url-of-non-object.161052/" />

<link rel="canonical" href="https://xenforo.com/community/threa...ing-to-get-property-url-of-non-object.161052/" />






<meta property="og:site_name" content="XenForo community" />







<meta property="og:type" content="website" />








<meta property="og:title" content="XF 2.1 - ErrorException: [E_NOTICE] Trying to get property &#039;url&#039; of non-object" />
<meta property="twitter:title" content="XF 2.1 - ErrorException: [E_NOTICE] Trying to get property..." />











<meta property="og:image" content="https://xenforo.com/community/styles/default/xenforo/xenforo-logo-og.png" />
<meta property="twitter:image" content="https://xenforo.com/community/styles/default/xenforo/xenforo-logo-og.png" />
<meta property="twitter:card" content="summary" />






<meta name="theme-color" content="#185886" />






<link rel="preload" href="/community/styles/fonts/fa/fa-regular-400.woff2" as="font" type="font/woff2" crossorigin="anonymous" />


<link rel="preload" href="/community/styles/fonts/fa/fa-solid-900.woff2" as="font" type="font/woff2" crossorigin="anonymous" />


<link rel="preload" href="/community/styles/fonts/fa/fa-brands-400.woff2" as="font" type="font/woff2" crossorigin="anonymous" />

<link rel="stylesheet" href="/community/css.php?css=public%3Anormalize.css%2Cpublic%3Acore.less%2Cpublic%3Aapp.less&amp;s=1&amp;l=1&amp;d=1550257995&amp;k=bbd148b1604bf41fe0832d74348b5bf99e28bb71" />

<link rel="stylesheet" href="/community/css.php?css=public%3Amessage.less%2Cpublic%3Anotices.less%2Cpublic%3Ashare_controls.less%2Cpublic%3Axfcf_footer.less%2Cpublic%3Aextra.less&amp;s=1&amp;l=1&amp;d=1550257995&amp;k=f702a084c2e6aa9a755d8a59c235334804e080bf" />


<link rel="icon" type="image/png" href="https://xenforo.com/community/styles/default/xenforo/xenforo-favicon.png" sizes="32x32" />


<link rel="apple-touch-icon" href="https://xenforo.com/community/styles/default/xenforo/xenforo-logo-og.png" />





</head>



Error log:

  • ErrorException: [E_NOTICE] Trying to get property 'url' of non-object
  • src/XF/BbCode/ProcessorAction/AutoLink.php:433
  • Generado por: calopez
  • 19 Feb 2019 a las 08:54
Seguimiento
#0 src/XF/BbCode/ProcessorAction/AutoLink.php(433): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/var/www/vhosts...', 433, Array)
#1 src/XF/BbCode/ProcessorAction/AutoLink.php(414): XF\BbCode\ProcessorAction\AutoLink->getUnfurlBbCode('https://xenforo...')
#2 src/XF/BbCode/ProcessorAction/AutoLink.php(134): XF\BbCode\ProcessorAction\AutoLink->unfurlLinkUrl('https://xenforo...')
#3 [internal function]: XF\BbCode\ProcessorAction\AutoLink->XF\BbCode\ProcessorAction\{closure}(Array)
#4 src/XF/BbCode/ProcessorAction/AutoLink.php(145): preg_replace_callback('#^(?<=[^a-z0-9@...', Object(Closure), 'test

...')
#5 [internal function]: XF\BbCode\ProcessorAction\AutoLink->filterString('test

https://x...', Array, Object(XF\BbCode\Processor))
#6 src/XF/BbCode/Processor.php(375): call_user_func(Array, 'test

https://x...', Array, Object(XF\BbCode\Processor))
#7 src/XF/BbCode/Processor.php(358): XF\BbCode\Processor->filterString('test

https://x...', Array)
#8 src/XF/BbCode/Traverser.php(65): XF\BbCode\Processor->renderString('test

https://x...', Array)
#9 src/XF/BbCode/Traverser.php(37): XF\BbCode\Traverser->renderSubTree(Array, Array)
#10 src/XF/BbCode/Traverser.php(20): XF\BbCode\Traverser->renderAst(Array, Object(Tapatalk\XF\BbCode\RuleSet), Array)
#11 src/XF/Service/Message/Preparer.php(160): XF\BbCode\Traverser->render('test

https://x...', Object(XF\BbCode\Parser), Object(Tapatalk\XF\BbCode\RuleSet), Array)
#12 src/XF/Service/Message/Preparer.php(122): XF\Service\Message\Preparer->processMessage('test

...')
#13 src/XF/Service/Post/Preparer.php(98): XF\Service\Message\Preparer->prepare('test

https://x...', true)
#14 src/XF/Service/Thread/Creator.php(148): XF\Service\Post\Preparer->setMessage('test

https://x...', true, true)
#15 src/XF/Pub/Controller/Forum.php(545): XF\Service\Thread\Creator->setContent('test', 'test

...')
#16 src/XF/Pub/Controller/Forum.php(731): XF\Pub\Controller\Forum->setupThreadCreate(Object(XF\Entity\Forum))
#17 src/XF/Mvc/Dispatcher.php(321): XF\Pub\Controller\Forum->actionPostThread(Object(XF\Mvc\ParameterBag))
#18 src/XF/Mvc/Dispatcher.php(248): XF\Mvc\Dispatcher->dispatchClass('XF:Forum', 'PostThread', Object(XF\Mvc\RouteMatch), Object(ThemeHouse\Trending\XF\Pub\Controller\Forum), NULL)
#19 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(ThemeHouse\Trending\XF\Pub\Controller\Forum), NULL)
#20 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#21 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#22 src/XF.php(390): XF\App->run()
#23 index.php(20): XF::runApp('XF\\Pub\\App')
#24 {main}



Estado de la solicitud
array(4) {
["url"] => string(61) "/inmobiliaria/forums/moderadores.18/post-thread?inline-mode=1"
["referrer"] => string(60) "https://www.burbuja.info/inmobiliaria/forums/moderadores.18/"
["_GET"] => array(2) {
["/inmobiliaria/forums/moderadores_18/post-thread"] => string(0) ""
["inline-mode"] => string(1) "1"
}
["_POST"] => array(11) {
["title"] => string(4) "test"
["message_html"] => string(139) "<p>test</p><p><br></p><p>https://xenforo.com/community/threa...ing-to-get-property-url-of-non-object.161052/</p>"
["watch_thread"] => string(0) ""
["watch_thread_email"] => string(0) ""
["_xfSet"] => array(1) {
["watch_thread"] => string(1) "1"
}
["attachment_hash"] => string(32) "22d5ff05e64889cb121fccc5acf4a46f"
["attachment_hash_combined"] => string(82) "{"type":"post","context":{"node_id":18},"hash":"22d5ff05e64889cb121fccc5acf4a46f"}"
["_xfToken"] => string(8) "****"
["_xfRequestUri"] => string(36) "/inmobiliaria/forums/moderadores.18/"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}

Eliminar
 
I think we may need to get direct access to test this if that's possible, as I'm not seeing the logic of what is happening here.

To do this, we'd need access to an account we can test with and FTP or similar access to add some debugging code. If this is possible, please submit a ticket from your customer area with this information, referencing this thread, and we'll look into it.
 
Back
Top Bottom