Deprecated: Required parameter $context follows optional parameter $nodes

Created on 16 December 2021, about 3 years ago
Updated 6 August 2023, over 1 year ago

Problem/Motivation

After upgraded to PHP 8.1 Getting the below errors

  1. Deprecated: Required parameter $context follows optional parameter in $nodes delete_all/includes/delete_all.content.batch.inc on line 13
  2. Deprecated: Required parameter $entity_type follows optional parameter in $entities delete_all/includes/delete_all.entities.batch.inc on line 11
  3. Deprecated: Required parameter $context follows optional parameter in $users delete_all/includes/delete_all.user.batch.inc

Steps to reproduce

Use Drupal 9.30 + Php 8+ Combo

Proposed resolution

Need to update the deprecated function

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇳India kuralarasanm

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

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