Exporting redirect entities to file not working

Created on 15 November 2022, almost 2 years ago
Updated 6 December 2023, 10 months ago

Problem/Motivation

When trying to export redirect rules from redirect module , i have a php error .
# php version : 8.0.24
# drupal version : 9

Steps to reproduce

  1. from admin/config/search/redirect/export
  2. click on the export button

the error :

ResponseText: TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, non-static method Drupal\path_redirect_import\RedirectExport::batchProcessExport() cannot be called statically in _batch_process() (line 299 of /var/www/html/web/core/includes/batch.inc).

Proposed resolution

  • declare static the batchProcessExport function in the class RedirectExport.php
🐛 Bug report
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

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