WCF::handleException() Unhandled exception: Call to a member function getProcessor() on null

#0 /var/www/travian-forum.com/wbb.travian-forum.com/html/wcf/lib/data/attachment/Attachment.class.php(58): wcf\data\attachment\Attachment->getPermission('canViewPreview')
#1 /var/www/travian-forum.com/wbb.travian-forum.com/html/wcf/lib/system/event/listener/StatisticsListener.class.php(46): wcf\data\attachment\Attachment->canViewPreview()
#2 /var/www/travian-forum.com/wbb.travian-forum.com/html/wcf/lib/system/event/EventHandler.class.php(221): wcf\system\event\listener\StatisticsListener->execute(Object(wcf\page\StatisticsPage), 'wcf\\page\\Statis...', 'assignVariables')
#3 /var/www/travian-forum.com/wbb.travian-forum.com/html/wcf/lib/page/AbstractPage.class.php(127): wcf\system\event\EventHandler->fireAction(Object(wcf\page\StatisticsPage), 'assignVariables')
#4 /var/www/travian-forum.com/wbb.travian-forum.com/html/wcf/lib/page/StatisticsPage.class.php(29): wcf\page\AbstractPage->assignVariables()
#5 /var/www/travian-forum.com/wbb.travian-forum.com/html/wcf/lib/page/AbstractPage.class.php(276): wcf\page\StatisticsPage->assignVariables()
#6 /var/www/travian-forum.com/wbb.travian-forum.com/html/wcf/lib/page/StatisticsPage.class.php(40): wcf\page\AbstractPage->show()
#7 /var/www/travian-forum.com/wbb.travian-forum.com/html/wcf/lib/page/AbstractPage.class.php(100): wcf\page\StatisticsPage->show()
#8 /var/www/travian-forum.com/wbb.travian-forum.com/html/wcf/lib/system/request/Request.class.php(58): wcf\page\AbstractPage->__run()
#9 /var/www/travian-forum.com/wbb.travian-forum.com/html/wcf/lib/system/request/RequestHandler.class.php(139): wcf\system\request\Request->execute()
#10 /var/www/travian-forum.com/wbb.travian-forum.com/html/index.php(10): wcf\system\request\RequestHandler->handle('wbb')
#11 {main}