[D7] Support for PHP 8.0

Created on 1 September 2022, over 2 years ago
Updated 28 April 2023, over 1 year ago

Problem/Motivation

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).

Steps to reproduce

Try creating a new protected page.

πŸ› Bug report
Status

RTBC

Version

2.4

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States vchen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024