I was testing my add-on, the Auto Lock Threads, in the new XenForo, and then it gave me this error:
Argument 4 passed to XenForo_Model_Thread::markThreadRead() must be an array, integer given, called in C:\apache\htdocs\XenForo\library\DS\AutoLockThreads\ControllerPublic\AutoLockThreads.php on line 77 and defined
//just the relevant part of the code $visitorId = XenForo_Visitor::getUserId(); //after some more lines $this->_getThreadModel()->markThreadRead($thread, $forum, XenForo_Application::$time, $visitorId);
So, for the message, the method requires an array. I will study the new core code later, when I have time, but I need a fix for that, so can someone explain how can I get the Argument 4 (the user id, in previous version) correctly?