I'm testing an upgrade from PHP 7.4 to PHP 8.0 with Drupal 7.91 and Protected Pages 7.x-2.4 and I'm getting a PHP error. It doesn't allow me to create new protected pages. The existing ones created on PHP 7.4 still works though.
Drupal watchdog message:
TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in count() (line 144 of .../docroot/sites/all/modules/protected_pages/protected_pages.admin.inc).
Try creating a new protected page.
Needs review
2.4
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.