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

XF 1.2 Rare Issue with my forum HELP!

#1
Hi, today my forum started to show this error when i tried to enter to it. (it never happened before, and i didn't touch it since my last template instalation that i bought from russ.)

This is the error that it's showing:

Code:
An exception occurred: Argument 2 passed to XenForo_Model_Thread::canViewThread() must be of the type array, null given, called in /var/www/html/foro.muonline.pe/library/WidgetFramework/WidgetRenderer/Threads.php on line 421 and defined in /var/www/html/foro.muonline.pe/library/XenForo/Model/Thread.php on line 759

XenForo_Application::handlePhpError() in XenForo/Model/Thread.php at line 759
XenForo_Model_Thread->canViewThread() in WidgetFramework/WidgetRenderer/Threads.php at line 421
WidgetFramework_WidgetRenderer_Threads->_getThreads() in WidgetFramework/WidgetRenderer/Threads.php at line 168
WidgetFramework_WidgetRenderer_Threads->_render() in WidgetFramework/WidgetRenderer.php at line 668
WidgetFramework_WidgetRenderer->render() in WidgetFramework/Core.php at line 352
WidgetFramework_Core->_renderWidgetsFor() in WidgetFramework/Core.php at line 264
WidgetFramework_Core->renderWidgetsFor() in WidgetFramework/Listener.php at line 87
WidgetFramework_Listener::template_post_render()
call_user_func_array() in XenForo/CodeEvent.php at line 58
XenForo_CodeEvent::fire() in XenForo/Template/Abstract.php at line 195
XenForo_Template_Abstract->render() in XenForo/Template/Public.php at line 110
XenForo_Template_Public->render() in XenForo/ViewRenderer/HtmlPublic.php at line 119
XenForo_ViewRenderer_HtmlPublic->renderContainer() in XenForo/FrontController.php at line 614
XenForo_FrontController->renderView() in XenForo/FrontController.php at line 158
XenForo_FrontController->run() in /var/www/html/foro.muonline.pe/index.php at line 13
Hope somebody tell me how to fix it, please it's showing a bad image of my forum.

Thank you.
 
#3
How do i solve it?

As far as i can understand what it says, it's related with my widget "last users post" (because it said something about "posts") so basically.. i just desactive it. I don't know if the problem is already fixed; how do i know? Thank you.
 
#7
Seems fixed. It was that widget. Thank you guys. I don't use to upgrade my widgets or addons, so it's my bad; but i don't know why it started to happen today and not a month ago when i updated my xenforum or changed my template.

Any idea why today and not before?
 

Chris D

XenForo developer
Staff member
#8
It may be caused by a specific thread. Such issues can occur, for example, after a thread is moved and a redirect is left.

I'm sure xfrocks will be happy to clarify any specific details as to why the issue happened. Especially if it has since been fixed in an update.