XF 2.2 [E_USER_WARNING] Cannot call method isFirstPost on a non-object (NULL) Error

karlfrankeser

New member
Hello dear XenForo community,
I have enabled Guest Posting to try to get more people to sign up to the community. I am not 100% sure about this but this error might be due to this functionality being enabled, however I know too little about XF stack traces to trace this back to that 100%.

This is the stacktrace:
  • ErrorException: Template error: [E_USER_WARNING] Cannot call method isFirstPost on a non-object (NULL)
  • src/XF/Template/Templater.php:1153
  • Generated by: Unknown account
  • Jun 28, 2021 at 11:58 AM
Code:
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/ticinocom...', 1153, Array)
#1 src/XF/Template/Templater.php(1153): trigger_error('Cannot call met...', 512)
#2 internal_data/code_cache/templates/l2/s3/public/thread_view.php(337): XF\Template\Templater->method(NULL, 'isFirstPost', Array)
#3 src/XF/Template/Templater.php(964): XF\Template\Templater->{closure}(Object(ThemeHouse\UIX\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#4 src/XF/Template/Templater.php(900): XF\Template\Templater->renderExtensionInternal('post_sort_filte...', Array, Array, Object(XF\Template\ExtensionSet))
#5 internal_data/code_cache/templates/l2/s3/public/thread_view.php(826): XF\Template\Templater->renderExtension('post_sort_filte...', Array, Object(XF\Template\ExtensionSet))
#6 src/XF/Template/Templater.php(1628): XF\Template\Templater->{closure}(Object(ThemeHouse\UIX\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#7 src/XF/Template/Templater.php(1619): XF\Template\Templater->renderTemplate('thread_view', Array, true, Object(XF\Template\ExtensionSet))
#8 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view_typ...', Array)
#9 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#10 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\ViewT...', 'public:thread_v...', Array)
#11 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(ThemeHouse\StyleSwitch\XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#12 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(ThemeHouse\StyleSwitch\XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#13 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#14 src/XF/App.php(2337): XF\Mvc\Dispatcher->run()
#15 src/XF.php(488): XF\App->run()
#16 index.php(20): XF::runApp('XF\\Pub\\App')
#17 {main}

We're running the U.I X Pro theme by ThemeHouse.
 
Top