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: 864
Kod:
861.             {
862.                 if($post['pid'] == $mybb->input['pid'] || ($isfirst && !$mybb->input['pid']))
863.                 {
864.                     $postcounter count($postsdone);
865.                     $isfirst 0;
866.                 }
867.                 $tree[$post['replyto']][$post['pid']] = $post
Fragment kodu:
Plik Linia Funkcja
/inc/class_error.php 208 errorHandler->output_error
/showthread.php 864 errorHandler->error