[PHP 8.1] Deprecated function: preg_match(): Passing null to parameter

Created on 8 December 2023, 12 months ago

Problem/Motivation

For D7 version of the module on PHP 8.1 we have an error:

Deprecated function: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in views_aggregator_count() (line 243 of /var/www/html/profiles/recruiter/modules/views_aggregator/views_aggregator_functions.inc).

Steps to reproduce

  1. Install D7 on PHP 8.1
  2. Install the module
  3. Try to use on the views
  4. Check logs

Proposed resolution

Create a patch where need to check the $regexp variable for exists before calling the preg_match function.

Remaining tasks

-

User interface changes

-

API changes

-

Data model changes

-

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine tibezh

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024