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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kanchamk created an issue. See original summary.

kanchamk’s picture

in BulkUserImport.php change lines no's 193 and 194 without named array

kecsot’s picture

Same issue with d8 / php 7.3

Update: I was wrong

Pawelgorski87’s picture

#2 works for me

prempatel2447’s picture

Hi all,

It will be fixed in next release. We are soon going to release next version with Drupal 10 support.

krunalunadkat’s picture

Please use attached patch there is issue with batch process because of PHP version upgrade

krunalunadkat’s picture

krunalunadkat’s picture

prempatel2447’s picture

Version: 8.x-1.x-dev » 2.0.0
Status: Needs review » Fixed
prempatel2447’s picture

Status: Fixed » Closed (fixed)