[IP.Board 3.1.3 / PHP 7.2] «count(): Parameter must be an array or an object that implements Countable in admin/sources/base/core.php»

PHP Warning: count(): Parameter must be an array or an object that implements Countable in admin/sources/base/core.php on line 5979
PHP Warning: count(): Parameter must be an array or an object that implements Countable in admin/sources/base/core.php on line 5984
PHP Warning: count(): Parameter must be an array or an object that implements Countable in admin/sources/base/core.php on line 5989

How to fix

Locate and delete the code in the admin/sources/base/core.php file:

/* Check */
if( count( $fields->error_fields['empty'] ) )
{
	//throw new Exception( 'CUSTOM_FIELDS_EMPTY' );
}

if( count( $fields->error_fields['invalid'] ) )
{
	//throw new Exception( 'CUSTOM_FIELDS_INVALID' );
}

if( count( $fields->error_fields['toobig'] ) )
{
	//throw new Exception( 'CUSTOM_FIELDS_TOOBIG' );
}