What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

  • We are aware that a no permission error was shown when you tried to purchase in the last 2 days, this is now fixed.

Bug Fixed Error: Trying to get property 'node_id' of non-object


New Member
Got this a couple of times in the server error log. Looks like someone followed a link from an email, and the page it loaded triggered this error. I'm guessing a simple null check is all that would be needed to handle it.

ErrorException: [E_NOTICE] Trying to get property 'node_id' of non-object - src/addons/XFA/ThreadTemplate/XF/Pub/Controller/Forum.php:36

Stack trace:
#0 src/addons/XFA/ThreadTemplate/XF/Pub/Controller/Forum.php(36): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/home/forum...', 36, Array)
#1 src/XF/Mvc/Dispatcher.php(350): XFA\ThreadTemplate\XF\Pub\Controller\Forum->actionPostThread(Object(XF\Mvc\ParameterBag))
#2 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Forum', 'PostThread', Object(XF\Mvc\RouteMatch), Object(SV\RedisCache\XF\Pub\Controller\Forum), NULL)
#3 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\RedisCache\XF\Pub\Controller\Forum), NULL)
#4 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#5 src/XF/App.php(2326): XF\Mvc\Dispatcher->run()
#6 src/XF.php(488): XF\App->run()
#7 index.php(20): XF::runApp('XF\\Pub\\App')
#8 {main}

Request state:
array(4) {
  ["url"] => string(47) "/index.php?forums/crash-reports.666/post-thread"
  ["referrer"] => string(33) "https://mail.google.com/mail/u/0/"
  ["_GET"] => array(1) {
    ["forums/crash-reports_666/post-thread"] => string(0) ""
  ["_POST"] => array(0) {