CentOS v7.9.2009 STANDARD / PHP 8.0
After switching to PHP8.0 the errors occurred whenever I clicked the menus on the backend – update, WooCommerce Helper, Popup Builder (Version 4.2.7), Appearance, Plugin,
[24-Apr-2024 15:43:27 UTC] PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home/hairmall/public_html/wp-content/plugins/woothemes-updater/classes/class-woothemes-updater-update-checker.php:302
PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home/hairmall/public_html/wp-content/plugins/woothemes-updater/classes/class-woothemes-updater-update-checker.php:302
As @smallg said, if?(?is_countable(?$this->errors?)?&&?count(?$this->errors?)?>?0?){} worked for me to stop the errors.