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

Issue fork quiz-3419807

Command icon 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

mark.labrecque created an issue. See original summary.

chetan 11 made their first commit to this issue’s fork.

chetan 11’s picture

Assigned: mark.labrecque » Unassigned
Status: Active » Needs review

Please check the above MR.

mark.labrecque’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me

  • smustgrave committed ddbf5050 on 7.x-5.x
    Issue #3419807 by chetan 11, mark.labrecque: TypeError: array_merge():...
smustgrave’s picture

Version: 7.x-5.8 » 7.x-5.x-dev
Status: Reviewed & tested by the community » Fixed

With D7 approaching EOL have started to triage the D7 queue. Since this was small and RTBC will merge and plan 1-2 more D7 releases in the coming months.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.