Wewnętrzny błąd MyBB

MyBB napotkało błąd wewnętrzny i nie może kontynuować.

Typ błędu:
Ostrzeżenie (2)
Treść błędu:
count(): Parameter must be an array or an object that implements Countable
Lokalizacja:
File: showthread.php
Line: 861
Kod:
858.             {
859.                 if($post['pid'] == $mybb->input['pid'] || ($isfirst && !$mybb->input['pid']))
860.                 {
861.                     $postcounter count($postsdone);
862.                     $isfirst 0;
863.                 }
864.                 $tree[$post['replyto']][$post['pid']] = $post
Fragment kodu:
Plik Linia Funkcja
/inc/class_error.php 207 errorHandler->output_error
/showthread.php 861 errorHandler->error