PHP 8.1: Deprecated functions

Created on 8 July 2022, over 2 years ago
Updated 11 May 2023, over 1 year ago

Problem/Motivation

The following errors show up when accessing the /biblio page

Deprecated function: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in csl_name->render() (line 758 of web/sites/all/modules/contrib/biblio/modules/CiteProc/CSL.inc).
Deprecated function: implode(): Passing null to parameter #1 ($separator) of type array|string is deprecated in csl_rendering_element->render() (line 342 of web/sites/all/modules/contrib/biblio/modules/CiteProc/CSL.inc).
Deprecated function: implode(): Passing null to parameter #1 ($separator) of type array|string is deprecated in csl_date->render() (line 1257 of web/sites/all/modules/contrib/biblio/modules/CiteProc/CSL.inc).
Deprecated function: implode(): Passing null to parameter #1 ($separator) of type array|string is deprecated in csl_layout->render() (line 1763 of web/sites/all/modules/contrib/biblio/modules/CiteProc/CSL.inc).

Steps to reproduce

Run the biblio module on a site using PHP 8.1.

🐛 Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

🇵🇹Portugal jcnventura

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

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