TypeError: Argument 2 [...] must be an instance of Drupal\metatag_import_export_csv\mixed, string given

Created on 5 July 2023, over 1 year ago
Updated 1 August 2023, over 1 year ago

Problem/Motivation

Trying to import a modified CSV export to make changes to the content's metatags only results in the following error:

Batch has encountered an error.

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /batch?id=4008&op=do_nojs&op=do
StatusText: parsererror
ResponseText: TypeError: Argument 2 passed to Drupal\metatag_import_export_csv\MetatagImport::importCsvBatchOperation() must be an instance of Drupal\metatag_import_export_csv\mixed, string given, called in /drupal/web/core/includes/batch.inc on line 295 in Drupal\metatag_import_export_csv\MetatagImport::importCsvBatchOperation() (line 25 of /drupal/web/modules/contrib/metatag_import_export_csv/src/MetatagImport.php).

Clicking on the link to go to the "error page" simply brings me back to the import page and displays the following message:

An error occurred while processing \Drupal\metatag_import_export_csv\MetatagImport::importCsvBatchOperation with arguments : \Drupal\metatag_import_export_csv\MetatagImport::importCsvBatchOperation

Steps to reproduce

  1. Using the module, export metatags for available content types and download the CSV.
  2. Make updates to the downloaded CSV.
  3. Try to import the updated CSV. It uploads, but then throws the error listed above.
πŸ› Bug report
Status

Active

Version

1.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States agbockus Illinois

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