Problem/Motivation
Similar to 3400324, 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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | typeerror-unsupported-operand-types-string-int-in-cslnumber-ordinal-3404776-2.patch | 400 bytes | jordan.jamous |
Issue fork biblio-3404776
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
jordan.jamous commentedThe patch
Comment #3
jordan.jamous commentedTrying again
Comment #8
jordan.jamous commentedComment #9
liam morlandIs the merge request ready? In which case, please mark it not a draft.
Comment #10
jordan.jamous commented@liam-morland Done, thanks.
Comment #12
liam morland