[IP.Board 3.1.3 / PHP 7.2] «count(): Parameter must be an array or an object that implements Countable in cache/skin_cache/cacheid_4/skin_search.php»

php72
ip-board
php

(Dmitry Fedyuk) #1

PHP Warning: count(): Parameter must be an array or an object that implements Countable in cache/skin_cache/cacheid_4/skin_search.php on line 981


(Dmitry Fedyuk) #2

How to fix

Step 1

Locate the code in the searchResultsAsForum template:

<if test="count($results)">

Replace it with:

<if test="$results && count($results)">

Step 2

Rebuild the skin: