TypeError: array_merge(): Argument #2 must be of type array, null given in array_merge() (line 153 quiz_question.core.inc)

Created on 7 February 2024, 11 months ago
Updated 9 August 2024, 5 months ago

Problem/Motivation

on PHP 8.1, we are seeing an fatal crash when attempting to create new questions for quizzes.

Steps to reproduce

Update to PHP 8.1, then create a new quiz and a new question.

Proposed resolution

This is a pretty well-known problem and solution, so I suggest we just patch the problematic code.

Remaining tasks

- patch quiz_question.core.inc to fix the issue
- ensure no other places need this fix

User interface changes

n/a

API changes

n/a

Data model changes

n/a

๐Ÿ› Bug report
Status

Fixed

Version

5.0

Component

Code - Quiz core

Created by

๐Ÿ‡จ๐Ÿ‡ฆCanada mark.labrecque Vancouver

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024