Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#6 | batch-error-with-php-version-3259418-6.patch | 487 bytes | krunalunadkat |
#2 | batch-error-with-php-version-8-3259418-2.patch | 487 bytes | kanchamk |
Comments
Comment #2
kanchamk CreditAttribution: kanchamk at TA Digital commentedin BulkUserImport.php change lines no's 193 and 194 without named array
Comment #3
kecsotSame issue with d8 / php 7.3Update: I was wrong
Comment #4
Pawelgorski87 CreditAttribution: Pawelgorski87 as a volunteer and at Droptica commented#2 works for me
Comment #5
prempatel2447 CreditAttribution: prempatel2447 as a volunteer and at Cognizant Technology Solutions commentedHi all,
It will be fixed in next release. We are soon going to release next version with Drupal 10 support.
Comment #6
krunalunadkatPlease use attached patch there is issue with batch process because of PHP version upgrade
Comment #7
krunalunadkatComment #8
krunalunadkatComment #9
prempatel2447 CreditAttribution: prempatel2447 as a volunteer and at Cognizant Technology Solutions commentedComment #10
prempatel2447 CreditAttribution: prempatel2447 as a volunteer and at Cognizant Technology Solutions commented