Batch error with php version 8

Created on 19 January 2022, almost 3 years ago
Updated 2 March 2023, over 1 year ago

Problem/Motivation

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /batch?id=11&op=do_nojs&op=do
StatusText: OK
ResponseText: Error: Cannot use positional argument after named argument in _batch_process() (line 295 of /docroot/core/includes/batch.inc).

Steps to reproduce

Install latest drupal 9 version and php 8 version

Proposed resolution

Strip the name from the array element in $operations so that $data and $defaultRole were passed in as a positional element.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇳India kanchamk

Live updates comments and jobs are added and updated live.
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