[IP.Board 3.1.3 / PHP 7.2] «count(): Parameter must be an array or an object that implements Countable in admin/applications/forums/sources/classes/post/classPost.php on line 3000»

php72
ip-board
php

(Dmitry Fedyuk) #1


(Dmitry Fedyuk) #2

How to fix

Locate the line in the admin/applications/forums/sources/classes/post/classPost.php file:

if ( count( $choices_count ) > ( $this->max_poll_questions * $this->max_poll_choices_per_question ) )

Replace it with:

if ($choices_count && count($choices_count) > ($this->max_poll_questions * $this->max_poll_choices_per_question))