Fixed Error in RSS view without first post

surfsup

Well-known member
Not sure but I keep getting error messages like this

Code:
Server error log
ErrorException: [E_NOTICE] Trying to get property 'message' of non-object src/XF/Pub/View/Forum/Rss.php:69
Generated by: Unknown account Jan 16, 2018 at 6:19 PM
Stack trace
#0 src/XF/Pub/View/Forum/Rss.php(69): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/home2/truckmou...', 69, Array)
#1 src/XF/Mvc/Renderer/AbstractRenderer.php(77): XF\Pub\View\Forum\Rss->renderRss()
#2 src/XF/Mvc/Renderer/Xml.php(74): XF\Mvc\Renderer\AbstractRenderer->renderViewObject('XF:Forum\\Rss', '', Array)
#3 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Xml->renderView('XF:Forum\\Rss', '', Array)
#4 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Rss), Object(XF\Mvc\Reply\View))
#5 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'rss')
#6 src/XF/App.php(1880): XF\Mvc\Dispatcher->run()
#7 src/XF.php(328): XF\App->run()
#8 index.php(13): XF::runApp('XF\\Pub\\App')
#9 {main}
Request state
array(4) {
  ["url"] => string(69) "/forums/social-groups-carpet-cleaning-equipment-forum-b.158/index.rss"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
We can probably suppress this error so I can move this to bugs, though this appears to indicate that the forum in question has a thread without a first post (or without the first post being tagged correctly).

Based on the name of the forum (in the URL), I'm wondering if the threads were created by an add-on some time in the past.
 
here is another;

Code:
ErrorException: [E_NOTICE] Trying to get property 'message' of non-object src/XF/Pub/View/Forum/Rss.php:69
Generated by: Unknown account Jan 18, 2018 at 7:13 AM
Stack trace
#0 src/XF/Pub/View/Forum/Rss.php(69): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/home2/truckmou...', 69, Array)
#1 src/XF/Mvc/Renderer/AbstractRenderer.php(77): XF\Pub\View\Forum\Rss->renderRss()
#2 src/XF/Mvc/Renderer/Xml.php(74): XF\Mvc\Renderer\AbstractRenderer->renderViewObject('XF:Forum\\Rss', '', Array)
#3 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Xml->renderView('XF:Forum\\Rss', '', Array)
#4 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Rss), Object(XF\Mvc\Reply\View))
#5 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'rss')
#6 src/XF/App.php(1880): XF\Mvc\Dispatcher->run()
#7 src/XF.php(328): XF\App->run()
#8 index.php(13): XF::runApp('XF\\Pub\\App')
#9 {main}
Request state
array(4) {
  ["url"] => string(69) "/forums/albums-carpet-cleaning-equipment-forum-bulletin.160/index.rss"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
Screen Shot 2018-01-18 at 2.38.26 PM.webp
 
Top Bottom