TypeError: Unsupported operand types: string / int in csl_number->ordinal()

Created on 28 November 2023, 7 months ago
Updated 30 November 2023, 7 months ago

Problem/Motivation

Similar to 3400324 🐛 TypeError: Unsupported operand types: string * int in csl_date_part Fixed , another PHP 8 compatibility issue.

TypeError: Unsupported operand types: string / int in csl_number->ordinal() (line 1373 of /var/www/html/web/sites/all/modules/biblio/modules/CiteProc/CSL.inc).

Steps to reproduce

In my case, it happened when using biblio with views_data_export, when I try to download the CSV, I get WSOD.

Proposed resolution

Force casting $num into an integer.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇦🇺Australia jordan.jamous

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024