I cannot log in to one of my sites (aslan.gtst.xyz) with my super-admin user and password, so on investigation I see these entries in /var/log/nginx/error.log:
2017/10/22 21:00:29 [error] 7651#7651: *45 FastCGI sent in stderr: "PHP message: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/share/nginx/html/wp-content/plugins/wp-defender/app/module/audit/controller/main.php on line 248" while reading response header from upstream, client: 192.0.91.177, server: gtst.xyz, request: "HEAD / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "gtst.xyz"
2017/10/22 21:00:49 [error] 7651#7651: *47 FastCGI sent in stderr: "PHP message: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/share/nginx/html/wp-content/plugins/wp-defender/app/module" while reading upstream, client: 34.229.219.107, server: gtst.xyz, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "gtst.xyz"
2017/10/22 21:00:49 [error] 7651#7651: *47 FastCGI sent in stderr: "/audit/controller/main.php on line 248" while reading upstream, client: 34.229.219.107, server: gtst.xyz, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "gtst.xyz"
2017/10/22 21:02:59 [error] 7651#7651: *51 FastCGI sent in stderr: "PHP message: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/share/nginx/html/wp-content/plugins/wp-defender/app/module" while reading upstream, client: 54.159.230.100, server: gtst.xyz, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "gtst.xyz"
2017/10/22 21:02:59 [error] 7651#7651: *51 FastCGI sent in stderr: "/audit/controller/main.php on line 248" while reading upstream, client: 54.159.230.100, server: gtst.xyz, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "gtst.xyz"
2017/10/22 21:04:58 [error] 7651#7651: *55 FastCGI sent in stderr: "PHP message: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/share/nginx/html/wp-content/plugins/wp-defender/app/module" while reading upstream, client: 54.159.230.100, server: gtst.xyz, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "gtst.xyz"
2017/10/22 21:04:58 [error] 7651#7651: *55 FastCGI sent in stderr: "/audit/controller/main.php on line 248" while reading upstream, client: 54.159.230.100, server: gtst.xyz, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "gtst.xyz"
2017/10/22 21:05:16 [error] 7651#7651: *57 FastCGI sent in stderr: "PHP message: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/share/nginx/html/wp-content/plugins/wp-defender/app/module/audit/controller/main.php on line 248" while reading response header from upstream, client: 192.0.91.177, server: gtst.xyz, request: "HEAD / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "gtst.xyz"
2017/10/22 21:06:58 [error] 7651#7651: *61 FastCGI sent in stderr: "PHP message: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/share/nginx/html/wp-content/plugins/wp-defender/app/module" while reading upstream, client: 34.229.83.14, server: gtst.xyz, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "gtst.xyz"
2017/10/22 21:06:58 [error] 7651#7651: *61 FastCGI sent in stderr: "/audit/controller/main.php on line 248" while reading upstream, client: 34.229.83.14, server: gtst.xyz, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "gtst.xyz"
2017/10/22 21:08:59 [error] 7651#7651: *65 FastCGI sent in stderr: "PHP message: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/share/nginx/html/wp-content/plugins/wp-defender/app/module" while reading upstream, client: 34.227.82.211, server: gtst.xyz, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "gtst.xyz"
2017/10/22 21:08:59 [error] 7651#7651: *65 FastCGI sent in stderr: "/audit/controller/main.php on line 248" while reading upstream, client: 34.227.82.211, server: gtst.xyz, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "gtst.xyz"
2017/10/22 21:10:30 [error] 7651#7651: *69 FastCGI sent in stderr: "PHP message: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/share/nginx/html/wp-content/plugins/wp-defender/app/module/audit/controller/main.php on line 248" while reading response header from upstream, client: 192.0.91.177, server: gtst.xyz, request: "HEAD / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "gtst.xyz"
2017/10/22 21:10:47 [error] 7651#7651: *71 FastCGI sent in stderr: "PHP message: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/share/nginx/html/wp-content/plugins/wp-defender/app/module" while reading upstream, client: 34.229.219.107, server: gtst.xyz, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "gtst.xyz"
2017/10/22 21:10:47 [error] 7651#7651: *71 FastCGI sent in stderr: "/audit/controller/main.php on line 248" while reading upstream, client: 34.229.219.107, server: gtst.xyz, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "gtst.xyz"
2017/10/22 21:11:54 [warn] 7651#7651: *74 an upstream response is buffered to a temporary file /var/cache/nginx/fastcgi_temp/1/00/0000000001 while reading upstream, client: 196.45.17.66, server: gtst.xyz, request: "GET /wp-admin/edit.php?post_type=page HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "aslan.energy", referrer: "http://aslan.energy/wp-admin/post.php?post=124&action=edit"
2017/10/22 21:11:54 [error] 7651#7651: *74 FastCGI sent in stderr: "PHP message: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/share/nginx/html/wp-content/plugins/wp-defender/app/module/audit/controller/main.php on line 248" while reading upstream, client: 196.45.17.66, server: gtst.xyz, request: "GET /wp-admin/edit.php?post_type=page HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "aslan.energy", referrer: "http://aslan.energy/wp-admin/post.php?post=124&action=edit"
2017/10/22 21:12:04 [warn] 7651#7651: *74 an upstream response is buffered to a temporary file /var/cache/nginx/fastcgi_temp/2/00/0000000002 while reading upstream, client: 196.45.17.66, server: gtst.xyz, request: "GET /wp-admin/post.php?post=18&action=edit HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "aslan.energy", referrer: "http://aslan.energy/wp-admin/edit.php?post_type=page"
2017/10/22 21:12:04 [error] 7651#7651: *74 FastCGI sent in stderr: "PHP message: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/share/nginx/html/wp-content/plugins/wp-defender/app/module/audit/controller/main.php on line 248" while reading upstream, client: 196.45.17.66, server: gtst.xyz, request: "GET /wp-admin/post.php?post=18&action=edit HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "aslan.energy", referrer: "http://aslan.energy/wp-admin/edit.php?post_type=page"
2017/10/22 21:12:57 [error] 7651#7651: *86 FastCGI sent in stderr: "PHP message: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/share/nginx/html/wp-content/plugins/wp-defender/app/module" while reading upstream, client: 54.159.230.100, server: gtst.xyz, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "gtst.xyz"
Where does this come from? The sites were working fine a while ago, but in some updates these errors may have been introduced.